@performant-software/geospatial 2.2.21-beta.1 → 2.2.21-beta.11
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.
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs189.js.map +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs190.js.map +1 -1
- package/dist/index.cjs191.js +4 -1
- package/dist/index.cjs191.js.map +1 -1
- package/dist/index.cjs192.js +1 -4
- package/dist/index.cjs192.js.map +1 -1
- package/dist/index.cjs193.js +1 -1
- package/dist/index.cjs193.js.map +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs194.js.map +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs195.js.map +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs196.js.map +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs197.js.map +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs198.js.map +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs199.js.map +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs200.js.map +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs201.js.map +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs202.js.map +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs203.js.map +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs204.js.map +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs227.js +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs235.js.map +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs236.js.map +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs66.js.map +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs67.js.map +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs68.js.map +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs70.js.map +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs72.js.map +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.es14.js +1 -1
- package/dist/index.es15.js +5 -5
- package/dist/index.es16.js +1 -1
- package/dist/index.es189.js +8 -2
- package/dist/index.es189.js.map +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es190.js +147 -7
- package/dist/index.es190.js.map +1 -1
- package/dist/index.es191.js +12188 -139
- package/dist/index.es191.js.map +1 -1
- package/dist/index.es192.js +3 -12199
- package/dist/index.es192.js.map +1 -1
- package/dist/index.es193.js +1 -1
- package/dist/index.es193.js.map +1 -1
- package/dist/index.es194.js +38 -3
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js +3 -38
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es196.js +25 -3
- package/dist/index.es196.js.map +1 -1
- package/dist/index.es197.js +2 -25
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +1 -0
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +0 -1
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es200.js +34 -2
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es201.js +13 -32
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +12 -11
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +8 -13
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +2 -9
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es207.js +1 -1
- package/dist/index.es208.js +1 -1
- package/dist/index.es209.js +1 -1
- package/dist/index.es227.js +1 -1
- package/dist/index.es235.js +4 -6
- package/dist/index.es235.js.map +1 -1
- package/dist/index.es236.js +6 -4
- package/dist/index.es236.js.map +1 -1
- package/dist/index.es238.js +1 -1
- package/dist/index.es241.js +1 -1
- package/dist/index.es247.js +2 -2
- package/dist/index.es253.js +1 -1
- package/dist/index.es258.js +2 -2
- package/dist/index.es51.js +5 -5
- package/dist/index.es55.js +1 -1
- package/dist/index.es57.js +6 -6
- package/dist/index.es59.js +2 -2
- package/dist/index.es61.js +1 -1
- package/dist/index.es62.js +1 -1
- package/dist/index.es65.js +2 -2
- package/dist/index.es66.js +55 -2
- package/dist/index.es66.js.map +1 -1
- package/dist/index.es67.js +48 -4
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +37 -55
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +11 -47
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es70.js +14 -38
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +29 -11
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +10 -10
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +13 -29
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +10 -12
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +4 -14
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +2 -11
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +1 -1
- package/dist/index.es78.js +1 -1
- package/dist/index.es79.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs68.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs68.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/
|
|
1
|
+
{"version":3,"file":"index.cjs68.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/popup.js"],"sourcesContent":["import { createPortal } from 'react-dom';\nimport { useImperativeHandle, useEffect, useMemo, useRef, useContext, forwardRef, memo } from 'react';\nimport { applyReactStyle } from '../utils/apply-react-style';\nimport { MapContext } from './map';\nimport { deepEqual } from '../utils/deep-equal';\n// Adapted from https://github.com/mapbox/mapbox-gl-js/blob/v1.13.0/src/ui/popup.js\nfunction getClassList(className) {\n return new Set(className ? className.trim().split(/\\s+/) : []);\n}\n/* eslint-disable complexity,max-statements */\nfunction Popup(props, ref) {\n const { map, mapLib } = useContext(MapContext);\n const container = useMemo(() => {\n return document.createElement('div');\n }, []);\n const thisRef = useRef({ props });\n thisRef.current.props = props;\n const popup = useMemo(() => {\n const options = { ...props };\n const pp = new mapLib.Popup(options);\n pp.setLngLat([props.longitude, props.latitude]);\n pp.once('open', e => {\n var _a, _b;\n (_b = (_a = thisRef.current.props).onOpen) === null || _b === void 0 ? void 0 : _b.call(_a, e);\n });\n return pp;\n }, []);\n useEffect(() => {\n const onClose = e => {\n var _a, _b;\n (_b = (_a = thisRef.current.props).onClose) === null || _b === void 0 ? void 0 : _b.call(_a, e);\n };\n popup.on('close', onClose);\n popup.setDOMContent(container).addTo(map.getMap());\n return () => {\n // https://github.com/visgl/react-map-gl/issues/1825\n // onClose should not be fired if the popup is removed by unmounting\n // When using React strict mode, the component is mounted twice.\n // Firing the onClose callback here would be a false signal to remove the component.\n popup.off('close', onClose);\n if (popup.isOpen()) {\n popup.remove();\n }\n };\n }, []);\n useEffect(() => {\n applyReactStyle(popup.getElement(), props.style);\n }, [props.style]);\n useImperativeHandle(ref, () => popup, []);\n if (popup.isOpen()) {\n if (popup.getLngLat().lng !== props.longitude || popup.getLngLat().lat !== props.latitude) {\n popup.setLngLat([props.longitude, props.latitude]);\n }\n if (props.offset && !deepEqual(popup.options.offset, props.offset)) {\n popup.setOffset(props.offset);\n }\n if (popup.options.anchor !== props.anchor || popup.options.maxWidth !== props.maxWidth) {\n popup.options.anchor = props.anchor;\n popup.setMaxWidth(props.maxWidth);\n }\n if (popup.options.className !== props.className) {\n const prevClassList = getClassList(popup.options.className);\n const nextClassList = getClassList(props.className);\n for (const c of prevClassList) {\n if (!nextClassList.has(c)) {\n popup.removeClassName(c);\n }\n }\n for (const c of nextClassList) {\n if (!prevClassList.has(c)) {\n popup.addClassName(c);\n }\n }\n popup.options.className = props.className;\n }\n }\n return createPortal(props.children, container);\n}\nexport default memo(forwardRef(Popup));\n//# sourceMappingURL=popup.js.map"],"names":["getClassList","className","Popup","props","ref","map","mapLib","useContext","MapContext","container","useMemo","thisRef","useRef","popup","options","pp","e","_a","_b","useEffect","onClose","applyReactStyle","useImperativeHandle","deepEqual","prevClassList","nextClassList","c","createPortal","memo","forwardRef"],"mappings":"yJAMA,SAASA,EAAaC,EAAW,CACtB,OAAA,IAAI,IAAIA,EAAYA,EAAU,OAAO,MAAM,KAAK,EAAI,CAAA,CAAE,CACjE,CAEA,SAASC,EAAMC,EAAOC,EAAK,CACvB,KAAM,CAAEC,IAAAA,EAAK,OAAAC,CAAO,EAAIC,aAAWC,EAAU,UAAA,EACvCC,EAAYC,EAAAA,QAAQ,IACf,SAAS,cAAc,KAAK,EACpC,CAAE,CAAA,EACCC,EAAUC,EAAAA,OAAO,CAAE,MAAAT,CAAO,CAAA,EAChCQ,EAAQ,QAAQ,MAAQR,EAClB,MAAAU,EAAQH,EAAAA,QAAQ,IAAM,CAClB,MAAAI,EAAU,CAAE,GAAGX,GACfY,EAAK,IAAIT,EAAO,MAAMQ,CAAO,EACnC,OAAAC,EAAG,UAAU,CAACZ,EAAM,UAAWA,EAAM,QAAQ,CAAC,EAC3CY,EAAA,KAAK,OAAaC,GAAA,CACjB,IAAIC,EAAIC,GACPA,GAAMD,EAAKN,EAAQ,QAAQ,OAAO,UAAY,MAAQO,IAAO,QAAkBA,EAAG,KAAKD,EAAID,CAAC,CAAA,CAChG,EACMD,CACX,EAAG,CAAE,CAAA,EAuBD,GAtBJI,EAAAA,UAAU,IAAM,CACZ,MAAMC,EAAeJ,GAAA,CACjB,IAAIC,EAAIC,GACPA,GAAMD,EAAKN,EAAQ,QAAQ,OAAO,WAAa,MAAQO,IAAO,QAAkBA,EAAG,KAAKD,EAAID,CAAC,CAAA,EAE5F,OAAAH,EAAA,GAAG,QAASO,CAAO,EACzBP,EAAM,cAAcJ,CAAS,EAAE,MAAMJ,EAAI,QAAQ,EAC1C,IAAM,CAKHQ,EAAA,IAAI,QAASO,CAAO,EACtBP,EAAM,UACNA,EAAM,OAAO,CACjB,CAER,EAAG,CAAE,CAAA,EACLM,EAAAA,UAAU,IAAM,CACZE,EAAAA,gBAAgBR,EAAM,WAAc,EAAAV,EAAM,KAAK,CAAA,EAChD,CAACA,EAAM,KAAK,CAAC,EAChBmB,EAAAA,oBAAoBlB,EAAK,IAAMS,EAAO,CAAE,CAAA,EACpCA,EAAM,YACFA,EAAM,YAAY,MAAQV,EAAM,WAAaU,EAAM,UAAU,EAAE,MAAQV,EAAM,WAC7EU,EAAM,UAAU,CAACV,EAAM,UAAWA,EAAM,QAAQ,CAAC,EAEjDA,EAAM,QAAU,CAACoB,YAAUV,EAAM,QAAQ,OAAQV,EAAM,MAAM,GACvDU,EAAA,UAAUV,EAAM,MAAM,GAE5BU,EAAM,QAAQ,SAAWV,EAAM,QAAUU,EAAM,QAAQ,WAAaV,EAAM,YACpEU,EAAA,QAAQ,OAASV,EAAM,OACvBU,EAAA,YAAYV,EAAM,QAAQ,GAEhCU,EAAM,QAAQ,YAAcV,EAAM,WAAW,CAC7C,MAAMqB,EAAgBxB,EAAaa,EAAM,QAAQ,SAAS,EACpDY,EAAgBzB,EAAaG,EAAM,SAAS,EAClD,UAAWuB,KAAKF,EACPC,EAAc,IAAIC,CAAC,GACpBb,EAAM,gBAAgBa,CAAC,EAG/B,UAAWA,KAAKD,EACPD,EAAc,IAAIE,CAAC,GACpBb,EAAM,aAAaa,CAAC,EAGtBb,EAAA,QAAQ,UAAYV,EAAM,SACpC,CAEG,OAAAwB,eAAaxB,EAAM,SAAUM,CAAS,CACjD,CACemB,EAAAA,KAAKC,EAAAA,WAAW3B,CAAK,CAAC","x_google_ignoreList":[0]}
|
package/dist/index.cjs69.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("react"),i=require("./index.cjs186.js"),r=require("./index.cjs16.js");function c(t){const n=r(({mapLib:o})=>new o.AttributionControl(t),{position:t.position});return e.useEffect(()=>{i.applyReactStyle(n._container,t.style)},[t.style]),null}e.memo(c);
|
|
2
2
|
//# sourceMappingURL=index.cjs69.js.map
|
package/dist/index.cjs69.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs69.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/
|
|
1
|
+
{"version":3,"file":"index.cjs69.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/attribution-control.js"],"sourcesContent":["import { useEffect, memo } from 'react';\nimport { applyReactStyle } from '../utils/apply-react-style';\nimport useControl from './use-control';\nfunction AttributionControl(props) {\n const ctrl = useControl(({ mapLib }) => new mapLib.AttributionControl(props), {\n position: props.position\n });\n useEffect(() => {\n applyReactStyle(ctrl._container, props.style);\n }, [props.style]);\n return null;\n}\nexport default memo(AttributionControl);\n//# sourceMappingURL=attribution-control.js.map"],"names":["AttributionControl","props","ctrl","useControl","mapLib","useEffect","applyReactStyle","memo"],"mappings":"mGAGA,SAASA,EAAmBC,EAAO,CACzB,MAAAC,EAAOC,EAAW,CAAC,CAAE,OAAAC,KAAa,IAAIA,EAAO,mBAAmBH,CAAK,EAAG,CAC1E,SAAUA,EAAM,QAAA,CACnB,EACDI,OAAAA,EAAAA,UAAU,IAAM,CACIC,EAAAA,gBAAAJ,EAAK,WAAYD,EAAM,KAAK,CAAA,EAC7C,CAACA,EAAM,KAAK,CAAC,EACT,IACX,CACeM,OAAKP,CAAkB","x_google_ignoreList":[0]}
|
package/dist/index.cjs70.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("react"),l=require("./index.cjs186.js"),c=require("./index.cjs16.js");function r(e){const n=c(({mapLib:o})=>new o.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return t.useEffect(()=>{l.applyReactStyle(n._controlContainer,e.style)},[e.style]),null}const i=t.memo(r);module.exports=i;
|
|
2
2
|
//# sourceMappingURL=index.cjs70.js.map
|
package/dist/index.cjs70.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs70.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/
|
|
1
|
+
{"version":3,"file":"index.cjs70.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/fullscreen-control.js"],"sourcesContent":["import { useEffect, memo } from 'react';\nimport { applyReactStyle } from '../utils/apply-react-style';\nimport useControl from './use-control';\nfunction FullscreenControl(props) {\n const ctrl = useControl(({ mapLib }) => new mapLib.FullscreenControl({\n container: props.containerId && document.getElementById(props.containerId)\n }), { position: props.position });\n useEffect(() => {\n applyReactStyle(ctrl._controlContainer, props.style);\n }, [props.style]);\n return null;\n}\nexport default memo(FullscreenControl);\n//# sourceMappingURL=fullscreen-control.js.map"],"names":["FullscreenControl","props","ctrl","useControl","mapLib","useEffect","applyReactStyle","memo"],"mappings":"mGAGA,SAASA,EAAkBC,EAAO,CACxB,MAAAC,EAAOC,EAAW,CAAC,CAAE,OAAAC,KAAa,IAAIA,EAAO,kBAAkB,CACjE,UAAWH,EAAM,aAAe,SAAS,eAAeA,EAAM,WAAW,CAC5E,CAAA,EAAG,CAAE,SAAUA,EAAM,QAAU,CAAA,EAChCI,OAAAA,EAAAA,UAAU,IAAM,CACIC,EAAAA,gBAAAJ,EAAK,kBAAmBD,EAAM,KAAK,CAAA,EACpD,CAACA,EAAM,KAAK,CAAC,EACT,IACX,CACA,MAAeM,EAAAA,EAAAA,KAAKP,CAAiB","x_google_ignoreList":[0]}
|
package/dist/index.cjs71.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const c=require("react"),d=require("./index.cjs186.js"),v=require("./index.cjs16.js");function _(n,u){const a=c.useRef({props:n}),l=v(({mapLib:s})=>{const r=new s.GeolocateControl(n),i=r._setupUI;return r._setupUI=t=>{r._container.hasChildNodes()||i(t)},r.on("geolocate",t=>{var e,o;(o=(e=a.current.props).onGeolocate)===null||o===void 0||o.call(e,t)}),r.on("error",t=>{var e,o;(o=(e=a.current.props).onError)===null||o===void 0||o.call(e,t)}),r.on("outofmaxbounds",t=>{var e,o;(o=(e=a.current.props).onOutOfMaxBounds)===null||o===void 0||o.call(e,t)}),r.on("trackuserlocationstart",t=>{var e,o;(o=(e=a.current.props).onTrackUserLocationStart)===null||o===void 0||o.call(e,t)}),r.on("trackuserlocationend",t=>{var e,o;(o=(e=a.current.props).onTrackUserLocationEnd)===null||o===void 0||o.call(e,t)}),r},{position:n.position});return a.current.props=n,c.useImperativeHandle(u,()=>l,[]),c.useEffect(()=>{d.applyReactStyle(l._container,n.style)},[n.style]),null}c.memo(c.forwardRef(_));
|
|
2
2
|
//# sourceMappingURL=index.cjs71.js.map
|
package/dist/index.cjs71.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs71.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/
|
|
1
|
+
{"version":3,"file":"index.cjs71.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/geolocate-control.js"],"sourcesContent":["import { useImperativeHandle, useRef, useEffect, forwardRef, memo } from 'react';\nimport { applyReactStyle } from '../utils/apply-react-style';\nimport useControl from './use-control';\nfunction GeolocateControl(props, ref) {\n const thisRef = useRef({ props });\n const ctrl = useControl(({ mapLib }) => {\n const gc = new mapLib.GeolocateControl(props);\n // Hack: fix GeolocateControl reuse\n // When using React strict mode, the component is mounted twice.\n // GeolocateControl's UI creation is asynchronous. Removing and adding it back causes the UI to be initialized twice.\n // @ts-expect-error private method\n const setupUI = gc._setupUI;\n // @ts-expect-error private method\n gc._setupUI = args => {\n if (!gc._container.hasChildNodes()) {\n setupUI(args);\n }\n };\n gc.on('geolocate', e => {\n var _a, _b;\n (_b = (_a = thisRef.current.props).onGeolocate) === null || _b === void 0 ? void 0 : _b.call(_a, e);\n });\n gc.on('error', e => {\n var _a, _b;\n (_b = (_a = thisRef.current.props).onError) === null || _b === void 0 ? void 0 : _b.call(_a, e);\n });\n gc.on('outofmaxbounds', e => {\n var _a, _b;\n (_b = (_a = thisRef.current.props).onOutOfMaxBounds) === null || _b === void 0 ? void 0 : _b.call(_a, e);\n });\n gc.on('trackuserlocationstart', e => {\n var _a, _b;\n (_b = (_a = thisRef.current.props).onTrackUserLocationStart) === null || _b === void 0 ? void 0 : _b.call(_a, e);\n });\n gc.on('trackuserlocationend', e => {\n var _a, _b;\n (_b = (_a = thisRef.current.props).onTrackUserLocationEnd) === null || _b === void 0 ? void 0 : _b.call(_a, e);\n });\n return gc;\n }, { position: props.position });\n thisRef.current.props = props;\n useImperativeHandle(ref, () => ctrl, []);\n useEffect(() => {\n applyReactStyle(ctrl._container, props.style);\n }, [props.style]);\n return null;\n}\nexport default memo(forwardRef(GeolocateControl));\n//# sourceMappingURL=geolocate-control.js.map"],"names":["GeolocateControl","props","ref","thisRef","useRef","ctrl","useControl","mapLib","gc","setupUI","args","e","_a","_b","useImperativeHandle","useEffect","applyReactStyle","memo","forwardRef"],"mappings":"mGAGA,SAASA,EAAiBC,EAAOC,EAAK,CAClC,MAAMC,EAAUC,EAAAA,OAAO,CAAE,MAAAH,CAAO,CAAA,EAC1BI,EAAOC,EAAW,CAAC,CAAE,OAAAC,KAAa,CACpC,MAAMC,EAAK,IAAID,EAAO,iBAAiBN,CAAK,EAKtCQ,EAAUD,EAAG,SAEnB,OAAAA,EAAG,SAAmBE,GAAA,CACbF,EAAG,WAAW,iBACfC,EAAQC,CAAI,CAChB,EAEDF,EAAA,GAAG,YAAkBG,GAAA,CACpB,IAAIC,EAAIC,GACPA,GAAMD,EAAKT,EAAQ,QAAQ,OAAO,eAAiB,MAAQU,IAAO,QAAkBA,EAAG,KAAKD,EAAID,CAAC,CAAA,CACrG,EACEH,EAAA,GAAG,QAAcG,GAAA,CAChB,IAAIC,EAAIC,GACPA,GAAMD,EAAKT,EAAQ,QAAQ,OAAO,WAAa,MAAQU,IAAO,QAAkBA,EAAG,KAAKD,EAAID,CAAC,CAAA,CACjG,EACEH,EAAA,GAAG,iBAAuBG,GAAA,CACzB,IAAIC,EAAIC,GACPA,GAAMD,EAAKT,EAAQ,QAAQ,OAAO,oBAAsB,MAAQU,IAAO,QAAkBA,EAAG,KAAKD,EAAID,CAAC,CAAA,CAC1G,EACEH,EAAA,GAAG,yBAA+BG,GAAA,CACjC,IAAIC,EAAIC,GACPA,GAAMD,EAAKT,EAAQ,QAAQ,OAAO,4BAA8B,MAAQU,IAAO,QAAkBA,EAAG,KAAKD,EAAID,CAAC,CAAA,CAClH,EACEH,EAAA,GAAG,uBAA6BG,GAAA,CAC/B,IAAIC,EAAIC,GACPA,GAAMD,EAAKT,EAAQ,QAAQ,OAAO,0BAA4B,MAAQU,IAAO,QAAkBA,EAAG,KAAKD,EAAID,CAAC,CAAA,CAChH,EACMH,CACR,EAAA,CAAE,SAAUP,EAAM,QAAU,CAAA,EAC/B,OAAAE,EAAQ,QAAQ,MAAQF,EACxBa,EAAAA,oBAAoBZ,EAAK,IAAMG,EAAM,CAAE,CAAA,EACvCU,EAAAA,UAAU,IAAM,CACIC,EAAAA,gBAAAX,EAAK,WAAYJ,EAAM,KAAK,CAAA,EAC7C,CAACA,EAAM,KAAK,CAAC,EACT,IACX,CACegB,EAAAA,KAAKC,EAAAA,WAAWlB,CAAgB,CAAC","x_google_ignoreList":[0]}
|
package/dist/index.cjs72.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("react"),i=require("./index.cjs186.js"),c=require("./index.cjs16.js");function l(t){const n=c(({mapLib:o})=>new o.NavigationControl(t),{position:t.position});return e.useEffect(()=>{i.applyReactStyle(n._container,t.style)},[t.style]),null}const r=e.memo(l);module.exports=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs72.js.map
|
package/dist/index.cjs72.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs72.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/
|
|
1
|
+
{"version":3,"file":"index.cjs72.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/navigation-control.js"],"sourcesContent":["import { useEffect, memo } from 'react';\nimport { applyReactStyle } from '../utils/apply-react-style';\nimport useControl from './use-control';\nfunction NavigationControl(props) {\n const ctrl = useControl(({ mapLib }) => new mapLib.NavigationControl(props), {\n position: props.position\n });\n useEffect(() => {\n applyReactStyle(ctrl._container, props.style);\n }, [props.style]);\n return null;\n}\nexport default memo(NavigationControl);\n//# sourceMappingURL=navigation-control.js.map"],"names":["NavigationControl","props","ctrl","useControl","mapLib","useEffect","applyReactStyle","memo"],"mappings":"mGAGA,SAASA,EAAkBC,EAAO,CACxB,MAAAC,EAAOC,EAAW,CAAC,CAAE,OAAAC,KAAa,IAAIA,EAAO,kBAAkBH,CAAK,EAAG,CACzE,SAAUA,EAAM,QAAA,CACnB,EACDI,OAAAA,EAAAA,UAAU,IAAM,CACIC,EAAAA,gBAAAJ,EAAK,WAAYD,EAAM,KAAK,CAAA,EAC7C,CAACA,EAAM,KAAK,CAAC,EACT,IACX,CACA,MAAeM,EAAAA,EAAAA,KAAKP,CAAiB","x_google_ignoreList":[0]}
|
package/dist/index.cjs73.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const n=require("react"),a=require("./index.cjs186.js"),l=require("./index.cjs16.js");function r(t){const e=l(({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(()=>{a.applyReactStyle(e._container,o)},[o]),null}n.memo(r);
|
|
2
2
|
//# sourceMappingURL=index.cjs73.js.map
|
package/dist/index.cjs73.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs73.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/
|
|
1
|
+
{"version":3,"file":"index.cjs73.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/scale-control.js"],"sourcesContent":["import { useEffect, useRef, memo } from 'react';\nimport { applyReactStyle } from '../utils/apply-react-style';\nimport useControl from './use-control';\nfunction ScaleControl(props) {\n const ctrl = useControl(({ mapLib }) => new mapLib.ScaleControl(props), {\n position: props.position\n });\n const propsRef = useRef(props);\n const prevProps = propsRef.current;\n propsRef.current = props;\n const { style } = props;\n if (props.maxWidth !== undefined && props.maxWidth !== prevProps.maxWidth) {\n ctrl.options.maxWidth = props.maxWidth;\n }\n if (props.unit !== undefined && props.unit !== prevProps.unit) {\n ctrl.setUnit(props.unit);\n }\n useEffect(() => {\n applyReactStyle(ctrl._container, style);\n }, [style]);\n return null;\n}\nexport default memo(ScaleControl);\n//# sourceMappingURL=scale-control.js.map"],"names":["ScaleControl","props","ctrl","useControl","mapLib","propsRef","useRef","prevProps","style","useEffect","applyReactStyle","memo"],"mappings":"mGAGA,SAASA,EAAaC,EAAO,CACnB,MAAAC,EAAOC,EAAW,CAAC,CAAE,OAAAC,KAAa,IAAIA,EAAO,aAAaH,CAAK,EAAG,CACpE,SAAUA,EAAM,QAAA,CACnB,EACKI,EAAWC,SAAOL,CAAK,EACvBM,EAAYF,EAAS,QAC3BA,EAAS,QAAUJ,EACb,KAAA,CAAE,MAAAO,CAAU,EAAAP,EAClB,OAAIA,EAAM,WAAa,QAAaA,EAAM,WAAaM,EAAU,WACxDL,EAAA,QAAQ,SAAWD,EAAM,UAE9BA,EAAM,OAAS,QAAaA,EAAM,OAASM,EAAU,MAChDL,EAAA,QAAQD,EAAM,IAAI,EAE3BQ,EAAAA,UAAU,IAAM,CACIC,EAAAA,gBAAAR,EAAK,WAAYM,CAAK,CAAA,EACvC,CAACA,CAAK,CAAC,EACH,IACX,CACeG,OAAKX,CAAY","x_google_ignoreList":[0]}
|
package/dist/index.cjs74.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),a=require("./index.cjs66.js");function c(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=c(o),u=s.createContext(null);function i(){var e;const n=(e=o.useContext(u))===null||e===void 0?void 0:e.maps,t=o.useContext(a.MapContext);return o.useMemo(()=>({...n,current:t==null?void 0:t.map}),[n,t])}exports.MountedMapsContext=u;exports.useMap=i;
|
|
2
2
|
//# sourceMappingURL=index.cjs74.js.map
|
package/dist/index.cjs74.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs74.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/
|
|
1
|
+
{"version":3,"file":"index.cjs74.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/use-map.js"],"sourcesContent":["import * as React from 'react';\nimport { useState, useCallback, useMemo, useContext } from 'react';\nimport { MapContext } from './map';\nexport const MountedMapsContext = React.createContext(null);\nexport const MapProvider = props => {\n const [maps, setMaps] = useState({});\n const onMapMount = useCallback((map, id = 'default') => {\n setMaps(currMaps => {\n if (id === 'current') {\n throw new Error(\"'current' cannot be used as map id\");\n }\n if (currMaps[id]) {\n throw new Error(`Multiple maps with the same id: ${id}`);\n }\n return { ...currMaps, [id]: map };\n });\n }, []);\n const onMapUnmount = useCallback((id = 'default') => {\n setMaps(currMaps => {\n if (currMaps[id]) {\n const nextMaps = { ...currMaps };\n delete nextMaps[id];\n return nextMaps;\n }\n return currMaps;\n });\n }, []);\n return (React.createElement(MountedMapsContext.Provider, { value: {\n maps,\n onMapMount,\n onMapUnmount\n } }, props.children));\n};\nexport function useMap() {\n var _a;\n const maps = (_a = useContext(MountedMapsContext)) === null || _a === void 0 ? void 0 : _a.maps;\n const currentMap = useContext(MapContext);\n const mapsWithCurrent = useMemo(() => {\n return { ...maps, current: currentMap === null || currentMap === void 0 ? void 0 : currentMap.map };\n }, [maps, currentMap]);\n return mapsWithCurrent;\n}\n//# sourceMappingURL=use-map.js.map"],"names":["MountedMapsContext","React","useMap","_a","maps","useContext","currentMap","MapContext","useMemo"],"mappings":"iaAGaA,EAAqBC,EAAM,cAAc,IAAI,EA8BnD,SAASC,GAAS,CACjB,IAAAC,EACE,MAAAC,GAAQD,EAAKE,EAAW,WAAAL,CAAkB,KAAO,MAAQG,IAAO,OAAS,OAASA,EAAG,KACrFG,EAAaD,aAAWE,EAAAA,UAAU,EAIjC,OAHiBC,EAAAA,QAAQ,KACrB,CAAE,GAAGJ,EAAM,QAASE,GAAe,KAAgC,OAASA,EAAW,GAAI,GACnG,CAACF,EAAME,CAAU,CAAC,CAEzB","x_google_ignoreList":[0]}
|
package/dist/index.cjs75.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs75.js.map
|
package/dist/index.cjs75.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs75.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs75.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs76.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs76.js.map
|
package/dist/index.cjs76.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs76.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs76.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs77.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs204.js");function u(o,i){for(var n=0;n<i.length;n++){const e=i[n];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in o)){const s=Object.getOwnPropertyDescriptor(e,t);s&&Object.defineProperty(o,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var a=r.__exports.printMsg=function(){console.log("This is a message from the demo package")};const c=u({__proto__:null,default:r.__exports,printMsg:a},[r.__exports]);exports.default=r.__exports;exports.index=c;exports.printMsg=a;
|
|
2
2
|
//# sourceMappingURL=index.cjs77.js.map
|
package/dist/index.cjs78.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const u=require("react"),m=require("./index.
|
|
1
|
+
"use strict";const u=require("react"),m=require("./index.cjs66.js"),L=require("./index.cjs188.js"),s=require("./index.cjs187.js");function q(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:l,beforeId:d}=a;if(d!==o.beforeId&&t.moveLayer(e,d),r!==o.layout){const c=o.layout||{};for(const n in r)s.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)s.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)}s.deepEqual(y,o.filter)||t.setFilter(e,y),(f!==o.minzoom||l!==o.maxzoom)&&t.setLayerZoomRange(e,f,l)}function g(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 x=0;function h(t){const e=u.useContext(m.MapContext).map.getMap(),a=u.useRef(t),[,o]=u.useState(0),r=u.useMemo(()=>t.id||`jsx-layer-${x++}`,[]);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{q(e,r,t,a.current)}catch(y){console.warn(y)}else g(e,r,t);return a.current=t,null}module.exports=h;
|
|
2
2
|
//# sourceMappingURL=index.cjs78.js.map
|
package/dist/index.cjs79.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const l=require("react"),f=require("./index.
|
|
1
|
+
"use strict";const l=require("react"),f=require("./index.cjs66.js"),d=require("./index.cjs188.js"),y=require("./index.cjs187.js");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const S=g(l);let m=0;function b(t,e,n){if(t.style&&t.style._loaded){const o={...n};return delete o.id,delete o.children,t.addSource(e,o),t.getSource(e)}return null}function h(t,e,n){d(e.id===n.id,"source id changed"),d(e.type===n.type,"source type changed");let o="",c=0;for(const r in e)r!=="children"&&r!=="id"&&!y.deepEqual(n[r],e[r])&&(o=r,c++);if(!c)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 if("setCoordinates"in t&&c===1&&o==="coordinates")t.setCoordinates(e.coordinates);else if("setUrl"in t)switch(o){case"url":t.setUrl(e.url);break;case"tiles":t.setTiles(e.tiles);break}else console.warn(`Unable to update <Source> prop: ${o}`)}function C(t){const e=l.useContext(f.MapContext).map.getMap(),n=l.useRef(t),[,o]=l.useState(0),c=l.useMemo(()=>t.id||`jsx-source-${m++}`,[]);l.useEffect(()=>{if(e){const r=()=>setTimeout(()=>o(i=>i+1),0);return e.on("styledata",r),r(),()=>{var i;if(e.off("styledata",r),e.style&&e.style._loaded&&e.getSource(c)){const u=(i=e.getStyle())===null||i===void 0?void 0:i.layers;if(u)for(const s of u)s.source===c&&e.removeLayer(s.id);e.removeSource(c)}}}},[e]);let a=e&&e.style&&e.getSource(c);return a?h(a,t,n.current):a=b(e,c,t),n.current=t,a&&S.Children.map(t.children,r=>r&&l.cloneElement(r,{source:c}))||null}module.exports=C;
|
|
2
2
|
//# sourceMappingURL=index.cjs79.js.map
|
package/dist/index.es14.js
CHANGED
package/dist/index.es15.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import p from "./index.
|
|
2
|
+
import p from "./index.es66.js";
|
|
3
|
+
import "./index.es67.js";
|
|
4
|
+
import "./index.es68.js";
|
|
3
5
|
import "./index.es69.js";
|
|
4
6
|
import "./index.es70.js";
|
|
5
7
|
import "./index.es71.js";
|
|
6
|
-
import "./index.es72.js";
|
|
8
|
+
import m from "./index.es72.js";
|
|
7
9
|
import "./index.es73.js";
|
|
8
|
-
import m from "./index.es74.js";
|
|
9
|
-
import "./index.es75.js";
|
|
10
10
|
import a from "./index.es78.js";
|
|
11
11
|
import n from "./index.es79.js";
|
|
12
|
-
import { useMap as e } from "./index.
|
|
12
|
+
import { useMap as e } from "./index.es74.js";
|
|
13
13
|
function C() {
|
|
14
14
|
return e();
|
|
15
15
|
}
|
package/dist/index.es16.js
CHANGED
package/dist/index.es189.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import i from "./index.es55.js";
|
|
2
|
+
import { point as m } from "./index.es53.js";
|
|
3
|
+
function x(t, r) {
|
|
4
|
+
r === void 0 && (r = {});
|
|
5
|
+
var e = i(t), a = (e[0] + e[2]) / 2, f = (e[1] + e[3]) / 2;
|
|
6
|
+
return m([a, f], r.properties, r);
|
|
7
|
+
}
|
|
2
8
|
export {
|
|
3
|
-
|
|
9
|
+
x as default
|
|
4
10
|
};
|
|
5
11
|
//# sourceMappingURL=index.es189.js.map
|
package/dist/index.es189.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es189.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index.es189.js","sources":["../../../node_modules/@turf/center/dist/es/index.js"],"sourcesContent":["import bbox from \"@turf/bbox\";\nimport { point, } from \"@turf/helpers\";\n/**\n * Takes a {@link Feature} or {@link FeatureCollection} and returns the absolute center point of all features.\n *\n * @name center\n * @param {GeoJSON} geojson GeoJSON to be centered\n * @param {Object} [options={}] Optional parameters\n * @param {Object} [options.properties={}] Translate GeoJSON Properties to Point\n * @param {Object} [options.bbox={}] Translate GeoJSON BBox to Point\n * @param {Object} [options.id={}] Translate GeoJSON Id to Point\n * @returns {Feature<Point>} a Point feature at the absolute center point of all input features\n * @example\n * var features = turf.points([\n * [-97.522259, 35.4691],\n * [-97.502754, 35.463455],\n * [-97.508269, 35.463245]\n * ]);\n *\n * var center = turf.center(features);\n *\n * //addToMap\n * var addToMap = [features, center]\n * center.properties['marker-size'] = 'large';\n * center.properties['marker-color'] = '#000';\n */\nfunction center(geojson, options) {\n if (options === void 0) { options = {}; }\n var ext = bbox(geojson);\n var x = (ext[0] + ext[2]) / 2;\n var y = (ext[1] + ext[3]) / 2;\n return point([x, y], options.properties, options);\n}\nexport default center;\n"],"names":["center","geojson","options","ext","bbox","x","y","point"],"mappings":";;AA0BA,SAASA,EAAOC,GAASC,GAAS;AAC9B,EAAIA,MAAY,WAAUA,IAAU,CAAA;AAChC,MAAAC,IAAMC,EAAKH,CAAO,GAClBI,KAAKF,EAAI,CAAC,IAAIA,EAAI,CAAC,KAAK,GACxBG,KAAKH,EAAI,CAAC,IAAIA,EAAI,CAAC,KAAK;AAC5B,SAAOI,EAAM,CAACF,GAAGC,CAAC,GAAGJ,EAAQ,YAAYA,CAAO;AACpD;","x_google_ignoreList":[0]}
|
package/dist/index.es19.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { commonjsGlobal as nd, getDefaultExportFromCjs as od } from "./index.es58.js";
|
|
2
|
-
import { __module as lu } from "./index.
|
|
2
|
+
import { __module as lu } from "./index.es65.js";
|
|
3
3
|
function ld(an, vl) {
|
|
4
4
|
for (var Ur = 0; Ur < vl.length; Ur++) {
|
|
5
5
|
const cr = vl[Ur];
|
package/dist/index.es190.js
CHANGED
|
@@ -1,11 +1,151 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
function b(e, o, r) {
|
|
2
|
+
if (e !== null)
|
|
3
|
+
for (var t, l, a, u, c, i, s, y = 0, f = 0, h, p = e.type, C = p === "FeatureCollection", v = p === "Feature", w = C ? e.features.length : 1, M = 0; M < w; M++) {
|
|
4
|
+
s = C ? e.features[M].geometry : v ? e.geometry : e, h = s ? s.type === "GeometryCollection" : !1, c = h ? s.geometries.length : 1;
|
|
5
|
+
for (var G = 0; G < c; G++) {
|
|
6
|
+
var n = 0, g = 0;
|
|
7
|
+
if (u = h ? s.geometries[G] : s, u !== null) {
|
|
8
|
+
i = u.coordinates;
|
|
9
|
+
var P = u.type;
|
|
10
|
+
switch (y = r && (P === "Polygon" || P === "MultiPolygon") ? 1 : 0, P) {
|
|
11
|
+
case null:
|
|
12
|
+
break;
|
|
13
|
+
case "Point":
|
|
14
|
+
if (o(
|
|
15
|
+
i,
|
|
16
|
+
f,
|
|
17
|
+
M,
|
|
18
|
+
n,
|
|
19
|
+
g
|
|
20
|
+
) === !1)
|
|
21
|
+
return !1;
|
|
22
|
+
f++, n++;
|
|
23
|
+
break;
|
|
24
|
+
case "LineString":
|
|
25
|
+
case "MultiPoint":
|
|
26
|
+
for (t = 0; t < i.length; t++) {
|
|
27
|
+
if (o(
|
|
28
|
+
i[t],
|
|
29
|
+
f,
|
|
30
|
+
M,
|
|
31
|
+
n,
|
|
32
|
+
g
|
|
33
|
+
) === !1)
|
|
34
|
+
return !1;
|
|
35
|
+
f++, P === "MultiPoint" && n++;
|
|
36
|
+
}
|
|
37
|
+
P === "LineString" && n++;
|
|
38
|
+
break;
|
|
39
|
+
case "Polygon":
|
|
40
|
+
case "MultiLineString":
|
|
41
|
+
for (t = 0; t < i.length; t++) {
|
|
42
|
+
for (l = 0; l < i[t].length - y; l++) {
|
|
43
|
+
if (o(
|
|
44
|
+
i[t][l],
|
|
45
|
+
f,
|
|
46
|
+
M,
|
|
47
|
+
n,
|
|
48
|
+
g
|
|
49
|
+
) === !1)
|
|
50
|
+
return !1;
|
|
51
|
+
f++;
|
|
52
|
+
}
|
|
53
|
+
P === "MultiLineString" && n++, P === "Polygon" && g++;
|
|
54
|
+
}
|
|
55
|
+
P === "Polygon" && n++;
|
|
56
|
+
break;
|
|
57
|
+
case "MultiPolygon":
|
|
58
|
+
for (t = 0; t < i.length; t++) {
|
|
59
|
+
for (g = 0, l = 0; l < i[t].length; l++) {
|
|
60
|
+
for (a = 0; a < i[t][l].length - y; a++) {
|
|
61
|
+
if (o(
|
|
62
|
+
i[t][l][a],
|
|
63
|
+
f,
|
|
64
|
+
M,
|
|
65
|
+
n,
|
|
66
|
+
g
|
|
67
|
+
) === !1)
|
|
68
|
+
return !1;
|
|
69
|
+
f++;
|
|
70
|
+
}
|
|
71
|
+
g++;
|
|
72
|
+
}
|
|
73
|
+
n++;
|
|
74
|
+
}
|
|
75
|
+
break;
|
|
76
|
+
case "GeometryCollection":
|
|
77
|
+
for (t = 0; t < u.geometries.length; t++)
|
|
78
|
+
if (b(u.geometries[t], o, r) === !1)
|
|
79
|
+
return !1;
|
|
80
|
+
break;
|
|
81
|
+
default:
|
|
82
|
+
throw new Error("Unknown Geometry Type");
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function S(e, o) {
|
|
89
|
+
if (e.type === "Feature")
|
|
90
|
+
o(e, 0);
|
|
91
|
+
else if (e.type === "FeatureCollection")
|
|
92
|
+
for (var r = 0; r < e.features.length && o(e.features[r], r) !== !1; r++)
|
|
93
|
+
;
|
|
94
|
+
}
|
|
95
|
+
function k(e, o) {
|
|
96
|
+
var r, t, l, a, u, c, i, s, y, f, h = 0, p = e.type === "FeatureCollection", C = e.type === "Feature", v = p ? e.features.length : 1;
|
|
97
|
+
for (r = 0; r < v; r++) {
|
|
98
|
+
for (c = p ? e.features[r].geometry : C ? e.geometry : e, s = p ? e.features[r].properties : C ? e.properties : {}, y = p ? e.features[r].bbox : C ? e.bbox : void 0, f = p ? e.features[r].id : C ? e.id : void 0, i = c ? c.type === "GeometryCollection" : !1, u = i ? c.geometries.length : 1, l = 0; l < u; l++) {
|
|
99
|
+
if (a = i ? c.geometries[l] : c, a === null) {
|
|
100
|
+
if (o(
|
|
101
|
+
null,
|
|
102
|
+
h,
|
|
103
|
+
s,
|
|
104
|
+
y,
|
|
105
|
+
f
|
|
106
|
+
) === !1)
|
|
107
|
+
return !1;
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
switch (a.type) {
|
|
111
|
+
case "Point":
|
|
112
|
+
case "LineString":
|
|
113
|
+
case "MultiPoint":
|
|
114
|
+
case "Polygon":
|
|
115
|
+
case "MultiLineString":
|
|
116
|
+
case "MultiPolygon": {
|
|
117
|
+
if (o(
|
|
118
|
+
a,
|
|
119
|
+
h,
|
|
120
|
+
s,
|
|
121
|
+
y,
|
|
122
|
+
f
|
|
123
|
+
) === !1)
|
|
124
|
+
return !1;
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
case "GeometryCollection": {
|
|
128
|
+
for (t = 0; t < a.geometries.length; t++)
|
|
129
|
+
if (o(
|
|
130
|
+
a.geometries[t],
|
|
131
|
+
h,
|
|
132
|
+
s,
|
|
133
|
+
y,
|
|
134
|
+
f
|
|
135
|
+
) === !1)
|
|
136
|
+
return !1;
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
default:
|
|
140
|
+
throw new Error("Unknown Geometry Type");
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
h++;
|
|
144
|
+
}
|
|
7
145
|
}
|
|
8
146
|
export {
|
|
9
|
-
|
|
147
|
+
b as coordEach,
|
|
148
|
+
S as featureEach,
|
|
149
|
+
k as geomEach
|
|
10
150
|
};
|
|
11
151
|
//# sourceMappingURL=index.es190.js.map
|