@mapcomponents/ra-geospatial 1.6.1 → 1.6.3
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-C46vlfqQ.js → index-D55kERfu.js} +9 -11
- package/dist/{index-C46vlfqQ.js.map → index-D55kERfu.js.map} +1 -1
- package/dist/{index-DuPAPsWa.cjs → index-lNvpX70j.cjs} +3 -3
- package/dist/{index-DuPAPsWa.cjs.map → index-lNvpX70j.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/{index.es-UgETSxCJ.cjs → index.es-B1hOzpPd.cjs} +2 -2
- package/dist/{index.es-UgETSxCJ.cjs.map → index.es-B1hOzpPd.cjs.map} +1 -1
- package/dist/{index.es-BXasLBfG.js → index.es-ButfBttq.js} +2 -2
- package/dist/{index.es-BXasLBfG.js.map → index.es-ButfBttq.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +2 -2
|
@@ -40793,7 +40793,7 @@ endobj\r
|
|
|
40793
40793
|
var v = y.getContext("2d");
|
|
40794
40794
|
v.fillStyle = "#fff", v.fillRect(0, 0, y.width, y.height);
|
|
40795
40795
|
var S = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, P = this;
|
|
40796
|
-
return (jn.canvg ? Promise.resolve(jn.canvg) : import("./index.es-
|
|
40796
|
+
return (jn.canvg ? Promise.resolve(jn.canvg) : import("./index.es-ButfBttq.js")).catch(function(M) {
|
|
40797
40797
|
return Promise.reject(new Error("Could not load canvg: " + M));
|
|
40798
40798
|
}).then(function(M) {
|
|
40799
40799
|
return M.default ? M.default : M;
|
|
@@ -43928,17 +43928,15 @@ const kz = (e) => {
|
|
|
43928
43928
|
n.componentId
|
|
43929
43929
|
), h(!0));
|
|
43930
43930
|
}, [n.map, e, a, v]), ki(() => {
|
|
43931
|
-
if (!n.map || !c) return;
|
|
43932
|
-
const S = () => {
|
|
43933
|
-
|
|
43934
|
-
|
|
43935
|
-
o(P?.features), typeof e.onChange == "function" && e.onChange(P?.features);
|
|
43936
|
-
}
|
|
43931
|
+
if (!n.map || !c || !t.current) return;
|
|
43932
|
+
const S = (P) => {
|
|
43933
|
+
const M = P?.features || [];
|
|
43934
|
+
o(M), e.onChange && e.onChange(M);
|
|
43937
43935
|
};
|
|
43938
|
-
return n.map.on("
|
|
43939
|
-
n.map && (n.map.map.off("
|
|
43936
|
+
return n.map.on("draw.create", S, n.componentId), n.map.on("draw.update", S, n.componentId), n.map.on("draw.delete", S, n.componentId), () => {
|
|
43937
|
+
n.map && (n.map.map.off("draw.create", S), n.map.map.off("draw.update", S), n.map.map.off("draw.delete", S));
|
|
43940
43938
|
};
|
|
43941
|
-
}, [c, n.map]), ki(() => {
|
|
43939
|
+
}, [c, n.map, e.onChange]), ki(() => {
|
|
43942
43940
|
t.current && e.geojson?.geometry && t.current.set({ type: "FeatureCollection", features: [e.geojson] });
|
|
43943
43941
|
}, [e.geojson, c]), ki(() => {
|
|
43944
43942
|
e.mode && t.current && t.current?.getMode?.() !== e.mode && (t.current?.changeMode?.(e.mode), e.mode !== "simple_select" && e.mode !== "direct_select" && t.current.set({ type: "FeatureCollection", features: [] }));
|
|
@@ -61526,4 +61524,4 @@ export {
|
|
|
61526
61524
|
Xc as c,
|
|
61527
61525
|
Yh as g
|
|
61528
61526
|
};
|
|
61529
|
-
//# sourceMappingURL=index-
|
|
61527
|
+
//# sourceMappingURL=index-D55kERfu.js.map
|