PageSourceSearch

https://www.bestwesternwoerden.nl/templates/shaper_helixultimate/js/leaflet.provider.js

js bestwesternwoerden.nl collected 2026-10-05 05:05:31 UTC 12,654 bytes, 343 lines download raw bytes

1function initOpenStreetMap(t) {
2  jQuery(".sppb-addon-openstreetmap", t).each(function (t) {
3    var a,
4      i = jQuery(this).attr("id"),
5      o = jQuery(this).attr("data-mapzoom"),
6      e = 1 === Number(jQuery(this).attr("data-zoomcontrol")),
7      r = 1 === Number(jQuery(this).attr("data-dragging")),
8      n = 1 === Number(jQuery(this).attr("data-mousescroll")),
9      s = 1 === Number(jQuery(this).attr("data-attribution")),
10      p = jQuery(this).attr("data-mapstyle"),
11      u = JSON.parse(jQuery(this).attr("data-location")),
12      l = u[0].latitude,
13      m = u[0].longitude,
14      d = L.map(i, {
15        center: [l, m],
16        zoom: o,
17        zoomControl: e,
18        scrollWheelZoom: n,
19        dragging: r,
20        maxZoom: 100,
21        attributionControl: s,
22      });
23    for (
24      L.tileLayer.provider(p).addTo(d),
25        jQuery('a[data-toggle="sppb-tab"]').on("click", function (t) {
26          var a = this;
27          setTimeout(function () {
28            jQuery(a).parent("li").hasClass("active") && d.invalidateSize();
29          }, 200);
30        }),
31        jQuery(".sppb-panel-heading").on("click", function (t) {
32          var a = this;
33          setTimeout(function () {
34            jQuery(a).hasClass("active") && d.invalidateSize();
35          }, 200);
36        }),
37        a = 0;
38      a < u.length;
39      a++
40    ) {
41      for (
42        var c = L.Icon.extend({
43            options: {
44              iconSize: [38, 95],
45              iconAnchor: [22, 94],
46              popupAnchor: [-3, -76],
47            },
48          }),
49          h = u[a].custom_icon,
50          b = "",
51          y = 0;
52        y < h.length;
53        y++
54      )
55        b = { icon: new c({ iconUrl: h }) };
56      L.marker([u[a].latitude, u[a].longitude], b)
57        .addTo(d)
58        .bindPopup(u[a].address);
59    }
60  });
61}
62(!(function (t, a) {
63  "function" == typeof define && define.amd
64    ? define(["leaflet"], a)
65    : "object" == typeof modules && module.exports
66      ? (module.exports = a(require("leaflet")))
67      : a(L);
68})(0, function (t) {
69  "use strict";
70  return (
71    (t.TileLayer.Provider = t.TileLayer.extend({
72      initialize: function (a, i) {
73        var o = t.TileLayer.Provider.providers,
74          e = a.split("."),
75          r = e[0],
76          n = e[1];
77        if (!o[r]) throw "No such provider (" + r + ")";
78        var s = { url: o[r].url, options: o[r].options };
79        if (n && "variants" in o[r]) {
80          if (!(n in o[r].variants))
81            throw "No such variant of " + r + " (" + n + ")";
82          var p,
83            u = o[r].variants[n];
84          ((p = "string" == typeof u ? { variant: u } : u.options),
85            (s = {
86              url: u.url || s.url,
87              options: t.Util.extend({}, s.options, p),
88            }));
89        }
90        var l = function (t) {
91          return -1 === t.indexOf("{attribution.")
92            ? t
93            : t.replace(/\{attribution.(\w*)\}/, function (t, a) {
94                return l(o[a].options.attribution);
95              });
96        };
97        s.options.attribution = l(s.options.attribution);
98        var m = t.Util.extend({}, s.options, i);
99        t.TileLayer.prototype.initialize.call(this, s.url, m);
100      },
101    })),
102    (t.TileLayer.Provider.providers = {
103      OpenStreetMap: {
104        url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
105        options: {
106          maxZoom: 19,
107          attribution:
108            '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
109        },
110        variants: {
111          Mapnik: {},
112          BlackAndWhite: {
113            url: "https://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png",
114            options: { maxZoom: 18 },
115          },
116          HOT: {
117            url: "https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",
118            options: {
119              attribution:
120                '{attribution.OpenStreetMap}, Tiles courtesy of <a href="https://hot.openstreetmap.org/" target="_blank">Humanitarian OpenStreetMap Team</a>',
121            },
122          },
123        },
124      },
125      Hydda: {
126        url: "https://{s}.tile.openstreetmap.se/hydda/{variant}/{z}/{x}/{y}.png",
127        options: {
128          maxZoom: 18,
129          variant: "full",
130          attribution:
131            'Tiles courtesy of <a href="https://openstreetmap.se/" target="_blank">
131OpenStreetMap Sweden</a> &mdash; Map data {attribution.OpenStreetMap}',
132        },
133        variants: { Full: "full" },
134      },
135      Stamen: {
136        url: "https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}{r}.{ext}",
137        options: {
138          attribution:
139            'Map tiles by <a href="https://stamen.com">Stamen Design</a>, <a href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data {attribution.OpenStreetMap}',
140          subdomains: "abcd",
141          minZoom: 0,
142          maxZoom: 20,
143          variant: "toner",
144          ext: "png",
145        },
146        variants: {
147          Toner: "toner",
148          TonerHybrid: "toner-hybrid",
149          TonerLite: "toner-lite",
150          Terrain: { options: { variant: "terrain", minZoom: 0, maxZoom: 18 } },
151        },
152      },
153      Esri: {
154        url: "https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}",
155        options: {
156          variant: "World_Street_Map",
157          attribution: "Tiles &copy; Esri",
158        },
159        variants: {
160          WorldStreetMap: {
161            options: {
162              attribution:
163                "{attribution.Esri} &mdash; Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012",
164            },
165          },
166          DeLorme: {
167            options: {
168              variant: "Specialty/DeLorme_World_Base_Map",
169              minZoom: 1,
170              maxZoom: 11,
171              attribution:
172                "{attribution.Esri} &mdash; Copyright: &copy;2012 DeLorme",
173            },
174          },
175          WorldTopoMap: {
176            options: {
177              variant: "World_Topo_Map",
178              attribution:
179                "{attribution.Esri} &mdash; Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community",
180            },
181          },
182          OceanBasemap: {
183            options: {
184              variant: "Ocean_Basemap",
185              maxZoom: 13,
186              attribution:
187                "{attribution.Esri} &mdash; Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri",
188            },
189          },
190          NatGeoWorldMap: {
191            options: {
192              variant: "NatGeo_World_Map",
193              maxZoom: 16,
194              attribution:
195                "{attribution.Esri} &mdash; National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC",
196            },
197          },
198          WorldGrayCanvas: {
199            options: {
200              variant: "Canvas/World_Light_Gray_Base",
201              maxZoom: 16,
202              attribution: "{attribution.Esri} &mdash; Esri, DeLorme, NAVTEQ",
203            },
204          },
205        },
206      },
207      CartoDB: {
208        url: "https://cartodb-basemaps-{s}.global.ssl.fastly.net/{variant}/{z}/{x}/{y}{r}.png?key=cb1_3k5m_1_bf997ee0763ad5d9725623aa",
209        options: {
210          attribution:
211            '{attribution.OpenStreetMap} &copy; <a href="https://cartodb.com/attributions">CartoDB</a>',
212          subdomains: "abcd",
213          maxZoom: 19,
214          variant: "light_all",
215        },
216        variants: {
217          Positron: "light_all",
218          DarkMatter: "dark_all",
219          Voyager: "rastertiles/voyager",
220        },
221      },
222      HikeBike: {
223        url: "https://{s}.tiles.wmflabs.org/{variant}/{z}/{x}/{y}.png",
224        options: {
225          maxZoom: 19,
226          attribution: "{attribution.OpenStreetMap}",
227          variant: "hikebike",
228        },
229        variants: { HikeBike: {} },
230      },
231      NASAGIBS: {
232        url: "https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}{maxZoom}/{z}/{y}/{x}.{format}",
233        options: {
234          attribution:
235            'Imagery provided by services from the Global Imagery Browse Services (GIBS), operated by the NASA/GSFC/Earth Science Data and Information System (<a href="https://earthdata.nasa.gov">ESDIS</a>) with funding provided by NASA/HQ.',
236          bounds: [
237            [-85.0511287776, -179.999999975],
238            [85.0511287776, 179.999999975],
239          ],
240          minZoom: 1,
241          maxZoom: 9,
242          format: "jpg",
243          time: "",
244          tilematrixset: "GoogleMapsCompatible_Level",
245        },
246        variants: {
247          ViirsEarthAtNight2012: {
248            options: { variant: "VIIRS_CityLights_2012", maxZoom: 8 },
249          },
250        },
251      },
252      Wikimedia: {
253        url: "https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}{r}.png",
254        options: {
255          attribution:
256            '<a href="https://wikimediafoundation.org/wiki/Maps_Terms_of_Use">Wikimedia</a>',
257          minZoom: 1,
258          maxZoom: 19,
259        },
260      },
261    }),
262    (t.tileLayer.provider = function (a, i) {
263      return new t.TileLayer.Provider(a, i);
264    }),
265    t
266  );
267}),
268  jQuery(window).on("load", function () {
269    initOpenStreetMap(document);
270    new MutationObserver(function (t) {
271      t.forEach(function (t) {
272        var a = t.addedNodes;
273        null !== a &&
274          jQuery(a).each(function () {
275            jQuery(this)
276              .find(".sppb-addon-openstreetmap")
277              .each(function () {
278                var t,
279                  a = jQuery(this).attr("id"),
280                  i = jQuery(this).attr("data-mapzoom"),
281                  o = 1 === Number(jQuery(this).attr("data-zoomcontrol")),
282                  e = 1 === Number(jQuery(this).attr("data-dragging")),
283                  r = 1 === Number(jQuery(this).attr("data-mousescroll")),
284                  n = 1 === Number(jQuery(this).attr("data-attribution")),
285                  s = jQuery(this).attr("data-mapstyle"),
286                  p = JSON.parse(jQuery(this).attr("data-location")),
287                  u = p[0].latitude,
288                  l = p[0].longitude,
289                  m = L.map(a, {
290                    center: [u, l],
291                    zoom: i,
292                    zoomControl: o,
293                    scrollWheelZoom: r,
294                    dragging: e,
295                    maxZoom: 100,
296                    attributionControl: n,
297                  });
298                for (
299                  L.tileLayer.provider(s).addTo(m),
300                    jQuery('a[data-toggle="sppb-tab"]').on(
301                      "click",
302                      function (t) {
303                        var a = this;
304                        setTimeout(function () {
305                          jQuery(a).parent("li").hasClass("active") &&
306                            m.invalidateSize();
307                        }, 200);
308                      },
309                    ),
310                    jQuery(".sppb-panel-heading").on("click", function (t) {
311                      var a = this;
312                      setTimeout(function () {
313                        jQuery(a).hasClass("active") && m.invalidateSize();
314                      }, 200);
315                    }),
316                    t = 0;
317                  t < p.length;
318                  t++
319                ) {
320                  for (
321                    var d = L.Icon.extend({
322                        options: {
323                          iconSize: [38, 95],
324                          iconAnchor: [22, 94],
325                          popupAnchor: [-3, -76],
326                        },
327                      }),
328                      c = p[t].custom_icon,
329                      h = "",
330                      b = 0;
331                    b < c.length;
332                    b++
333                  )
334                    h = { icon: new d({ iconUrl: c }) };
335                  L.marker([p[t].latitude, p[t].longitude], h)
336                    .addTo(m)
337                    .bindPopup(p[t].address);
338                }
339              });
340          });
341      });
342    }).observe(document.body, { childList: !0, subtree: !0 });
343  }));

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.