PageSourceSearch

https://pnsn.org/_nuxt/v1790800031/CDsyH3DP.js

js pnsn.org collected 2026-10-02 02:57:17 UTC 4,548 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`5825cd330461ef1ddd98548f447ed9b5dc315e0e`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`363ed941-531d-4760-8460-337ce4b3a425`,e._sentryDebugIdIdentifier=`sentry-dbid-363ed941-531d-4760-8460-337ce4b3a425`)}catch{}})();import{Ht as e,J as t,On as n,b as r,bt as i,ct as a,ft as o,g as s,k as c,mt as l,nr as u,o as d,qt as f,v as p,vn as m,xt as h,y as g}from"./BEzPH0Ic.js";import{r as _}from"./BaMFBWhS.js";import{f as v}from"./BWt39qzj.js";import{t as y}from"./NqWA_VC5.js";import{t as b}from"./Cc-Ein02.js";import{r as x}from"./_Iur6-yb.js";import{t as S}from"./DUj8FL5f.js";var C=[`textContent`],w=[`innerHTML`],T={key:0},E=Object.assign(c({__name:`MapLayerGeoJson`,props:{fitBounds:{type:Boolean},geojson:{default:()=>[]},showProperties:{type:Boolean,default:!1}},setup(c){let E=t(`map`),D=t(`ready`,m(!1)),O=t(`disableEvents`,m(!0)),k=s(()=>({type:`FeatureCollection`,features:c.geojson?.map(e=>x(e)).filter(e=>!!e).flatMap(e=>`features`in e?e.features:e)??[]})),A=[{name:`station-marker`,path:S}],j=[`geojson-lines`,`geojson-points`,`geojson-polygons`],M=m(),N=m(),P;a(()=>{e([E,D],()=>{_(A,E?.value,D.value).then(e=>{E?.value&&e&&I(E?.value)})},{immediate:!0}),E?.value&&L(E.value)}),o(()=>{E?.value&&(F(E.value),H(E.value)),clearTimeout(P)}),e(O,(e,t)=>{O.value&&E?.value?H(E.value):t===!0&&e===!1&&E?.value&&L(E.value)},{immediate:!0});function F(e){e.getSource(`geojson-data`)?.setData(v([]))}function I(t){if(t){try{t.getSource(`geojson-data`)||t.addSource(`geojson-data`,{type:`geojson`,data:k.value}),t.getLayer(`geojson-lines`)||t.addLayer({id:`geojson-lines`,type:`line`,source:`geojson-data`,paint:{"line-color":[`get`,`color`],"line-width":[`get`,`weight`],"line-opacity":[`get`,`opacity`]},filter:[`any`,[`==`,[`geometry-type`],`LineString`],[`==`,[`geometry-type`],`MultiLineString`]]}),t.getLayer(`geojson-points`)||t.addLayer({id:`geojson-points`,type:`symbol`,source:`geojson-data`,layout:{"icon-image":`station-marker`,"icon-allow-overlap":!0,"icon-size":.2},paint:{},filter:[`any`,[`==`,[`geometry-type`],`Point`],[`==`,[`geometry-type`],`MultiPoint`]]}),t.getLayer(`geojson-polygon-lines`)||t.addLayer({id:`geojson-polygon-lines`,type:`line`,source:`geojson-data`,paint:{"line-color":[`get`,`color`],"line-width":[`get`,`weight`],"line-opacity":[`get`,`opacity`]},filter:[`any`,[`==`,[`geometry-type`],`Polygon`],[`==`,[`geometry-type`],`MultiPolygon`]]}),t.getLayer(`geojson-polygons`)||t.addLayer({id:`geojson-polygons`,type:`fill`,source:`geojson-data`,paint:{"fill-color":[`get`,`fillColor`],"fill-opacity":[`get`,`fillOpacity`],"fill-outline-color":[`get`,`color`]},filter:[`any`,[`==`,[`geometry-type`],`Polygon`],[`==`,[`geometry-type`],`MultiPolygon`]]})}catch{}e(k,()=>{(t?.getSource(`geojson-data`))?.setData(k.value),M.value=void 0},{immediate:!0})}}function L(e){e&&(e.on(`mouseover`,j,B),e.on(`mouseover`,j,V),e.on(`click`,j,U))}let R,z;function B(e){E?.value&&(P&&clearTimeout(P),e.features[0]&&(R=e.features[0],z=e.lngLat),E.value.getCanvas().style.cursor=`pointer`,E.value.on(`click`,U))}function V(){E?.value&&(P=setTimeout(()=>{E.value.getCanvas().style.cursor=``,R=void 0,z=void 0,E.value.off(`click`,U)},500))}function H(e){e&&(e.off(`click`,j,U),e.off(`mouseover`,j,B),e.off(`mouseover`,j,V),e.off(`click`,U))}function U(e){let t=e.features?e.features[0]:R,n=e.features?e.lngLat:z;t?.layer.id===`geojson-polygons`&&(n=y(t.geometry).geometry.coordinates),e.preventDefault(),t&&n?(M.value=t,N.value=n):(M.value=!1,N.value=void 0)}return(e,t)=>{let a=b;return n(M)&&n(N)&&(n(M).properties.name||e.$slots.popup||c.showProperties)?(l(),p(a,{key:0,position:n(N),class:`text-xs`},{title:f(()=>[h(e.$slots,`title`,{selected:n(M)},()=>[n(M).properties.name?(l(),r(`div`,{key:0,class:`font-medium`,textContent:u(n(M).properties.name)},null,8,C)):g(``,!0)])]),default:f(()=>[h(e.$slots,`popup`,{selected:n(M)},()=>[n(M).properties.description?(l(),r(`div`,{key:0,id:`geojson-popup-content`,class:`popup-description`,innerHTML:n(M).properties.description},null,8,w)):g(``,!0),c.showProperties?(l(!0),r(d,{key:1},i(Object.keys(n(M).properties),e=>(l(),r(d,{key:e},[[`weight`,`opacity`,`color`,`fillOpacity`,`fillColor`,`name`,`description`].includes(e)?g(``,!0):(l(),r(`div`,T,u(e)+`: `+u(n(M).properties[e]),1))],64))),128)):g(``,!0)])]),_:3},8,[`position`])):g(``,!0)}}}),{__name:`MapLayerGeoJson`});export{E as 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.