PageSourceSearch

https://www.interlaken.swiss/dist/js/ndspatterns/mapbox-g-l/popup-BdDqoGir.js

js interlaken.swiss collected 2026-10-02 12:27:32 UTC 1,535 bytes, 1 lines download raw bytes

1import{a as e}from"../../helpers-ePuekpbm.js";import{n as t,t as n}from"../../mapboxgl-DsnZs9et.js";var r=function(e,t){let n=t.container,r;e!==void 0&&e.isApiLoaded()?(r=e.generateMap(),n.map=r,r.init(t),r.getMap().on(`load`,()=>{n.dispatchEvent(new Event(`mapReady`))})):document.addEventListener(`mapApiLoaded`,function(i){r=e.generateMap(),t.container.map=r,r.init(t),r.getMap().on(`load`,()=>{n.dispatchEvent(new Event(`mapReady`))})},!1)},i=!1,a=function(t,n){let r=document.querySelectorAll(`.js-image-location`);for(let a=0;a<r.length;++a){let s=r[a];s.addEventListener(`click`,function(r){r.preventDefault(),r.stopPropagation(),i||=new t(n);let a=document.querySelector(`#js-overlay-imagelocation`);a.querySelector(`.js-overlay-imagelocation-content`).innerHTML=``;let c=new XMLHttpRequest,l=e()+`?type=1752844406`,u={lat:s.dataset.lat,lon:s.dataset.lon};c.open(`POST`,l,!0),c.onreadystatechange=function(){if(c.readyState===4){if(c.status>=200&&c.status<=300){let e=c.responseText;e&&o(e,i,a)}else console.log(`Request failed. Returned status of `+c.status)}},c.send(JSON.stringify(u))})}},o=function(e,t,n){n.querySelector(`.js-overlay-imagelocation-content`).innerHTML=e,s(t,n.querySelector(`.js-overlaymap`))},s=function(e,t){let n=[],i=t.dataset.icon?t.dataset.icon:null,a=t.dataset.extraIcon?t.dataset.extraIcon:null;if(t.dataset.position){let o={position:t.dataset.position};a&&(o.extraIcon=a),i&&(o.icon=i),n.push(o),r(e,{container:t,marker:n,options:{}})}};document.querySelector(`.js-image-location`)!==null&&a(n,t);

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.