@carto/ps-react-maps 3.7.1 → 3.7.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.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3366,7 +3366,7 @@ function no(r) {
|
|
|
3366
3366
|
return e[10] !== s || e[11] !== p ? (y = /* @__PURE__ */ N(Vs, { values: s, children: p }), e[10] = s, e[11] = p, e[12] = y) : y = e[12], y;
|
|
3367
3367
|
}
|
|
3368
3368
|
function ro(r, e) {
|
|
3369
|
-
const t = pe((c) => c.layers), s = pe((c) => c.setLayer), n = re(() => kt(r.map((c) => t[c]).filter((c) => !!(c != null && c.legend))), [t, r]), o = re(() => n.map(e), [e, n]), i = Q(({
|
|
3369
|
+
const t = pe((c) => c.layers), s = pe((c) => c.setLayer), n = re(() => kt(r.map((c) => t[c]).filter((c) => !!(c != null && c.legend))).toReversed(), [t, r]), o = re(() => n.map(e), [e, n]), i = Q(({
|
|
3370
3370
|
id: c,
|
|
3371
3371
|
visible: b,
|
|
3372
3372
|
...p
|
|
@@ -3542,12 +3542,17 @@ function ar(r) {
|
|
|
3542
3542
|
break e;
|
|
3543
3543
|
}
|
|
3544
3544
|
let i;
|
|
3545
|
-
|
|
3545
|
+
if (e[2] !== n) {
|
|
3546
|
+
const a = Object.values(n).filter(cr).flatMap(lr);
|
|
3547
|
+
i = gt(a), e[2] = n, e[3] = i;
|
|
3548
|
+
} else
|
|
3549
|
+
i = e[3];
|
|
3550
|
+
o = i.geometry;
|
|
3546
3551
|
}
|
|
3547
3552
|
return o;
|
|
3548
3553
|
}
|
|
3549
3554
|
function lr(r) {
|
|
3550
|
-
return r.coordinates;
|
|
3555
|
+
return r.type === "Polygon" ? [r.coordinates] : r.coordinates;
|
|
3551
3556
|
}
|
|
3552
3557
|
function cr(r) {
|
|
3553
3558
|
return r != null;
|