PageSourceSearch

https://8004.ch/assets/Kreis4Map-6U2o31br.js

js 8004.ch collected 2026-10-02 20:50:48 UTC 3,157 bytes, 1 lines download raw bytes

1import{j as r}from"./index-DeJ875KO.js";import{M as a,T as u,L as c}from"./TileLayer-DcggYX2f.js";import{M as h,P as d}from"./Popup-DUtPReiq.js";import{u as g}from"./hooks-C5QpEg7c.js";function f({onPick:t}){return g({click(n){t(n.latlng.lat,n.latlng.lng)}}),null}const A={"gesellschaft-und-politik":"Gesellschaft und Politik","gesundheit-und-bildung":"Gesundheit und Bildung","aussersihl-bis-1893":"Aussersihl bis 1893","das-stadtquartier":"Das Stadtquartier","schwerpunkt-architektur":"Schwerpunkt Architektur","kunst-im-oeffentlichen-raum":"Kunst im öffentlichen Raum","gastronomie-und-unterhaltung":"Gastronomie & Unterhaltung","kinos-drehorte":"Kinos & Drehorte"},z={gesellschaft:["gesellschaft-und-politik","gesundheit-und-bildung"],"ortsentwicklung-verkehr":["aussersihl-bis-1893","das-stadtquartier","schwerpunkt-architektur"],"kultur-freizeit":["kunst-im-oeffentlichen-raum","gastronomie-und-unterhaltung","kinos-drehorte"]},m={gesellschaft:{label:"Gesellschaft",color:"#d5342c"},"ortsentwicklung-verkehr":{label:"Ortsentwicklung & Verkehr",color:"#a4bf2b"},"kultur-freizeit":{label:"Kultur & Freizeit",color:"#f09d2e"},"gotteshaeuser-friedhoefe":{label:"Gotteshäuser & Friedhöfe",color:"#33469b"},"gruene-oasen":{label:"Grüne Oasen",color:"#54a049"},personlichkeiten:{label:"Persönlichkeiten",color:"#54bfe4"},"kleine-entdeckungen":{label:"Kleine Entdeckungen",color:"#c2508e"}},p="#71717a";function E(t){const n=parseInt(t.slice(1),16);return .299*(n>>16&255)+.587*(n>>8&255)+.114*(n&255)>160?"#27272a":"#ffffff"}function k(t){return(t.categories[0]??"").split("/")[0]}function b(t){return c.divIcon({html:`<div style="width:16px;height:16px;background:${t};border-radius:50% 50% 50% 0;transform:rotate(-45deg);border:2.5px solid white;box-shadow:0 1px 4px rgba(0,0,0,0.4)"></div>`,className:"",iconSize:[16,16],iconAnchor:[8,16],popupAnchor:[0,-16]})}const s=new Map;function x(t){let n=s.get(t);return n||(n=b(t),s.set(t,n)),n}function G({pois:t,onPick:n,center:l}){const o=l??(()=>{const e=t.find(i=>i.lat!=null&&i.lng!=null);return e?[e.lat,e.lng]:[47.3772,8.521]})();return r.jsxs(a,{center:o,zoom:15,style:{height:"100%",width:"100%"},scrollWheelZoom:!1,className:"isolate",children:[n&&r.jsx(f,{onPick:n}),r.jsx(u,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),t.filter(e=>e.lat!=null&&e.lng!=null).map(e=>{const i=m[k(e)]?.color??p;return r.jsx(h,{position:[e.lat,e.lng],icon:x(i),children:r.jsx(d,{children:r.jsxs("div",{style:{minWidth:180,maxWidth:220},children:[e.image&&r.jsx("img",{src:e.image,alt:e.title,style:{width:"100%",height:110,objectFit:"cover",borderRadius:6,marginBottom:6},loading:"lazy"}),r.jsx("p",{style:{fontWeight:600,fontSize:13,margin:"2px 0",lineHeight:1.3},children:e.title}),r.jsx("a",{href:`https://unterwegs.8004.ch/stationen/${e.slug}`,target:"_blank",rel:"noopener noreferrer",style:{fontSize:12,color:"#b03a2e",fontWeight:500},children:"Mehr erfahren →"})]})})},e.slug)})]})}export{m as CATEGORY_META,z as CATEGORY_SUBS,A as SUBCATEGORY_META,G as default,E as textOn,k as topCategory};

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.