@performant-software/geospatial 3.1.15-beta.0 → 3.1.16-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/index.cjs201.js +1 -1
  2. package/dist/index.cjs211.js +1 -1
  3. package/dist/index.cjs212.js +1 -1
  4. package/dist/index.cjs213.js +1 -1
  5. package/dist/index.cjs231.js +1 -1
  6. package/dist/index.cjs238.js +1 -1
  7. package/dist/index.cjs238.js.map +1 -1
  8. package/dist/index.cjs239.js +1 -1
  9. package/dist/index.cjs239.js.map +1 -1
  10. package/dist/index.cjs240.js +1 -1
  11. package/dist/index.cjs240.js.map +1 -1
  12. package/dist/index.cjs241.js +1 -1
  13. package/dist/index.cjs241.js.map +1 -1
  14. package/dist/index.cjs242.js +1 -1
  15. package/dist/index.cjs242.js.map +1 -1
  16. package/dist/index.cjs31.js +1 -1
  17. package/dist/index.cjs33.js +1 -1
  18. package/dist/index.cjs34.js +1 -1
  19. package/dist/index.cjs38.js +1 -1
  20. package/dist/index.cjs75.js +1 -743
  21. package/dist/index.cjs75.js.map +1 -1
  22. package/dist/index.cjs76.js +1 -1
  23. package/dist/index.cjs76.js.map +1 -1
  24. package/dist/index.cjs80.js +743 -1
  25. package/dist/index.cjs80.js.map +1 -1
  26. package/dist/index.cjs81.js +1 -1
  27. package/dist/index.cjs81.js.map +1 -1
  28. package/dist/index.es201.js +2 -2
  29. package/dist/index.es211.js +1 -1
  30. package/dist/index.es212.js +1 -1
  31. package/dist/index.es213.js +1 -1
  32. package/dist/index.es231.js +1 -1
  33. package/dist/index.es238.js +3 -21
  34. package/dist/index.es238.js.map +1 -1
  35. package/dist/index.es239.js +5 -22
  36. package/dist/index.es239.js.map +1 -1
  37. package/dist/index.es240.js +8 -3
  38. package/dist/index.es240.js.map +1 -1
  39. package/dist/index.es241.js +19 -6
  40. package/dist/index.es241.js.map +1 -1
  41. package/dist/index.es242.js +22 -5
  42. package/dist/index.es242.js.map +1 -1
  43. package/dist/index.es31.js +1 -1
  44. package/dist/index.es33.js +2 -2
  45. package/dist/index.es34.js +2 -2
  46. package/dist/index.es38.js +1 -1
  47. package/dist/index.es75.js +104 -21350
  48. package/dist/index.es75.js.map +1 -1
  49. package/dist/index.es76.js +10 -2
  50. package/dist/index.es76.js.map +1 -1
  51. package/dist/index.es80.js +21350 -104
  52. package/dist/index.es80.js.map +1 -1
  53. package/dist/index.es81.js +2 -10
  54. package/dist/index.es81.js.map +1 -1
  55. package/package.json +1 -1
  56. package/types/components/GeoJSONLayerTest.js.flow +0 -190
  57. package/types/components/LocationMarker.js.flow +0 -82
