PageSourceSearch

https://www.parcum.be/frontend/leaflet.component-CqmqdkzR.js

js parcum.be collected 2026-10-02 06:41:30 UTC 1,362 bytes, 1 lines download raw bytes

1import{_ as l}from"./site-B0IjnxmE.js";import{A as c}from"./ajax-BnX9PgEQ.js";class g{constructor(){const t=document.querySelectorAll("[data-leaflet-map]");t.length>0&&Array.from(t).forEach(e=>{this.initMap(e)})}async initMap(t){const e=await l(()=>import("./leaflet-src-CLCA3X1B.js"),[]),i=new e.Icon({iconUrl:"/frontend/img/leaflet/marker-icon.png",iconRetinaUrl:"/frontend/img/leaflet/marker-icon-2x.png",shadowUrl:"/frontend/img/leaflet/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]}),a=new e.Map(t,{zoom:13,tap:!1,scrollWheelZoom:!1});if(t.getAttribute("data-address")&&c.call({url:`https://nominatim.openstreetmap.org/search?q=${t.getAttribute("data-address")}&format=json&addressdetails=1&limit=1`,success:n=>{e.marker([n[0].lat,n[0].lon],{icon:i}).addTo(a),a.setView([n[0].lat,n[0].lon],14)}}),t.getAttribute("data-locations")){const n=JSON.parse(t.getAttribute("data-locations"));a.fitBounds(n.map(o=>[o.lat,o.lng])),n.forEach(o=>{const r=new e.Marker([o.lat,o.lng],{icon:i}).addTo(a);if(o.info){const s=`${o.info?`<div class="">${o.info}</div>`:""}`;r.bindPopup(s)}})}new e.TileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="https://openstreetmap.org/copyright">OpenStreetMap contributors</a>'}).addTo(a)}}export{g as default};

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.