@performant-software/geospatial 3.1.0-beta.3 → 3.1.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 (127) hide show
  1. package/dist/index.cjs14.js +1 -1
  2. package/dist/index.cjs15.js +1 -1
  3. package/dist/index.cjs16.js +1 -1
  4. package/dist/index.cjs17.js +1 -1
  5. package/dist/index.cjs18.js +1 -1
  6. package/dist/index.cjs188.js +1 -1
  7. package/dist/index.cjs19.js +1 -1
  8. package/dist/index.cjs20.js +1 -1
  9. package/dist/index.cjs201.js +7 -1
  10. package/dist/index.cjs201.js.map +1 -1
  11. package/dist/index.cjs202.js +1 -1
  12. package/dist/index.cjs202.js.map +1 -1
  13. package/dist/index.cjs203.js +1 -1
  14. package/dist/index.cjs203.js.map +1 -1
  15. package/dist/index.cjs204.js +1 -1
  16. package/dist/index.cjs204.js.map +1 -1
  17. package/dist/index.cjs205.js +1 -1
  18. package/dist/index.cjs205.js.map +1 -1
  19. package/dist/index.cjs206.js +1 -1
  20. package/dist/index.cjs206.js.map +1 -1
  21. package/dist/index.cjs207.js +1 -1
  22. package/dist/index.cjs207.js.map +1 -1
  23. package/dist/index.cjs208.js +1 -1
  24. package/dist/index.cjs208.js.map +1 -1
  25. package/dist/index.cjs209.js +1 -7
  26. package/dist/index.cjs209.js.map +1 -1
  27. package/dist/index.cjs21.js +1 -1
  28. package/dist/index.cjs210.js +1 -1
  29. package/dist/index.cjs210.js.map +1 -1
  30. package/dist/index.cjs213.js +1 -1
  31. package/dist/index.cjs22.js +1 -1
  32. package/dist/index.cjs23.js +1 -1
  33. package/dist/index.cjs233.js +1 -1
  34. package/dist/index.cjs24.js +1 -1
  35. package/dist/index.cjs256.js +1 -1
  36. package/dist/index.cjs256.js.map +1 -1
  37. package/dist/index.cjs257.js +1 -1
  38. package/dist/index.cjs257.js.map +1 -1
  39. package/dist/index.cjs258.js +1 -1
  40. package/dist/index.cjs258.js.map +1 -1
  41. package/dist/index.cjs259.js +1 -1
  42. package/dist/index.cjs259.js.map +1 -1
  43. package/dist/index.cjs27.js +1 -1
  44. package/dist/index.cjs28.js +1 -1
  45. package/dist/index.cjs29.js +1 -1
  46. package/dist/index.cjs31.js +1 -1
  47. package/dist/index.cjs38.js +1 -1
  48. package/dist/index.cjs71.js +1 -743
  49. package/dist/index.cjs71.js.map +1 -1
  50. package/dist/index.cjs72.js +1 -1
  51. package/dist/index.cjs73.js +1 -1
  52. package/dist/index.cjs73.js.map +1 -1
  53. package/dist/index.cjs74.js +1 -1
  54. package/dist/index.cjs74.js.map +1 -1
  55. package/dist/index.cjs75.js +1 -9
  56. package/dist/index.cjs75.js.map +1 -1
  57. package/dist/index.cjs76.js +3 -11
  58. package/dist/index.cjs76.js.map +1 -1
  59. package/dist/index.cjs77.js +17 -1
  60. package/dist/index.cjs77.js.map +1 -1
  61. package/dist/index.cjs78.js +743 -1
  62. package/dist/index.cjs78.js.map +1 -1
  63. package/dist/index.es14.js +2 -2
  64. package/dist/index.es15.js +4 -4
  65. package/dist/index.es16.js +3 -3
  66. package/dist/index.es17.js +3 -3
  67. package/dist/index.es18.js +1 -1
  68. package/dist/index.es188.js +2 -2
  69. package/dist/index.es19.js +1 -1
  70. package/dist/index.es20.js +1 -1
  71. package/dist/index.es201.js +7505 -241
  72. package/dist/index.es201.js.map +1 -1
  73. package/dist/index.es202.js +2 -43
  74. package/dist/index.es202.js.map +1 -1
  75. package/dist/index.es203.js +243 -3
  76. package/dist/index.es203.js.map +1 -1
  77. package/dist/index.es204.js +40 -8
  78. package/dist/index.es204.js.map +1 -1
  79. package/dist/index.es205.js +3 -11
  80. package/dist/index.es205.js.map +1 -1
  81. package/dist/index.es206.js +9 -29
  82. package/dist/index.es206.js.map +1 -1
  83. package/dist/index.es207.js +10 -13
  84. package/dist/index.es207.js.map +1 -1
  85. package/dist/index.es208.js +30 -4
  86. package/dist/index.es208.js.map +1 -1
  87. package/dist/index.es209.js +13 -7506
  88. package/dist/index.es209.js.map +1 -1
  89. package/dist/index.es21.js +1 -1
  90. package/dist/index.es210.js +5 -2
  91. package/dist/index.es210.js.map +1 -1
  92. package/dist/index.es213.js +1 -1
  93. package/dist/index.es22.js +1 -1
  94. package/dist/index.es23.js +1 -1
  95. package/dist/index.es233.js +1 -1
  96. package/dist/index.es24.js +1 -1
  97. package/dist/index.es256.js +6 -19
  98. package/dist/index.es256.js.map +1 -1
  99. package/dist/index.es257.js +3 -23
  100. package/dist/index.es257.js.map +1 -1
  101. package/dist/index.es258.js +21 -3
  102. package/dist/index.es258.js.map +1 -1
  103. package/dist/index.es259.js +22 -7
  104. package/dist/index.es259.js.map +1 -1
  105. package/dist/index.es27.js +1 -1
  106. package/dist/index.es28.js +2 -2
  107. package/dist/index.es29.js +2 -2
  108. package/dist/index.es31.js +2 -2
  109. package/dist/index.es38.js +1 -1
  110. package/dist/index.es71.js +1954 -21313
  111. package/dist/index.es71.js.map +1 -1
  112. package/dist/index.es72.js +6 -2
  113. package/dist/index.es72.js.map +1 -1
  114. package/dist/index.es73.js +2 -8
  115. package/dist/index.es73.js.map +1 -1
  116. package/dist/index.es74.js +8 -2
  117. package/dist/index.es74.js.map +1 -1
  118. package/dist/index.es75.js +2 -26
  119. package/dist/index.es75.js.map +1 -1
  120. package/dist/index.es76.js +17 -580
  121. package/dist/index.es76.js.map +1 -1
  122. package/dist/index.es77.js +556 -1960
  123. package/dist/index.es77.js.map +1 -1
  124. package/dist/index.es78.js +21351 -5
  125. package/dist/index.es78.js.map +1 -1
  126. package/dist/index.es79.js +2 -2
  127. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),i=require("./index.cjs205.js"),l=require("./index.cjs25.js");function r(t){const e=l.useControl(({mapLib:n})=>new n.NavigationControl(t),{position:t.position});return o.useEffect(()=>{i.applyReactStyle(e._container,t.style)},[t.style]),null}const a=o.memo(r);exports.NavigationControl=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),i=require("./index.cjs207.js"),l=require("./index.cjs25.js");function r(t){const e=l.useControl(({mapLib:n})=>new n.NavigationControl(t),{position:t.position});return o.useEffect(()=>{i.applyReactStyle(e._container,t.style)},[t.style]),null}const a=o.memo(r);exports.NavigationControl=a;
