PageSourceSearch

https://www.visiteersel.nl/build/6972.f05a1f25b3fbaef03c48.bundle.js

js visiteersel.nl collected 2026-10-02 13:11:03 UTC 1,842 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkkunstmaan_edition=self.webpackChunkkunstmaan_edition||[]).push([[6972],{6972:(e,t,n)=>{n.d(t,{default:()=>o});var i=n(2891);const o=class extends i.xI{connect(){this.element.addEventListener("ux:map:connect",this._onMapConnect),this.element.addEventListener("ux:map:polyline:before-create",this._onPolylineBeforeCreate),this.element.addEventListener("map:marker:click",this._onMarkerClick),this.element.addEventListener("map:polyline-clear",this._clearPolyLine)}disconnect(){this.element.removeEventListener("ux:map:connect",this._onMapConnect),this.element.removeEventListener("ux:map:polyline:before-create",this._onPolylineBeforeCreate),this.element.removeEventListener("map:marker:click",this._onMarkerClick),this.element.removeEventListener("map:polyline-clear",this._clearPolyLine)}_onMapConnect=e=>{const{map:t,extra:n}=e.detail;this.map=t;const i=(e.detail.polylines??[]).find(e=>!0===e.options?.fit_to_bounds);if(!i){const e=n?.start_bounds;if(!e||n?.disableFitBounds)return;const i=L.latLngBounds(L.latLng(e._southWest.lat,e._southWest.lng),L.latLng(e._northEast.lat,e._northEast.lng));return void(i?.isValid?.()&&t.fitBounds(i,{padding:[15,15]}))}const o=i.getBounds?.();o?.isValid?.()&&t.fitBounds(o,{padding:[20,20]})};_onPolylineBeforeCreate=e=>{const{definition:t}=e.detail;t.bridgeOptions=t?.extra??{}};_onMarkerClick=async e=>{const{detail:t}=e,n=t.marker._map;this._removeLayerByName(n,"polyline_route");const i=t?.mapping?.polyline_route;if(i)try{const e=await fetch(i);if(!e.ok)return;const t=await e.json(),o=t?.points;if(!o)return;L.polyline(o,{...t.extra,name:"polyline_route"}).addTo(n)}catch(e){}};_clearPolyLine=e=>{this.map&&this._removeLayerByName(this.map,e.detail.polylineId??"polyline_route")};_removeLayerByName(e,t){e.eachLayer(n=>{n.options?.name!==t||e.removeLayer(n)})}}}}]);

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.