@@ -1,2 +1,2 @@
1
- "use strict";const d=require("./index.cjs238.js"),p=require("./index.cjs239.js"),i=require("./index.cjs206.js"),c={version:8,sources:{},layers:[]},u={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},h={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},m={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},f=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],v=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class l{constructor(t,o,a){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=e=>{const s=this.props[m[e.type]];s?s(e):e.type==="error"&&console.error(e.error)},this._onCameraEvent=e=>{if(this._internalUpdate)return;e.viewState=this._propsedCameraUpdate||d.transformToViewState(this._map.transform);const s=this.props[h[e.type]];s&&s(e)},this._onCameraUpdate=e=>this._internalUpdate?e:(this._propsedCameraUpdate=d.transformToViewState(e),d.applyViewStateToTransform(e,this.props)),this._onPointerEvent=e=>{(e.type==="mousemove"||e.type==="mouseout")&&this._updateHover(e);const s=this.props[u[e.type]];s&&(this.props.interactiveLayerIds&&e.type!=="mouseover"&&e.type!=="mouseout"&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),s(e),delete e.features)},this._MapClass=t,this.props=o,this._initialize(a)}get map(){return this._map}setProps(t){const o=this.props;this.props=t;const a=this._updateSettings(t,o),e=this._updateSize(t),s=this._updateViewState(t);this._updateStyle(t,o),this._updateStyleComponents(t),this._updateHandlers(t,o),(a||e||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,o){const a=l.savedMaps.pop();if(!a)return null;const e=a.map,s=e.getContainer();for(o.className=s.className;s.childNodes.length>0;)o.appendChild(s.childNodes[0]);e._container=o;const n=e._resizeObserver;n&&(n.disconnect(),n.observe(o)),a.setProps({...t,styleDiffing:!1}),e.resize();const{initialViewState:r}=t;return r&&(r.bounds?e.fitBounds(r.bounds,{...r.fitBoundsOptions,duration:0}):a._updateViewState(r)),e.isStyleLoaded()?e.fire("load"):e.once("style.load",()=>e.fire("load")),e._update(),a}_initialize(t){const{props:o}=this,{mapStyle:a=c}=o,e={...o,...o.initialViewState,container:t,style:p.normalizeStyle(a)},s=e.initialViewState||e.viewState||e;if(Object.assign(e,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),o.gl){const r=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=r,o.gl)}const n=new this._MapClass(e);s.padding&&n.setPadding(s.padding),o.cursor&&(n.getCanvas().style.cursor=o.cursor),n.transformCameraUpdate=this._onCameraUpdate,n.on("style.load",()=>{this._styleComponents={light:n.getLight(),sky:n.getSky(),projection:n.getProjection?.(),terrain:n.getTerrain()},this._updateStyleComponents(this.props)}),n.on("sourcedata",()=>{this._updateStyleComponents(this.props)});for(const r in u)n.on(r,this._onPointerEvent);for(const r in h)n.on(r,this._onCameraEvent);for(const r in m)n.on(r,this._onEvent);this._map=n}recycle(){this.map.getContainer().querySelector("[mapboxgl-children]")?.remove(),l.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_updateSize(t){const{viewState:o}=t;if(o){const a=this._map;if(o.width!==a.transform.width||o.height!==a.transform.height)return a.resize(),!0}return!1}_updateViewState(t){const o=this._map,a=o.transform;if(!o.isMoving()){const s=d.applyViewStateToTransform(a,t);if(Object.keys(s).length>0)return this._internalUpdate=!0,o.jumpTo(s),this._internalUpdate=!1,!0}return!1}_updateSettings(t,o){const a=this._map;let e=!1;for(const s of f)s in t&&!i.deepEqual(t[s],o[s])&&(e=!0,a[`set${s[0].toUpperCase()}${s.slice(1)}`]?.call(a,t[s]));return e}_updateStyle(t,o){if(t.cursor!==o.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==o.mapStyle){const{mapStyle:a=c,styleDiffing:e=!0}=t,s={diff:e};"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(p.normalizeStyle(a),s)}}_updateStyleComponents({light:t,projection:o,sky:a,terrain:e}){const s=this._map,n=this._styleComponents;s.style._loaded&&(t&&!i.deepEqual(t,n.light)&&(n.light=t,s.setLight(t)),o&&!i.deepEqual(o,n.projection)&&o!==n.projection?.type&&(n.projection=typeof o=="string"?{type:o}:o,s.setProjection?.(n.projection)),a&&!i.deepEqual(a,n.sky)&&(n.sky=a,s.setSky(a)),e!==void 0&&!i.deepEqual(e,n.terrain)&&(!e||s.getSource(e.source))&&(n.terrain=e,s.setTerrain(e)))}_updateHandlers(t,o){const a=this._map;for(const e of v){const s=t[e]??!0,n=o[e]??!0;i.deepEqual(s,n)||(s?a[e].enable(s):a[e].disable())}}_queryRenderedFeatures(t){const o=this._map,{interactiveLayerIds:a=[]}=this.props;try{return o.queryRenderedFeatures(t,{layers:a.filter(o.getLayer.bind(o))})}catch{return[]}}_updateHover(t){const{props:o}=this;if(o.interactiveLayerIds&&(o.onMouseMove||o.onMouseEnter||o.onMouseLeave)){const e=t.type,s=this._hoveredFeatures?.length>0,n=this._queryRenderedFeatures(t.point),r=n.length>0;!r&&s&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=n,r&&!s&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=e}else this._hoveredFeatures=null}}l.savedMaps=[];module.exports=l;
1
+ "use strict";const d=require("./index.cjs241.js"),p=require("./index.cjs242.js"),i=require("./index.cjs206.js"),c={version:8,sources:{},layers:[]},u={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},h={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},m={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},f=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],v=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class l{constructor(t,o,a){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=e=>{const s=this.props[m[e.type]];s?s(e):e.type==="error"&&console.error(e.error)},this._onCameraEvent=e=>{if(this._internalUpdate)return;e.viewState=this._propsedCameraUpdate||d.transformToViewState(this._map.transform);const s=this.props[h[e.type]];s&&s(e)},this._onCameraUpdate=e=>this._internalUpdate?e:(this._propsedCameraUpdate=d.transformToViewState(e),d.applyViewStateToTransform(e,this.props)),this._onPointerEvent=e=>{(e.type==="mousemove"||e.type==="mouseout")&&this._updateHover(e);const s=this.props[u[e.type]];s&&(this.props.interactiveLayerIds&&e.type!=="mouseover"&&e.type!=="mouseout"&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),s(e),delete e.features)},this._MapClass=t,this.props=o,this._initialize(a)}get map(){return this._map}setProps(t){const o=this.props;this.props=t;const a=this._updateSettings(t,o),e=this._updateSize(t),s=this._updateViewState(t);this._updateStyle(t,o),this._updateStyleComponents(t),this._updateHandlers(t,o),(a||e||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,o){const a=l.savedMaps.pop();if(!a)return null;const e=a.map,s=e.getContainer();for(o.className=s.className;s.childNodes.length>0;)o.appendChild(s.childNodes[0]);e._container=o;const n=e._resizeObserver;n&&(n.disconnect(),n.observe(o)),a.setProps({...t,styleDiffing:!1}),e.resize();const{initialViewState:r}=t;return r&&(r.bounds?e.fitBounds(r.bounds,{...r.fitBoundsOptions,duration:0}):a._updateViewState(r)),e.isStyleLoaded()?e.fire("load"):e.once("style.load",()=>e.fire("load")),e._update(),a}_initialize(t){const{props:o}=this,{mapStyle:a=c}=o,e={...o,...o.initialViewState,container:t,style:p.normalizeStyle(a)},s=e.initialViewState||e.viewState||e;if(Object.assign(e,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),o.gl){const r=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=r,o.gl)}const n=new this._MapClass(e);s.padding&&n.setPadding(s.padding),o.cursor&&(n.getCanvas().style.cursor=o.cursor),n.transformCameraUpdate=this._onCameraUpdate,n.on("style.load",()=>{this._styleComponents={light:n.getLight(),sky:n.getSky(),projection:n.getProjection?.(),terrain:n.getTerrain()},this._updateStyleComponents(this.props)}),n.on("sourcedata",()=>{this._updateStyleComponents(this.props)});for(const r in u)n.on(r,this._onPointerEvent);for(const r in h)n.on(r,this._onCameraEvent);for(const r in m)n.on(r,this._onEvent);this._map=n}recycle(){this.map.getContainer().querySelector("[mapboxgl-children]")?.remove(),l.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_updateSize(t){const{viewState:o}=t;if(o){const a=this._map;if(o.width!==a.transform.width||o.height!==a.transform.height)return a.resize(),!0}return!1}_updateViewState(t){const o=this._map,a=o.transform;if(!o.isMoving()){const s=d.applyViewStateToTransform(a,t);if(Object.keys(s).length>0)return this._internalUpdate=!0,o.jumpTo(s),this._internalUpdate=!1,!0}return!1}_updateSettings(t,o){const a=this._map;let e=!1;for(const s of f)s in t&&!i.deepEqual(t[s],o[s])&&(e=!0,a[`set${s[0].toUpperCase()}${s.slice(1)}`]?.call(a,t[s]));return e}_updateStyle(t,o){if(t.cursor!==o.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==o.mapStyle){const{mapStyle:a=c,styleDiffing:e=!0}=t,s={diff:e};"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(p.normalizeStyle(a),s)}}_updateStyleComponents({light:t,projection:o,sky:a,terrain:e}){const s=this._map,n=this._styleComponents;s.style._loaded&&(t&&!i.deepEqual(t,n.light)&&(n.light=t,s.setLight(t)),o&&!i.deepEqual(o,n.projection)&&o!==n.projection?.type&&(n.projection=typeof o=="string"?{type:o}:o,s.setProjection?.(n.projection)),a&&!i.deepEqual(a,n.sky)&&(n.sky=a,s.setSky(a)),e!==void 0&&!i.deepEqual(e,n.terrain)&&(!e||s.getSource(e.source))&&(n.terrain=e,s.setTerrain(e)))}_updateHandlers(t,o){const a=this._map;for(const e of v){const s=t[e]??!0,n=o[e]??!0;i.deepEqual(s,n)||(s?a[e].enable(s):a[e].disable())}}_queryRenderedFeatures(t){const o=this._map,{interactiveLayerIds:a=[]}=this.props;try{return o.queryRenderedFeatures(t,{layers:a.filter(o.getLayer.bind(o))})}catch{return[]}}_updateHover(t){const{props:o}=this;if(o.interactiveLayerIds&&(o.onMouseMove||o.onMouseEnter||o.onMouseLeave)){const e=t.type,s=this._hoveredFeatures?.length>0,n=this._queryRenderedFeatures(t.point),r=n.length>0;!r&&s&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=n,r&&!s&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=e}else this._hoveredFeatures=null}}l.savedMaps=[];module.exports=l;
2
2
  //# sourceMappingURL=index.cjs201.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs241.js"),t=require("./index.cjs213.js"),r=e(t);module.exports=r;
1
+ "use strict";const e=require("./index.cjs240.js"),t=require("./index.cjs213.js"),r=e(t);module.exports=r;
2
2
  //# sourceMappingURL=index.cjs211.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs242.js"),e=t("length");module.exports=e;
1
+ "use strict";const t=require("./index.cjs239.js"),e=t("length");module.exports=e;
2
2
  //# sourceMappingURL=index.cjs212.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs242.js"),e=t("byteLength");module.exports=e;
1
+ "use strict";const t=require("./index.cjs239.js"),e=t("byteLength");module.exports=e;
2
2
  //# sourceMappingURL=index.cjs213.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs241.js"),r=require("./index.cjs212.js"),t=e(r);module.exports=t;
1
+ "use strict";const e=require("./index.cjs240.js"),r=require("./index.cjs212.js"),t=e(r);module.exports=t;
2
2
  //# sourceMappingURL=index.cjs231.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs206.js");function d(n){return{longitude:n.center.lng,latitude:n.center.lat,zoom:n.zoom,pitch:n.pitch,bearing:n.bearing,padding:n.padding}}function g(n,t){const e=t.viewState||t,i={};if("longitude"in e&&"latitude"in e&&(e.longitude!==n.center.lng||e.latitude!==n.center.lat)){const a=n.center.constructor;i.center=new a(e.longitude,e.latitude)}return"zoom"in e&&e.zoom!==n.zoom&&(i.zoom=e.zoom),"bearing"in e&&e.bearing!==n.bearing&&(i.bearing=e.bearing),"pitch"in e&&e.pitch!==n.pitch&&(i.pitch=e.pitch),e.padding&&n.padding&&!o.deepEqual(e.padding,n.padding)&&(i.padding=e.padding),i}exports.applyViewStateToTransform=g;exports.transformToViewState=d;
1
+ "use strict";const t=require("./index.cjs209.js"),e=t("Object");module.exports=e;
2
2
  //# sourceMappingURL=index.cjs238.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs238.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/transform.js"],"sourcesContent":["import { deepEqual } from \"./deep-equal.js\";\n/**\n * Capture a transform's current state\n * @param transform\n * @returns descriptor of the view state\n */\nexport function transformToViewState(tr) {\n return {\n longitude: tr.center.lng,\n latitude: tr.center.lat,\n zoom: tr.zoom,\n pitch: tr.pitch,\n bearing: tr.bearing,\n padding: tr.padding\n };\n}\n/* eslint-disable complexity */\n/**\n * Applies requested view state to a transform\n * @returns an object containing detected changes\n */\nexport function applyViewStateToTransform(\n/** An object that describes Maplibre's camera state */\ntr, \n/** Props from Map component */\nprops) {\n const v = props.viewState || props;\n const changes = {};\n if ('longitude' in v &&\n 'latitude' in v &&\n (v.longitude !== tr.center.lng || v.latitude !== tr.center.lat)) {\n const LngLat = tr.center.constructor;\n // @ts-expect-error we should not import LngLat class from maplibre-gl because we don't know the source of mapLib\n changes.center = new LngLat(v.longitude, v.latitude);\n }\n if ('zoom' in v && v.zoom !== tr.zoom) {\n changes.zoom = v.zoom;\n }\n if ('bearing' in v && v.bearing !== tr.bearing) {\n changes.bearing = v.bearing;\n }\n if ('pitch' in v && v.pitch !== tr.pitch) {\n changes.pitch = v.pitch;\n }\n if (v.padding && tr.padding && !deepEqual(v.padding, tr.padding)) {\n changes.padding = v.padding;\n }\n return changes;\n}\n//# sourceMappingURL=transform.js.map"],"names":["transformToViewState","tr","applyViewStateToTransform","props","v","changes","LngLat","deepEqual"],"mappings":"qHAMO,SAASA,EAAqBC,EAAI,CACrC,MAAO,CACH,UAAWA,EAAG,OAAO,IACrB,SAAUA,EAAG,OAAO,IACpB,KAAMA,EAAG,KACT,MAAOA,EAAG,MACV,QAASA,EAAG,QACZ,QAASA,EAAG,OAAA,CAEpB,CAMO,SAASC,EAEhBD,EAEAE,EAAO,CACH,MAAMC,EAAID,EAAM,WAAaA,EACvBE,EAAU,CAAA,EAChB,GAAI,cAAeD,GACf,aAAcA,IACbA,EAAE,YAAcH,EAAG,OAAO,KAAOG,EAAE,WAAaH,EAAG,OAAO,KAAM,CACjE,MAAMK,EAASL,EAAG,OAAO,YAEzBI,EAAQ,OAAS,IAAIC,EAAOF,EAAE,UAAWA,EAAE,QAAQ,CACvD,CACA,MAAI,SAAUA,GAAKA,EAAE,OAASH,EAAG,OAC7BI,EAAQ,KAAOD,EAAE,MAEjB,YAAaA,GAAKA,EAAE,UAAYH,EAAG,UACnCI,EAAQ,QAAUD,EAAE,SAEpB,UAAWA,GAAKA,EAAE,QAAUH,EAAG,QAC/BI,EAAQ,MAAQD,EAAE,OAElBA,EAAE,SAAWH,EAAG,SAAW,CAACM,YAAUH,EAAE,QAASH,EAAG,OAAO,IAC3DI,EAAQ,QAAUD,EAAE,SAEjBC,CACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs238.js","sources":["../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["hasObjectTag","tagTester"],"mappings":"kDAEAA,EAAeC,EAAU,QAAQ","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function c(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const f=e.layers.map(r=>{let n=null;"interactive"in r&&(n=Object.assign({},r),delete n.interactive);const o=t[r.ref];if(o){n=n||Object.assign({},r),delete n.ref;for(const i of a)i in o&&(n[i]=o[i])}return n||r});return{...e,layers:f}}exports.normalizeStyle=c;
1
+ "use strict";function n(t){return function(r){return r?.[t]}}module.exports=n;
2
2
  //# sourceMappingURL=index.cjs239.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs239.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/style-utils.js"],"sourcesContent":["const refProps = ['type', 'source', 'source-layer', 'minzoom', 'maxzoom', 'filter', 'layout'];\n// Prepare a map style object for diffing\n// If immutable - convert to plain object\n// Work around some issues in older styles that would fail Mapbox's diffing\nexport function normalizeStyle(style) {\n if (!style) {\n return null;\n }\n if (typeof style === 'string') {\n return style;\n }\n if ('toJS' in style) {\n style = style.toJS();\n }\n if (!style.layers) {\n return style;\n }\n const layerIndex = {};\n for (const layer of style.layers) {\n layerIndex[layer.id] = layer;\n }\n const layers = style.layers.map(layer => {\n let normalizedLayer = null;\n if ('interactive' in layer) {\n normalizedLayer = Object.assign({}, layer);\n // Breaks style diffing :(\n // @ts-ignore legacy field not typed\n delete normalizedLayer.interactive;\n }\n // Style diffing doesn't work with refs so expand them out manually before diffing.\n // @ts-ignore legacy field not typed\n const layerRef = layerIndex[layer.ref];\n if (layerRef) {\n normalizedLayer = normalizedLayer || Object.assign({}, layer);\n // @ts-ignore\n delete normalizedLayer.ref;\n // https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/deref.js\n for (const propName of refProps) {\n if (propName in layerRef) {\n normalizedLayer[propName] = layerRef[propName];\n }\n }\n }\n return normalizedLayer || layer;\n });\n // Do not mutate the style object provided by the user\n return { ...style, layers };\n}\n//# sourceMappingURL=style-utils.js.map"],"names":["refProps","normalizeStyle","style","layerIndex","layer","layers","normalizedLayer","layerRef","propName"],"mappings":"gFAAA,MAAMA,EAAW,CAAC,OAAQ,SAAU,eAAgB,UAAW,UAAW,SAAU,QAAQ,EAIrF,SAASC,EAAeC,EAAO,CAClC,GAAI,CAACA,EACD,OAAO,KAQX,GANI,OAAOA,GAAU,WAGjB,SAAUA,IACVA,EAAQA,EAAM,KAAA,GAEd,CAACA,EAAM,QACP,OAAOA,EAEX,MAAMC,EAAa,CAAA,EACnB,UAAWC,KAASF,EAAM,OACtBC,EAAWC,EAAM,EAAE,EAAIA,EAE3B,MAAMC,EAASH,EAAM,OAAO,IAAIE,GAAS,CACrC,IAAIE,EAAkB,KAClB,gBAAiBF,IACjBE,EAAkB,OAAO,OAAO,CAAA,EAAIF,CAAK,EAGzC,OAAOE,EAAgB,aAI3B,MAAMC,EAAWJ,EAAWC,EAAM,GAAG,EACrC,GAAIG,EAAU,CACVD,EAAkBA,GAAmB,OAAO,OAAO,CAAA,EAAIF,CAAK,EAE5D,OAAOE,EAAgB,IAEvB,UAAWE,KAAYR,EACfQ,KAAYD,IACZD,EAAgBE,CAAQ,EAAID,EAASC,CAAQ,EAGzD,CACA,OAAOF,GAAmBF,CAC9B,CAAC,EAED,MAAO,CAAE,GAAGF,EAAO,OAAAG,CAAA,CACvB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs239.js","sources":["../node_modules/underscore/modules/_shallowProperty.js"],"sourcesContent":["// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n"],"names":["shallowProperty","key","obj"],"mappings":"aACA,SAAwBA,EAAgBC,EAAK,CAC3C,OAAO,SAASC,EAAK,CACnB,OAA8BA,IAAID,CAAG,CACvC,CACF","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs209.js"),e=t("Object");module.exports=e;
1
+ "use strict";const n=require("./index.cjs36.js");function u(r){return function(t){var e=r(t);return typeof e=="number"&&e>=0&&e<=n.MAX_ARRAY_INDEX}}module.exports=u;
2
2
  //# sourceMappingURL=index.cjs240.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs240.js","sources":["../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["hasObjectTag","tagTester"],"mappings":"kDAEAA,EAAeC,EAAU,QAAQ","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs240.js","sources":["../node_modules/underscore/modules/_createSizePropertyCheck.js"],"sourcesContent":["import { MAX_ARRAY_INDEX } from './_setup.js';\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nexport default function createSizePropertyCheck(getSizeProperty) {\n return function(collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n }\n}\n"],"names":["createSizePropertyCheck","getSizeProperty","collection","sizeProperty","MAX_ARRAY_INDEX"],"mappings":"iDAGA,SAAwBA,EAAwBC,EAAiB,CAC/D,OAAO,SAASC,EAAY,CAC1B,IAAIC,EAAeF,EAAgBC,CAAU,EAC7C,OAAO,OAAOC,GAAgB,UAAYA,GAAgB,GAAKA,GAAgBC,EAAAA,eACjF,CACF","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const n=require("./index.cjs36.js");function u(r){return function(t){var e=r(t);return typeof e=="number"&&e>=0&&e<=n.MAX_ARRAY_INDEX}}module.exports=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs206.js");function d(n){return{longitude:n.center.lng,latitude:n.center.lat,zoom:n.zoom,pitch:n.pitch,bearing:n.bearing,padding:n.padding}}function g(n,t){const e=t.viewState||t,i={};if("longitude"in e&&"latitude"in e&&(e.longitude!==n.center.lng||e.latitude!==n.center.lat)){const a=n.center.constructor;i.center=new a(e.longitude,e.latitude)}return"zoom"in e&&e.zoom!==n.zoom&&(i.zoom=e.zoom),"bearing"in e&&e.bearing!==n.bearing&&(i.bearing=e.bearing),"pitch"in e&&e.pitch!==n.pitch&&(i.pitch=e.pitch),e.padding&&n.padding&&!o.deepEqual(e.padding,n.padding)&&(i.padding=e.padding),i}exports.applyViewStateToTransform=g;exports.transformToViewState=d;
2
2
  //# sourceMappingURL=index.cjs241.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs241.js","sources":["../node_modules/underscore/modules/_createSizePropertyCheck.js"],"sourcesContent":["import { MAX_ARRAY_INDEX } from './_setup.js';\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nexport default function createSizePropertyCheck(getSizeProperty) {\n return function(collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n }\n}\n"],"names":["createSizePropertyCheck","getSizeProperty","collection","sizeProperty","MAX_ARRAY_INDEX"],"mappings":"iDAGA,SAAwBA,EAAwBC,EAAiB,CAC/D,OAAO,SAASC,EAAY,CAC1B,IAAIC,EAAeF,EAAgBC,CAAU,EAC7C,OAAO,OAAOC,GAAgB,UAAYA,GAAgB,GAAKA,GAAgBC,EAAAA,eACjF,CACF","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs241.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/transform.js"],"sourcesContent":["import { deepEqual } from \"./deep-equal.js\";\n/**\n * Capture a transform's current state\n * @param transform\n * @returns descriptor of the view state\n */\nexport function transformToViewState(tr) {\n return {\n longitude: tr.center.lng,\n latitude: tr.center.lat,\n zoom: tr.zoom,\n pitch: tr.pitch,\n bearing: tr.bearing,\n padding: tr.padding\n };\n}\n/* eslint-disable complexity */\n/**\n * Applies requested view state to a transform\n * @returns an object containing detected changes\n */\nexport function applyViewStateToTransform(\n/** An object that describes Maplibre's camera state */\ntr, \n/** Props from Map component */\nprops) {\n const v = props.viewState || props;\n const changes = {};\n if ('longitude' in v &&\n 'latitude' in v &&\n (v.longitude !== tr.center.lng || v.latitude !== tr.center.lat)) {\n const LngLat = tr.center.constructor;\n // @ts-expect-error we should not import LngLat class from maplibre-gl because we don't know the source of mapLib\n changes.center = new LngLat(v.longitude, v.latitude);\n }\n if ('zoom' in v && v.zoom !== tr.zoom) {\n changes.zoom = v.zoom;\n }\n if ('bearing' in v && v.bearing !== tr.bearing) {\n changes.bearing = v.bearing;\n }\n if ('pitch' in v && v.pitch !== tr.pitch) {\n changes.pitch = v.pitch;\n }\n if (v.padding && tr.padding && !deepEqual(v.padding, tr.padding)) {\n changes.padding = v.padding;\n }\n return changes;\n}\n//# sourceMappingURL=transform.js.map"],"names":["transformToViewState","tr","applyViewStateToTransform","props","v","changes","LngLat","deepEqual"],"mappings":"qHAMO,SAASA,EAAqBC,EAAI,CACrC,MAAO,CACH,UAAWA,EAAG,OAAO,IACrB,SAAUA,EAAG,OAAO,IACpB,KAAMA,EAAG,KACT,MAAOA,EAAG,MACV,QAASA,EAAG,QACZ,QAASA,EAAG,OAAA,CAEpB,CAMO,SAASC,EAEhBD,EAEAE,EAAO,CACH,MAAMC,EAAID,EAAM,WAAaA,EACvBE,EAAU,CAAA,EAChB,GAAI,cAAeD,GACf,aAAcA,IACbA,EAAE,YAAcH,EAAG,OAAO,KAAOG,EAAE,WAAaH,EAAG,OAAO,KAAM,CACjE,MAAMK,EAASL,EAAG,OAAO,YAEzBI,EAAQ,OAAS,IAAIC,EAAOF,EAAE,UAAWA,EAAE,QAAQ,CACvD,CACA,MAAI,SAAUA,GAAKA,EAAE,OAASH,EAAG,OAC7BI,EAAQ,KAAOD,EAAE,MAEjB,YAAaA,GAAKA,EAAE,UAAYH,EAAG,UACnCI,EAAQ,QAAUD,EAAE,SAEpB,UAAWA,GAAKA,EAAE,QAAUH,EAAG,QAC/BI,EAAQ,MAAQD,EAAE,OAElBA,EAAE,SAAWH,EAAG,SAAW,CAACM,YAAUH,EAAE,QAASH,EAAG,OAAO,IAC3DI,EAAQ,QAAUD,EAAE,SAEjBC,CACX","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";function n(t){return function(r){return r?.[t]}}module.exports=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function c(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const f=e.layers.map(r=>{let n=null;"interactive"in r&&(n=Object.assign({},r),delete n.interactive);const o=t[r.ref];if(o){n=n||Object.assign({},r),delete n.ref;for(const i of a)i in o&&(n[i]=o[i])}return n||r});return{...e,layers:f}}exports.normalizeStyle=c;
2
2
  //# sourceMappingURL=index.cjs242.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs242.js","sources":["../node_modules/underscore/modules/_shallowProperty.js"],"sourcesContent":["// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n"],"names":["shallowProperty","key","obj"],"mappings":"aACA,SAAwBA,EAAgBC,EAAK,CAC3C,OAAO,SAASC,EAAK,CACnB,OAA8BA,IAAID,CAAG,CACvC,CACF","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs242.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/style-utils.js"],"sourcesContent":["const refProps = ['type', 'source', 'source-layer', 'minzoom', 'maxzoom', 'filter', 'layout'];\n// Prepare a map style object for diffing\n// If immutable - convert to plain object\n// Work around some issues in older styles that would fail Mapbox's diffing\nexport function normalizeStyle(style) {\n if (!style) {\n return null;\n }\n if (typeof style === 'string') {\n return style;\n }\n if ('toJS' in style) {\n style = style.toJS();\n }\n if (!style.layers) {\n return style;\n }\n const layerIndex = {};\n for (const layer of style.layers) {\n layerIndex[layer.id] = layer;\n }\n const layers = style.layers.map(layer => {\n let normalizedLayer = null;\n if ('interactive' in layer) {\n normalizedLayer = Object.assign({}, layer);\n // Breaks style diffing :(\n // @ts-ignore legacy field not typed\n delete normalizedLayer.interactive;\n }\n // Style diffing doesn't work with refs so expand them out manually before diffing.\n // @ts-ignore legacy field not typed\n const layerRef = layerIndex[layer.ref];\n if (layerRef) {\n normalizedLayer = normalizedLayer || Object.assign({}, layer);\n // @ts-ignore\n delete normalizedLayer.ref;\n // https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/deref.js\n for (const propName of refProps) {\n if (propName in layerRef) {\n normalizedLayer[propName] = layerRef[propName];\n }\n }\n }\n return normalizedLayer || layer;\n });\n // Do not mutate the style object provided by the user\n return { ...style, layers };\n}\n//# sourceMappingURL=style-utils.js.map"],"names":["refProps","normalizeStyle","style","layerIndex","layer","layers","normalizedLayer","layerRef","propName"],"mappings":"gFAAA,MAAMA,EAAW,CAAC,OAAQ,SAAU,eAAgB,UAAW,UAAW,SAAU,QAAQ,EAIrF,SAASC,EAAeC,EAAO,CAClC,GAAI,CAACA,EACD,OAAO,KAQX,GANI,OAAOA,GAAU,WAGjB,SAAUA,IACVA,EAAQA,EAAM,KAAA,GAEd,CAACA,EAAM,QACP,OAAOA,EAEX,MAAMC,EAAa,CAAA,EACnB,UAAWC,KAASF,EAAM,OACtBC,EAAWC,EAAM,EAAE,EAAIA,EAE3B,MAAMC,EAASH,EAAM,OAAO,IAAIE,GAAS,CACrC,IAAIE,EAAkB,KAClB,gBAAiBF,IACjBE,EAAkB,OAAO,OAAO,CAAA,EAAIF,CAAK,EAGzC,OAAOE,EAAgB,aAI3B,MAAMC,EAAWJ,EAAWC,EAAM,GAAG,EACrC,GAAIG,EAAU,CACVD,EAAkBA,GAAmB,OAAO,OAAO,CAAA,EAAIF,CAAK,EAE5D,OAAOE,EAAgB,IAEvB,UAAWE,KAAYR,EACfQ,KAAYD,IACZD,EAAgBE,CAAQ,EAAID,EAASC,CAAQ,EAGzD,CACA,OAAOF,GAAmBF,CAC9B,CAAC,EAED,MAAO,CAAE,GAAGF,EAAO,OAAAG,CAAA,CACvB","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index.cjs78.js"),u=require("./index.cjs75.js");function c(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const l=Object.getOwnPropertyDescriptor(e,r);l&&Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=u.__require();const s=a.getDefaultExportFromCjs(i),p=c({__proto__:null,default:s},[i]);exports.Li=p;exports.default=s;exports.maplibreGlExports=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index.cjs78.js"),u=require("./index.cjs80.js");function c(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const l=Object.getOwnPropertyDescriptor(e,r);l&&Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=u.__require();const s=a.getDefaultExportFromCjs(i),p=c({__proto__:null,default:s},[i]);exports.Li=p;exports.default=s;exports.maplibreGlExports=i;
2
2
  //# sourceMappingURL=index.cjs31.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs80.js");require("./index.cjs81.js");function c(t){return a.GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.6.6 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.6.6 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.6.6 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535z"},child:[]},{tag:"path",attr:{d:"m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.6.6 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0z"},child:[]}]})(t)}exports.BsStack=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs75.js");require("./index.cjs76.js");function c(t){return a.GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.6.6 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.6.6 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.6.6 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535z"},child:[]},{tag:"path",attr:{d:"m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.6.6 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0z"},child:[]}]})(t)}exports.BsStack=c;
2
2
  //# sourceMappingURL=index.cjs33.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs80.js");require("./index.cjs81.js");function r(e){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(e)}exports.IoCheckmarkOutline=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs75.js");require("./index.cjs76.js");function r(e){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(e)}exports.IoCheckmarkOutline=r;
2
2
  //# sourceMappingURL=index.cjs34.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs36.js"),e=require("./index.cjs240.js");var t=a.supportsDataView&&(!/\[native code\]/.test(String(DataView))||e(new DataView(new ArrayBuffer(8)))),i=typeof Map<"u"&&e(new Map);exports.hasDataViewBug=t;exports.isIE11=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs36.js"),e=require("./index.cjs238.js");var t=a.supportsDataView&&(!/\[native code\]/.test(String(DataView))||e(new DataView(new ArrayBuffer(8)))),i=typeof Map<"u"&&e(new Map);exports.hasDataViewBug=t;exports.isIE11=i;
2
2
  //# sourceMappingURL=index.cjs38.js.map