PageSourceSearch

https://kulturenvanteri.com/wp-content/themes/ke/dist/assets/map-public-CPtQEgAV.js

js kulturenvanteri.com collected 2026-10-02 10:03:57 UTC 5,406 bytes, 1 lines download raw bytes

1import{a as p}from"./mapbox-gl-DcIgoggK.js";/* empty css                  */import{l as L,c as S,g as M,M as P,d as _,a as I,b as O}from"./geocoder-DUc60AA8.js";import{bbox as x}from"./index-DO2Q859q.js";import{M as A,P as T,a as F}from"./map-filter-DhV6DEsu.js";import{C as f,K as h,r as Z}from"./config-D9_cCUJD.js";import"./vendor-dayjs-BRwEQoFN.js";import"./wiki-api-BImnUWHR.js";import"./index-B0tkDcvR.js";import"./figure-credit-Bltc1pVD.js";window.mapboxgl=p;window.turf={bbox:x,lineString:L};window.closeAllToasts=S;document.addEventListener("DOMContentLoaded",function(){const e=!!document.getElementById("map-all"),o=!!window.singlePlaceSettings;(e||o)&&B(e,o)});async function z(e){try{const o=await fetch(e,{headers:{Accept:"application/json"}});return o.ok?await o.json():e}catch{return e}}function B(e,o){try{const t=o?{...window.keSettings,...window.singlePlaceSettings}:window.keSettings;if(!t)return;const d=t.pluginPath+"/ke-geojson/geo.json",m=z(d);p.accessToken=t.mapboxToken;let n=[35.2433,38.9637],i=f.ZOOM.DEFAULT,l=0,r=0,g=M(t.themePath).layer;if(o)n=t.initialCenter||n,i=t.locationPrivate?12.5:18.5;else{const s=M(t.themePath);s.center&&(n=s.center),s.zoom!==null&&(i=s.zoom),s.pitch!==null&&(l=s.pitch),s.bearing!==null&&(r=s.bearing)}const C=document.getElementById("map-inline-mobile"),u=o&&C&&window.innerWidth<768;u&&(i=t.locationPrivate?11.5:15);const E=o?u?"map-inline-mobile":"map":"map-all",a=new p.Map({container:E,style:g,center:n,zoom:i,pitch:l,bearing:r,hash:!o,maxZoom:f.ZOOM.MAX,minZoom:f.ZOOM.MIN,projection:"globe",attributionControl:!1,...u&&{dragPan:!1,scrollZoom:!1,dragRotate:!1,keyboard:!1,doubleClickZoom:!1,touchPitch:!1}});if(u&&a.touchZoomRotate.disableRotation(),!u){const s=new p.GeolocateControl({positionOptions:{enableHighAccuracy:!0},trackUserLocation:!0});a.addControl(s,"bottom-right"),a.addControl(new p.NavigationControl({showCompass:!0}),"bottom-right"),a.addControl(new p.AttributionControl({compact:!0}),"bottom-right");const y=new P({accessToken:t.mapboxToken,mapboxgl:p,localGeocoder:_,zoom:f.ZOOM.GEOCODER,placeholder:"Adres ara",marker:!1}),c=document.getElementById("geocoder");c?c.appendChild(y.onAdd(a)):a.addControl(y,"top-left");const v=document.getElementById("geocoderModal");v&&v.addEventListener("shown.bs.modal",()=>{const w=c==null?void 0:c.querySelector(".mapboxgl-ctrl-geocoder--input");w&&w.focus()})}window.map=a,o&&t.locationPrivate&&I(a.getContainer(),t.privacyNote),new A(a,p).initialize();const b=new T(a,{siteUrl:t.siteUrl,themePath:t.themePath});a.on("load",()=>{b.initialize()}),a.on("style.load",async()=>{["title","place","placehover","placehighlight","placeheat","click-point","lines","placehighlight_single","privacy-circle-fill","privacy-circle-line"].forEach(c=>{a.getLayer(c)&&a.removeLayer(c)}),["markers","draft-markers","click-point","geometry","single_point","privacy_circle"].forEach(c=>{a.getSource(c)&&a.removeSource(c)});const s=await m;new F(a,f).initialize({data:s,dataDraft:{type:"FeatureCollection",features:[]},canEdit:!1,isSinglePlacePage:o,settings:t}),u||G(a,b),k(a)}),o||a.on("moveend",()=>{O(a)}),D(a,t.themePath),k(a)}catch(t){console.error("Public Map Init Error:",t)}}function G(e,o){const t=new p.Popup({closeButton:!1,closeOnClick:!1}),d=(i,l)=>{const r=i.properties.id;e.setFilter("placehighlight",["==","id",r]),o?o.fetchPlaceDetails(r):(e.flyTo({center:l,zoom:17}),window.placeModalFunction&&window.placeModalFunction(r))};e.on("click","place",i=>d(i.features[0],i.lngLat)),e.on("click","title",i=>d(i.features[0],i.features[0].geometry.coordinates));const m=i=>{e.getCanvas().style.cursor="pointer";const l=i.features[0];if(e.setFilter("placehover",["==","id",l.properties.id]),window.innerWidth>=768){const r=`<div class="popup-title">${l.properties.name}</div><div class="popup-small">${l.properties.cat}</div>`;t.setLngLat(l.geometry.coordinates).setHTML(r).addTo(e)}},n=()=>{e.getCanvas().style.cursor="",e.setFilter("placehover",["==","id",""]),t.remove()};e.on("mouseenter","place",m),e.on("mouseleave","place",n),e.on("mouseenter","title",m),e.on("mouseleave","title",n)}function k(e){const o=document.getElementById("flexSwitchCheckKE");if(!o)return;const t=h.getMap().keVisible;o.checked=t;const d=["place","title","placeheat"],m=t?"visible":"none";d.forEach(n=>{e.getLayer(n)&&e.setLayoutProperty(n,"visibility",m)}),!o.dataset.listening&&(o.addEventListener("change",n=>{const i=n.target.checked;h.setMap({keVisible:i});const l=i?"visible":"none";d.forEach(r=>{e.getLayer(r)&&e.setLayoutProperty(r,"visibility",l)})}),o.dataset.listening="true")}function D(e,o){const t=document.getElementById("layer_menu");if(!t)return;t.innerHTML="";const d=[{id:"esri_satellite",label:"Satellite - Esri"},{id:"google_satellite",label:"Satellite - Google"},{id:"carto_positron",label:"Street Light"},{id:"carto_voyager",label:"Street Voyager"},{id:"carto_dark_matter",label:"Street Dark"}],m=h.getMap().layerId||"esri_satellite";d.forEach(n=>{const i=document.createElement("button");i.className="layer",i.id=n.id,i.textContent=n.label,n.id===m&&(i.classList.add("layer_active"),i.disabled=!0),i.addEventListener("click",l=>{document.querySelectorAll("#layer_menu .layer").forEach(g=>{g.classList.remove("layer_active"),g.disabled=!1}),l.target.classList.add("layer_active"),l.target.disabled=!0;const r=Z(n.id,o);e.setStyle(r,{diff:!1}),h.setMap({layerId:n.id})}),t.appendChild(i)})}

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.