2
2
  //# sourceMappingURL=index.cjs21.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
1
+ "use strict";function s(r,t){if(!r)throw new Error(t)}module.exports=s;
2
2
  //# sourceMappingURL=index.cjs210.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs210.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs210.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/assert.js"],"sourcesContent":["export default function assert(condition, message) {\n if (!condition) {\n throw new Error(message);\n }\n}\n//# sourceMappingURL=assert.js.map"],"names":["assert","condition","message"],"mappings":"aAAA,SAAwBA,EAAOC,EAAWC,EAAS,CAC/C,GAAI,CAACD,EACD,MAAM,IAAI,MAAMC,CAAO,CAE/B","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs259.js"),t=require("./index.cjs215.js"),r=e(t);module.exports=r;
1
+ "use strict";const e=require("./index.cjs256.js"),t=require("./index.cjs215.js"),r=e(t);module.exports=r;
2
2
  //# sourceMappingURL=index.cjs213.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const n=require("react"),l=require("./index.cjs205.js"),a=require("./index.cjs25.js");function r(t){const e=a.useControl(({mapLib:u})=>new u.ScaleControl(t),{position:t.position}),i=n.useRef(t),c=i.current;i.current=t;const{style:o}=t;return t.maxWidth!==void 0&&t.maxWidth!==c.maxWidth&&(e.options.maxWidth=t.maxWidth),t.unit!==void 0&&t.unit!==c.unit&&e.setUnit(t.unit),n.useEffect(()=>{l.applyReactStyle(e._container,o)},[o]),null}n.memo(r);
