@performant-software/geospatial 3.1.18-beta.7 → 3.1.18-beta.9

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 (158) hide show
  1. package/dist/index.cjs13.js +1 -1
  2. package/dist/index.cjs13.js.map +1 -1
  3. package/dist/index.cjs189.js +1 -1
  4. package/dist/index.cjs189.js.map +1 -1
  5. package/dist/index.cjs190.js +1 -1
  6. package/dist/index.cjs190.js.map +1 -1
  7. package/dist/index.cjs191.js +1 -1
  8. package/dist/index.cjs191.js.map +1 -1
  9. package/dist/index.cjs192.js +1 -1
  10. package/dist/index.cjs192.js.map +1 -1
  11. package/dist/index.cjs193.js +1 -1
  12. package/dist/index.cjs193.js.map +1 -1
  13. package/dist/index.cjs194.js +1 -1
  14. package/dist/index.cjs194.js.map +1 -1
  15. package/dist/index.cjs195.js +1 -1
  16. package/dist/index.cjs195.js.map +1 -1
  17. package/dist/index.cjs196.js +1 -1
  18. package/dist/index.cjs196.js.map +1 -1
  19. package/dist/index.cjs197.js +1 -1
  20. package/dist/index.cjs197.js.map +1 -1
  21. package/dist/index.cjs198.js +1 -1
  22. package/dist/index.cjs198.js.map +1 -1
  23. package/dist/index.cjs199.js +1 -1
  24. package/dist/index.cjs199.js.map +1 -1
  25. package/dist/index.cjs200.js +1 -1
  26. package/dist/index.cjs200.js.map +1 -1
  27. package/dist/index.cjs201.js +1 -1
  28. package/dist/index.cjs201.js.map +1 -1
  29. package/dist/index.cjs202.js +1 -1
  30. package/dist/index.cjs202.js.map +1 -1
  31. package/dist/index.cjs203.js +1 -1
  32. package/dist/index.cjs203.js.map +1 -1
  33. package/dist/index.cjs204.js +1 -1
  34. package/dist/index.cjs204.js.map +1 -1
  35. package/dist/index.cjs205.js +1 -1
  36. package/dist/index.cjs215.js +1 -1
  37. package/dist/index.cjs216.js +1 -1
  38. package/dist/index.cjs217.js +1 -1
  39. package/dist/index.cjs235.js +1 -1
  40. package/dist/index.cjs242.js +1 -1
  41. package/dist/index.cjs242.js.map +1 -1
  42. package/dist/index.cjs243.js +1 -1
  43. package/dist/index.cjs243.js.map +1 -1
  44. package/dist/index.cjs244.js +1 -1
  45. package/dist/index.cjs244.js.map +1 -1
  46. package/dist/index.cjs245.js +1 -1
  47. package/dist/index.cjs245.js.map +1 -1
  48. package/dist/index.cjs246.js +1 -1
  49. package/dist/index.cjs246.js.map +1 -1
  50. package/dist/index.cjs248.js +1 -1
  51. package/dist/index.cjs251.js +1 -1
  52. package/dist/index.cjs257.js +1 -1
  53. package/dist/index.cjs263.js +1 -1
  54. package/dist/index.cjs268.js +1 -1
  55. package/dist/index.cjs29.js +1 -1
  56. package/dist/index.cjs32.js +1 -1
  57. package/dist/index.cjs34.js +1 -1
  58. package/dist/index.cjs35.js +1 -1
  59. package/dist/index.cjs39.js +1 -1
  60. package/dist/index.cjs69.js +1 -1
  61. package/dist/index.cjs71.js +1 -1
  62. package/dist/index.cjs72.js +1 -1
  63. package/dist/index.cjs77.js +1 -743
  64. package/dist/index.cjs77.js.map +1 -1
  65. package/dist/index.cjs78.js +1 -1
  66. package/dist/index.cjs79.js +1 -1
  67. package/dist/index.cjs79.js.map +1 -1
  68. package/dist/index.cjs80.js +743 -1
  69. package/dist/index.cjs80.js.map +1 -1
  70. package/dist/index.cjs81.js +1 -1
  71. package/dist/index.cjs81.js.map +1 -1
  72. package/dist/index.cjs82.js +1 -1
  73. package/dist/index.cjs82.js.map +1 -1
  74. package/dist/index.cjs83.js +1 -1
  75. package/dist/index.cjs83.js.map +1 -1
  76. package/dist/index.cjs84.js +1 -1
  77. package/dist/index.cjs84.js.map +1 -1
  78. package/dist/index.es13.js +51 -41
  79. package/dist/index.es13.js.map +1 -1
  80. package/dist/index.es189.js +12 -146
  81. package/dist/index.es189.js.map +1 -1
  82. package/dist/index.es190.js +147 -6
  83. package/dist/index.es190.js.map +1 -1
  84. package/dist/index.es191.js +7 -5
  85. package/dist/index.es191.js.map +1 -1
  86. package/dist/index.es192.js +7 -3
  87. package/dist/index.es192.js.map +1 -1
  88. package/dist/index.es193.js +1 -1
  89. package/dist/index.es193.js.map +1 -1
  90. package/dist/index.es194.js +3 -38
  91. package/dist/index.es194.js.map +1 -1
  92. package/dist/index.es195.js +38 -3
  93. package/dist/index.es195.js.map +1 -1
  94. package/dist/index.es196.js +3 -25
  95. package/dist/index.es196.js.map +1 -1
  96. package/dist/index.es197.js +25 -2
  97. package/dist/index.es197.js.map +1 -1
  98. package/dist/index.es198.js +0 -1
  99. package/dist/index.es198.js.map +1 -1
  100. package/dist/index.es199.js +1 -0
  101. package/dist/index.es199.js.map +1 -1
  102. package/dist/index.es200.js +2 -33
  103. package/dist/index.es200.js.map +1 -1
  104. package/dist/index.es201.js +31 -13
  105. package/dist/index.es201.js.map +1 -1
  106. package/dist/index.es202.js +11 -12
  107. package/dist/index.es202.js.map +1 -1
  108. package/dist/index.es203.js +13 -8
  109. package/dist/index.es203.js.map +1 -1
  110. package/dist/index.es204.js +8 -13
  111. package/dist/index.es204.js.map +1 -1
  112. package/dist/index.es205.js +2 -2
  113. package/dist/index.es215.js +1 -1
  114. package/dist/index.es216.js +1 -1
  115. package/dist/index.es217.js +1 -1
  116. package/dist/index.es235.js +1 -1
  117. package/dist/index.es242.js +4 -19
  118. package/dist/index.es242.js.map +1 -1
  119. package/dist/index.es243.js +3 -23
  120. package/dist/index.es243.js.map +1 -1
  121. package/dist/index.es244.js +19 -6
  122. package/dist/index.es244.js.map +1 -1
  123. package/dist/index.es245.js +22 -5
  124. package/dist/index.es245.js.map +1 -1
  125. package/dist/index.es246.js +8 -3
  126. package/dist/index.es246.js.map +1 -1
  127. package/dist/index.es248.js +1 -1
  128. package/dist/index.es251.js +1 -1
  129. package/dist/index.es257.js +2 -2
  130. package/dist/index.es263.js +1 -1
  131. package/dist/index.es268.js +2 -2
  132. package/dist/index.es29.js +2 -2
  133. package/dist/index.es32.js +2 -2
  134. package/dist/index.es34.js +2 -2
  135. package/dist/index.es35.js +2 -2
  136. package/dist/index.es39.js +1 -1
  137. package/dist/index.es69.js +1 -1
  138. package/dist/index.es71.js +6 -6
  139. package/dist/index.es72.js +1 -1
  140. package/dist/index.es77.js +1954 -21313
  141. package/dist/index.es77.js.map +1 -1
  142. package/dist/index.es78.js +6 -2
  143. package/dist/index.es78.js.map +1 -1
  144. package/dist/index.es79.js +2 -106
  145. package/dist/index.es79.js.map +1 -1
  146. package/dist/index.es80.js +21352 -10
  147. package/dist/index.es80.js.map +1 -1
  148. package/dist/index.es81.js +2 -1993
  149. package/dist/index.es81.js.map +1 -1
  150. package/dist/index.es82.js +11 -5
  151. package/dist/index.es82.js.map +1 -1
  152. package/dist/index.es83.js +106 -2
  153. package/dist/index.es83.js.map +1 -1
  154. package/dist/index.es84.js +10 -12
  155. package/dist/index.es84.js.map +1 -1
  156. package/package.json +1 -1
  157. package/src/utils/Map.js +14 -9
  158. package/types/utils/Map.js.flow +14 -9
