PageSourceSearch

https://forestcity-air-belgium.lovable.app/assets/ForestMap-K6ImZTYi.js

js forestcity-air-belgium.lovable.app collected 2026-10-03 03:31:39 UTC 1,999 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-R3o33iCq.js","assets/index-ZIGHcZhf.js","assets/leaflet-src-Bs20kXtw.js"])))=>i.map(i=>d[i]);
2import{h as i,_ as a,q as t}from"./index-ZIGHcZhf.js";const m=[{id:"f1",lat:50.733793,lon:4.637517,label:"Forest sensor 1"},{id:"f2",lat:50.979615,lon:4.377622,label:"Forest sensor 2"}],b=[{id:"bxl",lat:50.8466,lon:4.3528,label:"Brussels"},{id:"ant",lat:51.2194,lon:4.4025,label:"Antwerp"},{id:"gnt",lat:51.0543,lon:3.7174,label:"Ghent"},{id:"chr",lat:50.4108,lon:4.4446,label:"Charleroi"},{id:"lge",lat:50.6326,lon:5.5797,label:"Liège"}];function g(){const[d,c]=i.useState(!1),[o,h]=i.useState(null);if(i.useEffect(()=>{let e=!0;return Promise.all([a(()=>import("./index-R3o33iCq.js"),__vite__mapDeps([0,1,2])),a(()=>import("./leaflet-src-Bs20kXtw.js").then(l=>l.l),__vite__mapDeps([2,1]))]).then(([l,s])=>{if(!e)return;const p=s.divIcon({className:"",html:'<div style="width:14px;height:14px;border-radius:50%;background:#2d6a4f;border:2px solid white;box-shadow:0 0 0 1px #2d6a4f"></div>',iconSize:[14,14],iconAnchor:[7,7]}),f=s.divIcon({className:"",html:'<div style="width:14px;height:14px;border-radius:50%;background:#e76f51;border:2px solid white;box-shadow:0 0 0 1px #e76f51"></div>',iconSize:[14,14],iconAnchor:[7,7]});h({...l,forestIcon:p,cityIcon:f}),c(!0)}),()=>{e=!1}},[]),!d||!o)return t.jsx("div",{className:"h-full w-full flex items-center justify-center bg-neutral-100 text-xs text-neutral-500",children:"Loading map…"});const{MapContainer:u,TileLayer:x,Marker:n,Tooltip:r}=o;return t.jsxs(u,{center:[50.85,4.7],zoom:8,scrollWheelZoom:!1,style:{height:"100%",width:"100%"},children:[t.jsx(x,{attribution:"© OpenStreetMap",url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),m.map(e=>t.jsx(n,{position:[e.lat,e.lon],icon:o.forestIcon,children:t.jsx(r,{children:e.label})},e.id)),b.map(e=>t.jsx(n,{position:[e.lat,e.lon],icon:o.cityIcon,children:t.jsx(r,{children:e.label})},e.id))]})}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.