1
+ "use strict";const n=require("react"),l=require("./index.cjs207.js"),a=require("./index.cjs25.js");function r(t){const e=a.useControl(({mapLib:u})=>new u.ScaleControl(t),{position:t.position}),i=n.useRef(t),c=i.current;i.current=t;const{style:o}=t;return t.maxWidth!==void 0&&t.maxWidth!==c.maxWidth&&(e.options.maxWidth=t.maxWidth),t.unit!==void 0&&t.unit!==c.unit&&e.setUnit(t.unit),n.useEffect(()=>{l.applyReactStyle(e._container,o)},[o]),null}n.memo(r);
2
2
  //# sourceMappingURL=index.cjs22.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("react"),r=require("./index.cjs205.js"),l=require("./index.cjs25.js");function c(e){const n=l.useControl(({mapLib:o})=>new o.TerrainControl(e),{position:e.position});return t.useEffect(()=>{r.applyReactStyle(n._container,e.style)},[e.style]),null}t.memo(c);
1
+ "use strict";const t=require("react"),r=require("./index.cjs207.js"),l=require("./index.cjs25.js");function c(e){const n=l.useControl(({mapLib:o})=>new o.TerrainControl(e),{position:e.position});return t.useEffect(()=>{r.applyReactStyle(n._container,e.style)},[e.style]),null}t.memo(c);
2
2
  //# sourceMappingURL=index.cjs23.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs259.js"),r=require("./index.cjs214.js"),t=e(r);module.exports=t;
1
+ "use strict";const e=require("./index.cjs256.js"),r=require("./index.cjs214.js"),t=e(r);module.exports=t;
2
2
  //# sourceMappingURL=index.cjs233.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("react"),l=require("./index.cjs205.js"),c=require("./index.cjs25.js");function r(t){const o=c.useControl(({mapLib:n})=>new n.LogoControl(t),{position:t.position});return e.useEffect(()=>{l.applyReactStyle(o._container,t.style)},[t.style]),null}e.memo(r);
1
+ "use strict";const e=require("react"),l=require("./index.cjs207.js"),c=require("./index.cjs25.js");function r(t){const o=c.useControl(({mapLib:n})=>new n.LogoControl(t),{position:t.position});return e.useEffect(()=>{l.applyReactStyle(o._container,t.style)},[t.style]),null}e.memo(r);
2
2
  //# sourceMappingURL=index.cjs24.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 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.cjs256.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs256.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.cjs256.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";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";const t=require("./index.cjs211.js"),e=t("Object");module.exports=e;
2
2
  //# sourceMappingURL=index.cjs257.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs257.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.cjs257.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";const t=require("./index.cjs211.js"),e=t("Object");module.exports=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs208.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.cjs258.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs258.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.cjs258.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";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 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.cjs259.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs259.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.cjs259.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.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs73.js");var t=e.__require();exports.jsxRuntimeExports=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs74.js");var t=e.__require();exports.jsxRuntimeExports=t;
