@carto/ps-react-maps 3.7.1 → 3.7.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.
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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;
|