@mapcomponents/ra-geospatial 1.6.1 → 1.6.2

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.
@@ -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-BXasLBfG.js")).catch(function(M) {
40796
+ return (jn.canvg ? Promise.resolve(jn.canvg) : import("./index.es-6e0FVhHF.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;
@@ -43929,11 +43929,9 @@ const kz = (e) => {
43929
43929
  ), h(!0));
43930
43930
  }, [n.map, e, a, v]), ki(() => {
43931
43931
  if (!n.map || !c) return;
43932
- const S = () => {
43933
- if (t.current) {
43934
- const P = t.current.getAll?.();
43935
- o(P?.features), typeof e.onChange == "function" && e.onChange(P?.features);
43936
- }
43932
+ const S = (P) => {
43933
+ let M = [];
43934
+ P && typeof P == "object" && "features" in P && P.features && (M = P.features), o(M), e.onChange && e.onChange(M);
43937
43935
  };
43938
43936
  return n.map.on("mouseup", S), n.map.on("touchend", S), () => {
43939
43937
  n.map && (n.map.map.off("mouseup", S), n.map.map.off("touchend", S));
@@ -61526,4 +61524,4 @@ export {
61526
61524
  Xc as c,
61527
61525
  Yh as g
61528
61526
  };
61529
- //# sourceMappingURL=index-C46vlfqQ.js.map
61527
+ //# sourceMappingURL=index-Ch2LED6r.js.map