@carto/ps-react-maps 3.11.11 → 3.11.12
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
CHANGED
|
@@ -1080,29 +1080,31 @@ function ke({
|
|
|
1080
1080
|
locale: t,
|
|
1081
1081
|
options: {
|
|
1082
1082
|
autoSplitNumber: s,
|
|
1083
|
-
|
|
1083
|
+
customFormatter: n,
|
|
1084
|
+
...o
|
|
1084
1085
|
} = {
|
|
1085
1086
|
autoSplitNumber: nt
|
|
1086
1087
|
},
|
|
1087
|
-
dimension:
|
|
1088
|
+
dimension: i = "length"
|
|
1088
1089
|
}) {
|
|
1089
|
-
const
|
|
1090
|
-
let
|
|
1091
|
-
if (
|
|
1092
|
-
const
|
|
1093
|
-
let
|
|
1094
|
-
|
|
1090
|
+
const a = e === Ie["m-km"], c = e === Ie["ft-mi"], l = a || c;
|
|
1091
|
+
let y, h;
|
|
1092
|
+
if (l) {
|
|
1093
|
+
const p = r < (s ?? nt);
|
|
1094
|
+
let v = p ? I.meter : I.kilometer;
|
|
1095
|
+
y = p ? pe.meter : pe.kilometer, c && (y = p ? pe.feet : pe.mile, v = p ? I.feet : I.mile), h = st(r, v, i);
|
|
1095
1096
|
} else
|
|
1096
|
-
|
|
1097
|
-
|
|
1097
|
+
y = pe[e], h = st(r, e, i);
|
|
1098
|
+
let g = `${St(h, t, {
|
|
1098
1099
|
style: "unit",
|
|
1099
|
-
unit:
|
|
1100
|
+
unit: y,
|
|
1100
1101
|
unitDisplay: "short",
|
|
1101
1102
|
notation: "standard",
|
|
1102
1103
|
minimumFractionDigits: 2,
|
|
1103
1104
|
maximumFractionDigits: 2,
|
|
1104
|
-
...
|
|
1105
|
+
...o
|
|
1105
1106
|
})}`;
|
|
1107
|
+
return i === "area" && (g += "2"), n ? n(g) : g;
|
|
1106
1108
|
}
|
|
1107
1109
|
function io(r, {
|
|
1108
1110
|
hasDoubleClickZoom: e
|
|
@@ -1252,7 +1254,7 @@ class Xs extends Wt {
|
|
|
1252
1254
|
unit: s,
|
|
1253
1255
|
options: n,
|
|
1254
1256
|
dimension: "area"
|
|
1255
|
-
})
|
|
1257
|
+
});
|
|
1256
1258
|
}
|
|
1257
1259
|
}
|
|
1258
1260
|
class en extends gt {
|
|
@@ -1324,8 +1326,9 @@ class en extends gt {
|
|
|
1324
1326
|
meters: e,
|
|
1325
1327
|
locale: t,
|
|
1326
1328
|
unit: s,
|
|
1327
|
-
options: n
|
|
1328
|
-
|
|
1329
|
+
options: n,
|
|
1330
|
+
dimension: "area"
|
|
1331
|
+
});
|
|
1329
1332
|
}
|
|
1330
1333
|
}
|
|
1331
1334
|
class Ct extends Jt {
|