PageSourceSearch

https://pluscamp.no/modules/custom/common/map/js/map.min.js?tlwzy0

js pluscamp.no collected 2026-09-25 20:13:31 UTC 3,366 bytes, 2 lines download raw bytes

1/* Hash: ed2742e50bcb57e651db9ff1e3a1e47ccce628cc32b25c1f766e66045aa4ed9b */
2!function(e){const t=(t,o)=>{const{maptiler_map_json_style:n,maptiler_api_key:i}=e.map,{markers:l,norkartApiKey:p}=o;if(o.mapStyle=n,o.maptilerApiKey=i,!p&&!o.mapStyle&&!o.maptilerApiKey){L.tileLayer("https://tiles.citybreak.com/tiles/osm/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noreferrer noopener" aria-label="OpenStreetMap copyright and license information (opens in a new tab)">OpenStreetMap</a> contributors',maxZoom:18}).addTo(t).on("tileload",(e=>{e.tile.setAttribute("alt","Map tile image")}))}if(o.maptilerApiKey&&o.mapStyle){const{maptilerApiKey:e,mapStyle:a}=o;L.maplibreGL({attribution:'\n          <a href="https://www.maptiler.com/copyright/" target="_blank" rel="noreferrer noopener" aria-label="MapTiler copyright and license information (opens in a new tab)">&copy; MapTiler</a>\n          <a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noreferrer noopener" aria-label="OpenStreetMap copyright and license information (opens in a new tab)">OpenStreetMap</a>',style:`${a}${e}`}).addTo(t)}const s=L.layerGroup(),m=new L.featureGroup;if(p){const e=a(p);L.control.layers(e,{}).addTo(t)}l.forEach((e=>r(e,s,m,o.divIcon))),t.fitBounds(m.getBounds()).addLayer(s),t.setZoom(o.zoom),t.on("popupopen",(e=>{const a=t.project(e.target._popup._latlng);a.y-=e.target._popup._container.clientHeight/2,t.panTo(t.unproject(a),{animate:!0})}))},a=e=>["VECTOR","GREY","MEDIUM","LITE","AERIAL","HYBRID"].reduce(((t,a)=>{const r=`Kart, ${"VECTOR"===a?"":a.toLowerCase()}`;return t[r]=L.tileLayer.webatlas({mapType:L.TileLayer.Webatlas.Type[a],apikey:e}),"VECTOR"===a&&t[r].addTo(map),t}),{}),r=(e,t,a,r)=>{let o=`<h4>${e.label}</h4><p>${e.description}</p>`;e.linkTitle&&e.linkUrl&&(o+=`<a href="${e.linkUrl}">${e.linkTitle}</a>`),e.image&&(o+=`<div class="image-wrapper"><img src="${e.image}" alt="Marker image"></div>`);const n=e.shape||e.bgColor?L.ExtraMarkers.icon({markerColor:e.bgColor||"red",shape:e.shape||"circle",prefix:"fa"}):r?L.divIcon({className:"custom-div-icon"}):null,i=Object.assign({},null===n?null:{icon:n},{autoPan:!0});L.marker([e.lat,e.lng],i).bindPopup(o,{maxWidth:n?260:240,minWidth:n?200:null}).addTo(t).addTo(a)};document.querySelectorAll(".maptiler-map").forEach((e=>{const a={zoom:e.dataset.zoom||5,zoomControl:"true"===e.dataset.zoomControl,scrollWheelZoom:"true"===e.dataset.scrollWheelZoom,dragging:"true"===e.dataset.dragging,markers:JSON.parse(e.dataset.markers||"[]"),accessToken:e.dataset.accessToken||"notused",mapStyle:e.dataset.mapStyle,divIcon:"true"===e.dataset.divIcon,norkartApiKey:e.dataset.norkartApiKey||!1,maptilerApiKey:e.dataset.maptilerApiKey||!1,updateTabindex:e.dataset.updateTabindex||!1};lazyInit(e,(()=>((e,a)=>{const{dragging:r,zoomControl:o,scrollWheelZoom:n,zoom:i}=a;var l=a.updateTabindex||!1;const p=L.map(e,{dragging:!!r&&!L.Browser.mobile,scrollWheelZoom:n,zoomControl:o,zoom:i});t(p,a);var s=p.getContainer();return s&&(l&&(s.setAttribute("tabindex","-1"),s.querySelectorAll(".leaflet-marker-icon").forEach((function(e){e.setAttribute("tabindex","-1")}))),s.querySelectorAll(".leaflet-marker-shadow").forEach((function(e){e.setAttribute("aria-hidden","true"),e.setAttribute("alt","Map marker shadow")}))),p})(e,a)))}))}(drupalSettings);

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.