PageSourceSearch

https://spi-workshop.org/wp-content/plugins/easy-map/assets/js/easy_map_public.js?ver=2.0.0

js spi-workshop.org collected 2026-10-04 13:29:28 UTC 840 bytes, 26 lines download raw bytes

1
2var easy_map_object;
3var easy_map_objects = {};
4var loc;
5
6// mapId is optional for backward compatibility with callers that only ever deal with a
7// single map per page (e.g. easy_map_set(map)). Callers that can have multiple maps on the
8// same page (multiple [easy-map] shortcodes) should pass mapId so markers/polylines/drawings
9// attach to the correct map instead of whichever one happened to be created last.
10function easy_map_set(mapId, map){
11    if (arguments.length === 1) {
12        map = mapId;
13        mapId = null;
14    }
15    if (mapId) {
16        easy_map_objects[mapId] = map;
17    }
18    easy_map_object = map;
19}
20
21function easy_map_get(mapId){
22    if (mapId && Object.prototype.hasOwnProperty.call(easy_map_objects, mapId)) {
23        return easy_map_objects[mapId];
24    }
25    return easy_map_object;
26}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.