@@ -1,5 +1,5 @@
1
- import { transformToViewState as d, applyViewStateToTransform as p } from "./index.es242.js";
2
- import { normalizeStyle as l } from "./index.es243.js";
1
+ import { transformToViewState as d, applyViewStateToTransform as p } from "./index.es244.js";
2
+ import { normalizeStyle as l } from "./index.es245.js";
3
3
  import { deepEqual as i } from "./index.es210.js";
4
4
  const u = { version: 8, sources: {}, layers: [] }, h = {
5
5
  mousedown: "onMouseDown",
@@ -1,4 +1,4 @@
1
- import e from "./index.es244.js";
1
+ import e from "./index.es246.js";
2
2
  import t from "./index.es217.js";
3
3
  const f = e(t);
4
4
  export {
@@ -1,4 +1,4 @@
1
- import t from "./index.es245.js";
1
+ import t from "./index.es242.js";
2
2
  const o = t("length");
3
3
  export {
4
4
  o as default
@@ -1,4 +1,4 @@
1
- import t from "./index.es245.js";
1
+ import t from "./index.es242.js";
2
2
  const o = t("byteLength");
3
3
  export {
4
4
  o as default
@@ -1,4 +1,4 @@
1
- import e from "./index.es244.js";
1
+ import e from "./index.es246.js";
2
2
  import r from "./index.es216.js";
3
3
  const i = e(r);
4
4
  export {
@@ -1,24 +1,9 @@
1
- import { deepEqual as a } from "./index.es210.js";
2
- function g(i) {
3
- return {
4
- longitude: i.center.lng,
5
- latitude: i.center.lat,
6
- zoom: i.zoom,
7
- pitch: i.pitch,
8
- bearing: i.bearing,
9
- padding: i.padding
1
+ function t(r) {
2
+ return function(n) {
3
+ return n?.[r];
10
4
  };
11
5
  }
12
- function c(i, t) {
13
- const n = t.viewState || t, e = {};
14
- if ("longitude" in n && "latitude" in n && (n.longitude !== i.center.lng || n.latitude !== i.center.lat)) {
15
- const o = i.center.constructor;
16
- e.center = new o(n.longitude, n.latitude);
17
- }
18
- return "zoom" in n && n.zoom !== i.zoom && (e.zoom = n.zoom), "bearing" in n && n.bearing !== i.bearing && (e.bearing = n.bearing), "pitch" in n && n.pitch !== i.pitch && (e.pitch = n.pitch), n.padding && i.padding && !a(n.padding, i.padding) && (e.padding = n.padding), e;
19
- }
20
6
  export {
21
- c as applyViewStateToTransform,
22
- g as transformToViewState
7
+ t as default
23
8
  };
24
9
  //# sourceMappingURL=index.es242.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es242.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":";AAMO,SAASA,EAAqBC,GAAI;AACrC,SAAO;AAAA,IACH,WAAWA,EAAG,OAAO;AAAA,IACrB,UAAUA,EAAG,OAAO;AAAA,IACpB,MAAMA,EAAG;AAAA,IACT,OAAOA,EAAG;AAAA,IACV,SAASA,EAAG;AAAA,IACZ,SAASA,EAAG;AAAA,EAAA;AAEpB;AAMO,SAASC,EAEhBD,GAEAE,GAAO;AACH,QAAMC,IAAID,EAAM,aAAaA,GACvBE,IAAU,CAAA;AAChB,MAAI,eAAeD,KACf,cAAcA,MACbA,EAAE,cAAcH,EAAG,OAAO,OAAOG,EAAE,aAAaH,EAAG,OAAO,MAAM;AACjE,UAAMK,IAASL,EAAG,OAAO;AAEzB,IAAAI,EAAQ,SAAS,IAAIC,EAAOF,EAAE,WAAWA,EAAE,QAAQ;AAAA,EACvD;AACA,SAAI,UAAUA,KAAKA,EAAE,SAASH,EAAG,SAC7BI,EAAQ,OAAOD,EAAE,OAEjB,aAAaA,KAAKA,EAAE,YAAYH,EAAG,YACnCI,EAAQ,UAAUD,EAAE,UAEpB,WAAWA,KAAKA,EAAE,UAAUH,EAAG,UAC/BI,EAAQ,QAAQD,EAAE,QAElBA,EAAE,WAAWH,EAAG,WAAW,CAACM,EAAUH,EAAE,SAASH,EAAG,OAAO,MAC3DI,EAAQ,UAAUD,EAAE,UAEjBC;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es242.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,GAAK;AAC3C,SAAO,SAASC,GAAK;AACnB,WAA8BA,IAAID,CAAG;AAAA,EACvC;AACF;","x_google_ignoreList":[0]}
@@ -1,26 +1,6 @@
1
- const a = ["type", "source", "source-layer", "minzoom", "maxzoom", "filter", "layout"];
2
- function c(r) {
3
- if (!r)
4
- return null;
5
- if (typeof r == "string" || ("toJS" in r && (r = r.toJS()), !r.layers))
6
- return r;
7
- const t = {};
8
- for (const e of r.layers)
9
- t[e.id] = e;
10
- const f = r.layers.map((e) => {
11
- let n = null;
12
- "interactive" in e && (n = Object.assign({}, e), delete n.interactive);
13
- const o = t[e.ref];
14
- if (o) {
15
- n = n || Object.assign({}, e), delete n.ref;
16
- for (const i of a)
17
- i in o && (n[i] = o[i]);
18
- }
19
- return n || e;
20
- });
21
- return { ...r, layers: f };
22
- }
1
+ import t from "./index.es213.js";
2
+ const a = t("Object");
23
3
  export {
24
- c as normalizeStyle
4
+ a as default
25
5
  };
26
6
  //# sourceMappingURL=index.es243.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es243.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":"AAAA,MAAMA,IAAW,CAAC,QAAQ,UAAU,gBAAgB,WAAW,WAAW,UAAU,QAAQ;AAIrF,SAASC,EAAeC,GAAO;AAClC,MAAI,CAACA;AACD,WAAO;AAQX,MANI,OAAOA,KAAU,aAGjB,UAAUA,MACVA,IAAQA,EAAM,KAAA,IAEd,CAACA,EAAM;AACP,WAAOA;AAEX,QAAMC,IAAa,CAAA;AACnB,aAAWC,KAASF,EAAM;AACtB,IAAAC,EAAWC,EAAM,EAAE,IAAIA;AAE3B,QAAMC,IAASH,EAAM,OAAO,IAAI,CAAAE,MAAS;AACrC,QAAIE,IAAkB;AACtB,IAAI,iBAAiBF,MACjBE,IAAkB,OAAO,OAAO,CAAA,GAAIF,CAAK,GAGzC,OAAOE,EAAgB;AAI3B,UAAMC,IAAWJ,EAAWC,EAAM,GAAG;AACrC,QAAIG,GAAU;AACV,MAAAD,IAAkBA,KAAmB,OAAO,OAAO,CAAA,GAAIF,CAAK,GAE5D,OAAOE,EAAgB;AAEvB,iBAAWE,KAAYR;AACnB,QAAIQ,KAAYD,MACZD,EAAgBE,CAAQ,IAAID,EAASC,CAAQ;AAAA,IAGzD;AACA,WAAOF,KAAmBF;AAAA,EAC9B,CAAC;AAED,SAAO,EAAE,GAAGF,GAAO,QAAAG,EAAA;AACvB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es243.js","sources":["../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["hasObjectTag","tagTester"],"mappings":";AAEA,MAAAA,IAAeC,EAAU,QAAQ;","x_google_ignoreList":[0]}
@@ -1,11 +1,24 @@
1
- import { MAX_ARRAY_INDEX as o } from "./index.es37.js";
2
- function u(e) {
3
- return function(t) {
4
- var r = e(t);
5
- return typeof r == "number" && r >= 0 && r <= o;
1
+ import { deepEqual as a } from "./index.es210.js";
2
+ function g(i) {
3
+ return {
4
+ longitude: i.center.lng,
5
+ latitude: i.center.lat,
6
+ zoom: i.zoom,
7
+ pitch: i.pitch,
8
+ bearing: i.bearing,
9
+ padding: i.padding
6
10
  };
7
11
  }
12
+ function c(i, t) {
13
+ const n = t.viewState || t, e = {};
14
+ if ("longitude" in n && "latitude" in n && (n.longitude !== i.center.lng || n.latitude !== i.center.lat)) {
15
+ const o = i.center.constructor;
16
+ e.center = new o(n.longitude, n.latitude);
17
+ }
18
+ return "zoom" in n && n.zoom !== i.zoom && (e.zoom = n.zoom), "bearing" in n && n.bearing !== i.bearing && (e.bearing = n.bearing), "pitch" in n && n.pitch !== i.pitch && (e.pitch = n.pitch), n.padding && i.padding && !a(n.padding, i.padding) && (e.padding = n.padding), e;
19
+ }
8
20
  export {
9
- u as default
21
+ c as applyViewStateToTransform,
22
+ g as transformToViewState
10
23
  };
11
24
  //# sourceMappingURL=index.es244.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es244.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":";AAGA,SAAwBA,EAAwBC,GAAiB;AAC/D,SAAO,SAASC,GAAY;AAC1B,QAAIC,IAAeF,EAAgBC,CAAU;AAC7C,WAAO,OAAOC,KAAgB,YAAYA,KAAgB,KAAKA,KAAgBC;AAAA,EACjF;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es244.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":";AAMO,SAASA,EAAqBC,GAAI;AACrC,SAAO;AAAA,IACH,WAAWA,EAAG,OAAO;AAAA,IACrB,UAAUA,EAAG,OAAO;AAAA,IACpB,MAAMA,EAAG;AAAA,IACT,OAAOA,EAAG;AAAA,IACV,SAASA,EAAG;AAAA,IACZ,SAASA,EAAG;AAAA,EAAA;AAEpB;AAMO,SAASC,EAEhBD,GAEAE,GAAO;AACH,QAAMC,IAAID,EAAM,aAAaA,GACvBE,IAAU,CAAA;AAChB,MAAI,eAAeD,KACf,cAAcA,MACbA,EAAE,cAAcH,EAAG,OAAO,OAAOG,EAAE,aAAaH,EAAG,OAAO,MAAM;AACjE,UAAMK,IAASL,EAAG,OAAO;AAEzB,IAAAI,EAAQ,SAAS,IAAIC,EAAOF,EAAE,WAAWA,EAAE,QAAQ;AAAA,EACvD;AACA,SAAI,UAAUA,KAAKA,EAAE,SAASH,EAAG,SAC7BI,EAAQ,OAAOD,EAAE,OAEjB,aAAaA,KAAKA,EAAE,YAAYH,EAAG,YACnCI,EAAQ,UAAUD,EAAE,UAEpB,WAAWA,KAAKA,EAAE,UAAUH,EAAG,UAC/BI,EAAQ,QAAQD,EAAE,QAElBA,EAAE,WAAWH,EAAG,WAAW,CAACM,EAAUH,EAAE,SAASH,EAAG,OAAO,MAC3DI,EAAQ,UAAUD,EAAE,UAEjBC;AACX;","x_google_ignoreList":[0]}
@@ -1,9 +1,26 @@
1
- function t(r) {
2
- return function(n) {
3
- return n?.[r];
4
- };
1
+ const a = ["type", "source", "source-layer", "minzoom", "maxzoom", "filter", "layout"];
2
+ function c(r) {
3
+ if (!r)
4
+ return null;
5
+ if (typeof r == "string" || ("toJS" in r && (r = r.toJS()), !r.layers))
6
+ return r;
7
+ const t = {};
8
+ for (const e of r.layers)
9
+ t[e.id] = e;
10
+ const f = r.layers.map((e) => {
11
+ let n = null;
12
+ "interactive" in e && (n = Object.assign({}, e), delete n.interactive);
13
+ const o = t[e.ref];
14
+ if (o) {
15
+ n = n || Object.assign({}, e), delete n.ref;
16
+ for (const i of a)
17
+ i in o && (n[i] = o[i]);
18
+ }
19
+ return n || e;
20
+ });
21
+ return { ...r, layers: f };
5
22
  }
6
23
  export {
7
- t as default
24
+ c as normalizeStyle
8
25
  };
9
26
  //# sourceMappingURL=index.es245.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es245.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,GAAK;AAC3C,SAAO,SAASC,GAAK;AACnB,WAA8BA,IAAID,CAAG;AAAA,EACvC;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es245.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":"AAAA,MAAMA,IAAW,CAAC,QAAQ,UAAU,gBAAgB,WAAW,WAAW,UAAU,QAAQ;AAIrF,SAASC,EAAeC,GAAO;AAClC,MAAI,CAACA;AACD,WAAO;AAQX,MANI,OAAOA,KAAU,aAGjB,UAAUA,MACVA,IAAQA,EAAM,KAAA,IAEd,CAACA,EAAM;AACP,WAAOA;AAEX,QAAMC,IAAa,CAAA;AACnB,aAAWC,KAASF,EAAM;AACtB,IAAAC,EAAWC,EAAM,EAAE,IAAIA;AAE3B,QAAMC,IAASH,EAAM,OAAO,IAAI,CAAAE,MAAS;AACrC,QAAIE,IAAkB;AACtB,IAAI,iBAAiBF,MACjBE,IAAkB,OAAO,OAAO,CAAA,GAAIF,CAAK,GAGzC,OAAOE,EAAgB;AAI3B,UAAMC,IAAWJ,EAAWC,EAAM,GAAG;AACrC,QAAIG,GAAU;AACV,MAAAD,IAAkBA,KAAmB,OAAO,OAAO,CAAA,GAAIF,CAAK,GAE5D,OAAOE,EAAgB;AAEvB,iBAAWE,KAAYR;AACnB,QAAIQ,KAAYD,MACZD,EAAgBE,CAAQ,IAAID,EAASC,CAAQ;AAAA,IAGzD;AACA,WAAOF,KAAmBF;AAAA,EAC9B,CAAC;AAED,SAAO,EAAE,GAAGF,GAAO,QAAAG,EAAA;AACvB;","x_google_ignoreList":[0]}
@@ -1,6 +1,11 @@
1
- import t from "./index.es213.js";
2
- const a = t("Object");
1
+ import { MAX_ARRAY_INDEX as o } from "./index.es37.js";
2
+ function u(e) {
3
+ return function(t) {
4
+ var r = e(t);
5
+ return typeof r == "number" && r >= 0 && r <= o;
6
+ };
7
+ }
3
8
  export {
4
- a as default
9
+ u as default
5
10
  };
6
11
  //# sourceMappingURL=index.es246.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es246.js","sources":["../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["hasObjectTag","tagTester"],"mappings":";AAEA,MAAAA,IAAeC,EAAU,QAAQ;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es246.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":";AAGA,SAAwBA,EAAwBC,GAAiB;AAC/D,SAAO,SAASC,GAAY;AAC1B,QAAIC,IAAeF,EAAgBC,CAAU;AAC7C,WAAO,OAAOC,KAAgB,YAAYA,KAAgB,KAAKA,KAAgBC;AAAA,EACjF;AACF;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
1
  import { spherical as p, cartesian as x, cartesianNormalizeInPlace as z } from "./index.es249.js";
2
2
  import { tau as l, acos as I, epsilon as N, cos as v, sin as R } from "./index.es250.js";
3
- import "./index.es194.js";
3
+ import "./index.es195.js";
4
4
  function g(m, r, e, c, a, s) {
5
5
  if (e) {
6
6
  var u = v(r), o = R(r), n = c * e;
@@ -2,7 +2,7 @@ import { abs as q, epsilon as z } from "./index.es250.js";
2
2
  import X from "./index.es252.js";
3
3
  import Y from "./index.es253.js";
4
4
  import Z from "./index.es254.js";
5
- import "./index.es195.js";
5
+ import "./index.es196.js";
6
6
  import $ from "./index.es255.js";
7
7
  var S = 1e9, B = -S;
8
8
  function en(c, _, E, u) {
@@ -4,8 +4,8 @@ import { clipExtent as F } from "./index.es251.js";
4
4
  import H from "./index.es260.js";
5
5
  import T from "./index.es261.js";
6
6
  import { radians as n, degrees as i, sqrt as I } from "./index.es250.js";
7
- import { rotateRadians as J } from "./index.es194.js";
8
- import { transformer as K } from "./index.es200.js";
7
+ import { rotateRadians as J } from "./index.es195.js";
8
+ import { transformer as K } from "./index.es201.js";
9
9
  import { fitExtent as N, fitSize as O } from "./index.es262.js";
10
10
  import w from "./index.es263.js";
11
11
  var Q = K({
@@ -1,6 +1,6 @@
1
1
  import { cartesian as J } from "./index.es249.js";
2
2
  import { atan2 as K, asin as O, abs as B, sqrt as Q, cos as R, radians as U, epsilon as H } from "./index.es250.js";
3
- import { transformer as V } from "./index.es200.js";
3
+ import { transformer as V } from "./index.es201.js";
4
4
  var I = 16, W = R(30 * U);
5
5
  function h(e, t) {
6
6
  return +t ? Y(e, t) : X(e);
@@ -1,8 +1,8 @@
1
1
  import A from "./index.es252.js";
2
2
  import D from "./index.es254.js";
3
3
  import { halfPi as S, epsilon as R } from "./index.es250.js";
4
- import F from "./index.es196.js";
5
- import "./index.es195.js";
4
+ import F from "./index.es197.js";
5
+ import "./index.es196.js";
6
6
  import G from "./index.es255.js";
7
7
  function T(e, p, m, v) {
8
8
  return function(g, n) {
@@ -1,5 +1,5 @@
1
- import { getDefaultExportFromCjs as r } from "./index.es82.js";
2
- import { __require as o } from "./index.es81.js";
1
+ import { getDefaultExportFromCjs as r } from "./index.es78.js";
2
+ import { __require as o } from "./index.es77.js";
3
3
  var a = o();
4
4
  const p = /* @__PURE__ */ r(a);
5
5
  export {
@@ -1,5 +1,5 @@
1
- import { getDefaultExportFromCjs as f } from "./index.es82.js";
2
- import { __require as n } from "./index.es77.js";
1
+ import { getDefaultExportFromCjs as f } from "./index.es78.js";
2
+ import { __require as n } from "./index.es80.js";
3
3
  function s(t, i) {
4
4
  for (var o = 0; o < i.length; o++) {
5
5
  const e = i[o];
@@ -1,5 +1,5 @@
1
- import { GenIcon as a } from "./index.es79.js";
2
- import "./index.es80.js";
1
+ import { GenIcon as a } from "./index.es83.js";
2
+ import "./index.es84.js";
3
3
  function l(t) {
4
4
  return a({ 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);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { GenIcon as o } from "./index.es79.js";
2
- import "./index.es80.js";
1
+ import { GenIcon as o } from "./index.es83.js";
2
+ import "./index.es84.js";
3
3
  function e(t) {
4
4
  return o({ 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: [] }] })(t);
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { supportsDataView as e } from "./index.es37.js";
2
- import a from "./index.es246.js";
2
+ import a from "./index.es243.js";
3
3
  var i = e && (!/\[native code\]/.test(String(DataView)) || a(new DataView(new ArrayBuffer(8)))), o = typeof Map < "u" && a(/* @__PURE__ */ new Map());
4
4
  export {
5
5
  i as hasDataViewBug,
@@ -1,4 +1,4 @@
1
- import { coordEach as u } from "./index.es189.js";
1
+ import { coordEach as u } from "./index.es190.js";
2
2
  function e(n, f = {}) {
3
3
  if (n.bbox != null && f.recompute !== !0)
4
4
  return n.bbox;
@@ -1,7 +1,6 @@
1
- import { center as O } from "./index.es190.js";
2
- import q from "./index.es191.js";
3
- import { featureEach as v, geomEach as d } from "./index.es189.js";
4
- import "./index.es192.js";
1
+ import { center as O } from "./index.es191.js";
2
+ import q from "./index.es192.js";
3
+ import { featureEach as v, geomEach as d } from "./index.es190.js";
5
4
  import "./index.es193.js";
6
5
  import "./index.es194.js";
7
6
  import "./index.es195.js";
@@ -11,8 +10,9 @@ import "./index.es198.js";
11
10
  import "./index.es199.js";
12
11
  import "./index.es200.js";
13
12
  import "./index.es201.js";
14
- import A from "./index.es202.js";
15
- import "./index.es203.js";
13
+ import "./index.es202.js";
14
+ import A from "./index.es203.js";
15
+ import "./index.es204.js";
16
16
  import { featureCollection as c, radiansToLength as F, lengthToRadians as R, feature as g, earthRadius as B } from "./index.es67.js";
17
17
  var { BufferOp: J, GeoJSONReader: S, GeoJSONWriter: T } = q;
18
18
  function Z(r, e, t) {
@@ -1,4 +1,4 @@
1
- import { destination as a } from "./index.es84.js";
1
+ import { destination as a } from "./index.es82.js";
2
2
  import { polygon as u } from "./index.es67.js";
3
3
  function f(r, s, e = {}) {
4
4
  const p = e.steps || 64, i = e.properties ? e.properties : !Array.isArray(r) && r.type === "Feature" && r.properties ? r.properties : {}, t = [];