2
2
  //# sourceMappingURL=index.cjs27.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),d=require("./index.cjs15.js"),s=require("./index.cjs208.js"),f=require("./index.cjs206.js");function y(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const g=y(u);let S=0;function m(t,e,n){if(t.style&&t.style._loaded){const r={...n};return delete r.id,delete r.children,t.addSource(e,r),t.getSource(e)}return null}function b(t,e,n){s(e.id===n.id,"source id changed"),s(e.type===n.type,"source type changed");let r="",o=0;for(const c in e)c!=="children"&&c!=="id"&&!f.deepEqual(n[c],e[c])&&(r=c,o++);if(!o)return;const a=e.type;if(a==="geojson")t.setData(e.data);else if(a==="image")t.updateImage({url:e.url,coordinates:e.coordinates});else switch(r){case"coordinates":t.setCoordinates?.(e.coordinates);break;case"url":t.setUrl?.(e.url);break;case"tiles":t.setTiles?.(e.tiles);break;default:console.warn(`Unable to update <Source> prop: ${r}`)}}function h(t){const e=u.useContext(d.MapContext).map.getMap(),n=u.useRef(t),[,r]=u.useState(0),o=u.useMemo(()=>t.id||`jsx-source-${S++}`,[]);u.useEffect(()=>{if(e){const c=()=>setTimeout(()=>r(l=>l+1),0);return e.on("styledata",c),c(),()=>{if(e.off("styledata",c),e.style&&e.style._loaded&&e.getSource(o)){const l=e.getStyle()?.layers;if(l)for(const i of l)i.source===o&&e.removeLayer(i.id);e.removeSource(o)}}}},[e]);let a=e&&e.style&&e.getSource(o);return a?b(a,t,n.current):a=m(e,o,t),n.current=t,a&&g.Children.map(t.children,c=>c&&u.cloneElement(c,{source:o}))||null}exports.Source=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),d=require("./index.cjs15.js"),s=require("./index.cjs210.js"),f=require("./index.cjs208.js");function y(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const g=y(u);let S=0;function m(t,e,n){if(t.style&&t.style._loaded){const r={...n};return delete r.id,delete r.children,t.addSource(e,r),t.getSource(e)}return null}function b(t,e,n){s(e.id===n.id,"source id changed"),s(e.type===n.type,"source type changed");let r="",o=0;for(const c in e)c!=="children"&&c!=="id"&&!f.deepEqual(n[c],e[c])&&(r=c,o++);if(!o)return;const a=e.type;if(a==="geojson")t.setData(e.data);else if(a==="image")t.updateImage({url:e.url,coordinates:e.coordinates});else switch(r){case"coordinates":t.setCoordinates?.(e.coordinates);break;case"url":t.setUrl?.(e.url);break;case"tiles":t.setTiles?.(e.tiles);break;default:console.warn(`Unable to update <Source> prop: ${r}`)}}function h(t){const e=u.useContext(d.MapContext).map.getMap(),n=u.useRef(t),[,r]=u.useState(0),o=u.useMemo(()=>t.id||`jsx-source-${S++}`,[]);u.useEffect(()=>{if(e){const c=()=>setTimeout(()=>r(l=>l+1),0);return e.on("styledata",c),c(),()=>{if(e.off("styledata",c),e.style&&e.style._loaded&&e.getSource(o)){const l=e.getStyle()?.layers;if(l)for(const i of l)i.source===o&&e.removeLayer(i.id);e.removeSource(o)}}}},[e]);let a=e&&e.style&&e.getSource(o);return a?b(a,t,n.current):a=m(e,o,t),n.current=t,a&&g.Children.map(t.children,c=>c&&u.cloneElement(c,{source:o}))||null}exports.Source=h;
