@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.
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs201.js +7 -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.cjs205.js +1 -1
- package/dist/index.cjs205.js.map +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs206.js.map +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs207.js.map +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs208.js.map +1 -1
- package/dist/index.cjs209.js +1 -7
- package/dist/index.cjs209.js.map +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs210.js.map +1 -1
- package/dist/index.cjs213.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs233.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs256.js +1 -1
- package/dist/index.cjs256.js.map +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs257.js.map +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs258.js.map +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs259.js.map +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs71.js +1 -743
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs72.js +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 -9
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js +3 -11
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +17 -1
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs78.js +743 -1
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.es14.js +2 -2
- package/dist/index.es15.js +4 -4
- package/dist/index.es16.js +3 -3
- package/dist/index.es17.js +3 -3
- package/dist/index.es18.js +1 -1
- package/dist/index.es188.js +2 -2
- package/dist/index.es19.js +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es201.js +7505 -241
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +2 -43
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +243 -3
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +40 -8
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js +3 -11
- package/dist/index.es205.js.map +1 -1
- package/dist/index.es206.js +9 -29
- package/dist/index.es206.js.map +1 -1
- package/dist/index.es207.js +10 -13
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es208.js +30 -4
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es209.js +13 -7506
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es21.js +1 -1
- package/dist/index.es210.js +5 -2
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es213.js +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es23.js +1 -1
- package/dist/index.es233.js +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es256.js +6 -19
- package/dist/index.es256.js.map +1 -1
- package/dist/index.es257.js +3 -23
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +21 -3
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +22 -7
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es27.js +1 -1
- package/dist/index.es28.js +2 -2
- package/dist/index.es29.js +2 -2
- package/dist/index.es31.js +2 -2
- package/dist/index.es38.js +1 -1
- package/dist/index.es71.js +1954 -21313
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +6 -2
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +2 -8
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +8 -2
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +2 -26
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +17 -580
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +556 -1960
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +21351 -5
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs14.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const r=require("./index.
|
|
1
|
+
"use strict";const r=require("./index.cjs72.js"),e=require("./index.cjs71.js");var o=e.__require();const s=r.getDefaultExportFromCjs(o);module.exports=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs14.js.map
|
package/dist/index.cjs15.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),g=require("./index.cjs26.js"),m=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),g=require("./index.cjs26.js"),m=require("./index.cjs203.js"),v=require("./index.cjs204.js"),y=require("./index.cjs205.js"),E=require("./index.cjs206.js");function L(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(c,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return c.default=e,Object.freeze(c)}const s=L(r),d=s.createContext(null);function x(e,c){const a=r.useContext(g.MountedMapsContext),[i,M]=r.useState(null),u=r.useRef(),{current:l}=r.useRef({mapLib:null,map:null});r.useEffect(()=>{const h=e.mapLib;let f=!0,n;return Promise.resolve(h||Promise.resolve().then(()=>require("./index.cjs31.js")).then(t=>t.Li)).then(t=>{if(!f)return;if(!t)throw new Error("Invalid mapLib");const o="Map"in t?t:t.default;if(!o.Map)throw new Error("Invalid mapLib");E(o,e),e.reuseMaps&&(n=m.reuse(e,u.current)),n||(n=new m(o.Map,e,u.current)),l.map=v(n),l.mapLib=o,M(n),a?.onMapMount(l.map,e.id)}).catch(t=>{const{onError:o}=e;o?o({type:"error",target:null,originalEvent:null,error:t}):console.error(t)}),()=>{f=!1,n&&(a?.onMapUnmount(e.id),e.reuseMaps?n.recycle():n.destroy())}},[]),y(()=>{i&&i.setProps(e)}),r.useImperativeHandle(c,()=>l.map,[i]);const b=r.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),p={height:"100%"};return s.createElement("div",{id:e.id,ref:u,style:b},i&&s.createElement(d.Provider,{value:l},s.createElement("div",{"mapboxgl-children":"",style:p},e.children)))}const w=s.forwardRef(x);exports.Map=w;exports.MapContext=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs15.js.map
|
package/dist/index.cjs16.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const a=require("react"),D=require("react-dom"),P=require("./index.
|
|
1
|
+
"use strict";const a=require("react"),D=require("react-dom"),P=require("./index.cjs207.js"),q=require("./index.cjs15.js"),C=require("./index.cjs208.js"),k=require("./index.cjs209.js");function N(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const l=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(i,s,l.get?l:{enumerable:!0,get:()=>t[s]})}}return i.default=t,Object.freeze(i)}const O=N(a);a.memo(a.forwardRef((t,i)=>{const{map:s,mapLib:l}=a.useContext(q.MapContext),c=a.useRef({props:t}),e=a.useMemo(()=>{let g=!1;O.Children.forEach(t.children,n=>{n&&(g=!0)});const y={...t,element:g?document.createElement("div"):void 0},o=new l.Marker(y);return o.setLngLat([t.longitude,t.latitude]),o.getElement().addEventListener("click",n=>{c.current.props.onClick?.({type:"click",target:o,originalEvent:n})}),o.on("dragstart",n=>{const r=n;r.lngLat=e.getLngLat(),c.current.props.onDragStart?.(r)}),o.on("drag",n=>{const r=n;r.lngLat=e.getLngLat(),c.current.props.onDrag?.(r)}),o.on("dragend",n=>{const r=n;r.lngLat=e.getLngLat(),c.current.props.onDragEnd?.(r)}),o},[]);a.useEffect(()=>(e.addTo(s.getMap()),()=>{e.remove()}),[]);const{longitude:f,latitude:m,offset:u,style:d,draggable:p=!1,popup:L=null,rotation:E=0,rotationAlignment:R="auto",pitchAlignment:b="auto"}=t;a.useEffect(()=>{P.applyReactStyle(e.getElement(),d)},[d]),a.useImperativeHandle(i,()=>e,[]);const v=c.current.props;(e.getLngLat().lng!==f||e.getLngLat().lat!==m)&&e.setLngLat([f,m]),u&&!C.arePointsEqual(e.getOffset(),u)&&e.setOffset(u),e.isDraggable()!==p&&e.setDraggable(p),e.getRotation()!==E&&e.setRotation(E),e.getRotationAlignment()!==R&&e.setRotationAlignment(R),e.getPitchAlignment()!==b&&e.setPitchAlignment(b),e.getPopup()!==L&&e.setPopup(L);const h=k.compareClassNames(v.className,t.className);if(h)for(const g of h)e.toggleClassName(g);return c.current.props=t,D.createPortal(t.children,e.getElement())}));
|
|
2
2
|
//# sourceMappingURL=index.cjs16.js.map
|
package/dist/index.cjs17.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const f=require("react-dom"),a=require("react"),m=require("./index.
|
|
1
|
+
"use strict";const f=require("react-dom"),a=require("react"),m=require("./index.cjs207.js"),d=require("./index.cjs15.js"),g=require("./index.cjs208.js"),h=require("./index.cjs209.js");a.memo(a.forwardRef((e,l)=>{const{map:u,mapLib:r}=a.useContext(d.MapContext),i=a.useMemo(()=>document.createElement("div"),[]),s=a.useRef({props:e}),t=a.useMemo(()=>{const n={...e},o=new r.Popup(n);return o.setLngLat([e.longitude,e.latitude]),o.once("open",c=>{s.current.props.onOpen?.(c)}),o},[]);if(a.useEffect(()=>{const n=o=>{s.current.props.onClose?.(o)};return t.on("close",n),t.setDOMContent(i).addTo(u.getMap()),()=>{t.off("close",n),t.isOpen()&&t.remove()}},[]),a.useEffect(()=>{m.applyReactStyle(t.getElement(),e.style)},[e.style]),a.useImperativeHandle(l,()=>t,[]),t.isOpen()){const n=s.current.props;(t.getLngLat().lng!==e.longitude||t.getLngLat().lat!==e.latitude)&&t.setLngLat([e.longitude,e.latitude]),e.offset&&!g.deepEqual(n.offset,e.offset)&&t.setOffset(e.offset),(n.anchor!==e.anchor||n.maxWidth!==e.maxWidth)&&(t.options.anchor=e.anchor,t.setMaxWidth(e.maxWidth));const o=h.compareClassNames(n.className,e.className);if(o)for(const c of o)t.toggleClassName(c);s.current.props=e}return f.createPortal(e.children,i)}));
|
|
2
2
|
//# sourceMappingURL=index.cjs17.js.map
|
package/dist/index.cjs18.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("react"),i=require("./index.
|
|
1
|
+
"use strict";const e=require("react"),i=require("./index.cjs207.js"),r=require("./index.cjs25.js");function l(t){const n=r.useControl(({mapLib:o})=>new o.AttributionControl(t),{position:t.position});return e.useEffect(()=>{i.applyReactStyle(n._container,t.style)},[t.style]),null}e.memo(l);
|
|
2
2
|
//# sourceMappingURL=index.cjs18.js.map
|
package/dist/index.cjs188.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const s=require("./index.
|
|
1
|
+
"use strict";const s=require("./index.cjs72.js"),r=require("./index.cjs201.js");var t=r.__require();const e=s.getDefaultExportFromCjs(t);module.exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs188.js.map
|
package/dist/index.cjs19.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),l=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),l=require("./index.cjs207.js"),r=require("./index.cjs25.js");function c(e){const n=r.useControl(({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 u=t.memo(c);exports.FullscreenControl=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs19.js.map
|
package/dist/index.cjs20.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const n=require("react"),l=require("./index.
|
|
1
|
+
"use strict";const n=require("react"),l=require("./index.cjs207.js"),i=require("./index.cjs25.js");function p(t,s){const r=n.useRef({props:t}),c=i.useControl(({mapLib:u})=>{const o=new u.GeolocateControl(t),a=o._setupUI;return o._setupUI=()=>{o._container.hasChildNodes()||a()},o.on("geolocate",e=>{r.current.props.onGeolocate?.(e)}),o.on("error",e=>{r.current.props.onError?.(e)}),o.on("outofmaxbounds",e=>{r.current.props.onOutOfMaxBounds?.(e)}),o.on("trackuserlocationstart",e=>{r.current.props.onTrackUserLocationStart?.(e)}),o.on("trackuserlocationend",e=>{r.current.props.onTrackUserLocationEnd?.(e)}),o},{position:t.position});return r.current.props=t,n.useImperativeHandle(s,()=>c,[]),n.useEffect(()=>{l.applyReactStyle(c._container,t.style)},[t.style]),null}n.memo(n.forwardRef(p));
|
|
2
2
|
//# sourceMappingURL=index.cjs20.js.map
|