2
2
  //# sourceMappingURL=index.cjs28.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),g=require("./index.cjs15.js"),L=require("./index.cjs208.js"),l=require("./index.cjs206.js");function m(t,e,a,o){if(L(a.id===o.id,"layer id changed"),L(a.type===o.type,"layer type changed"),a.type==="custom"||o.type==="custom")return;const{layout:r={},paint:i={},filter:y,minzoom:f,maxzoom:s,beforeId:d}=a;if(d!==o.beforeId&&t.moveLayer(e,d),r!==o.layout){const c=o.layout||{};for(const n in r)l.deepEqual(r[n],c[n])||t.setLayoutProperty(e,n,r[n]);for(const n in c)r.hasOwnProperty(n)||t.setLayoutProperty(e,n,void 0)}if(i!==o.paint){const c=o.paint||{};for(const n in i)l.deepEqual(i[n],c[n])||t.setPaintProperty(e,n,i[n]);for(const n in c)i.hasOwnProperty(n)||t.setPaintProperty(e,n,void 0)}l.deepEqual(y,o.filter)||t.setFilter(e,y),(f!==o.minzoom||s!==o.maxzoom)&&t.setLayerZoomRange(e,f,s)}function q(t,e,a){if(t.style&&t.style._loaded&&(!("source"in a)||t.getSource(a.source))){const o={...a,id:e};delete o.beforeId,t.addLayer(o,a.beforeId)}}let b=0;function h(t){const e=u.useContext(g.MapContext).map.getMap(),a=u.useRef(t),[,o]=u.useState(0),r=u.useMemo(()=>t.id||`jsx-layer-${b++}`,[]);if(u.useEffect(()=>{if(e){const y=()=>o(f=>f+1);return e.on("styledata",y),y(),()=>{e.off("styledata",y),e.style&&e.style._loaded&&e.getLayer(r)&&e.removeLayer(r)}}},[e]),e&&e.style&&e.getLayer(r))try{m(e,r,t,a.current)}catch(y){console.warn(y)}else q(e,r,t);return a.current=t,null}exports.Layer=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),g=require("./index.cjs15.js"),L=require("./index.cjs210.js"),l=require("./index.cjs208.js");function m(t,e,a,o){if(L(a.id===o.id,"layer id changed"),L(a.type===o.type,"layer type changed"),a.type==="custom"||o.type==="custom")return;const{layout:r={},paint:i={},filter:y,minzoom:f,maxzoom:s,beforeId:d}=a;if(d!==o.beforeId&&t.moveLayer(e,d),r!==o.layout){const c=o.layout||{};for(const n in r)l.deepEqual(r[n],c[n])||t.setLayoutProperty(e,n,r[n]);for(const n in c)r.hasOwnProperty(n)||t.setLayoutProperty(e,n,void 0)}if(i!==o.paint){const c=o.paint||{};for(const n in i)l.deepEqual(i[n],c[n])||t.setPaintProperty(e,n,i[n]);for(const n in c)i.hasOwnProperty(n)||t.setPaintProperty(e,n,void 0)}l.deepEqual(y,o.filter)||t.setFilter(e,y),(f!==o.minzoom||s!==o.maxzoom)&&t.setLayerZoomRange(e,f,s)}function q(t,e,a){if(t.style&&t.style._loaded&&(!("source"in a)||t.getSource(a.source))){const o={...a,id:e};delete o.beforeId,t.addLayer(o,a.beforeId)}}let b=0;function h(t){const e=u.useContext(g.MapContext).map.getMap(),a=u.useRef(t),[,o]=u.useState(0),r=u.useMemo(()=>t.id||`jsx-layer-${b++}`,[]);if(u.useEffect(()=>{if(e){const y=()=>o(f=>f+1);return e.on("styledata",y),y(),()=>{e.off("styledata",y),e.style&&e.style._loaded&&e.getLayer(r)&&e.removeLayer(r)}}},[e]),e&&e.style&&e.getLayer(r))try{m(e,r,t,a.current)}catch(y){console.warn(y)}else q(e,r,t);return a.current=t,null}exports.Layer=h;
2
2
  //# sourceMappingURL=index.cjs29.js.map
@@ -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.cjs71.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.cjs72.js"),u=require("./index.cjs78.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.cjs36.js"),e=require("./index.cjs258.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.cjs257.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