@abi-software/flatmap-viewer 4.2.14 → 4.3.0
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/README.md +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -93608,7 +93608,7 @@ class L_t {
|
|
|
93608
93608
|
const i = t[n];
|
|
93609
93609
|
i && (Array.isArray(i) && i.length || i.constructor === Object && Object.keys(i).length ? e[n] = i : n === "featureId" ? e[n] = +i : b_t.includes(n) ? e[n] = JSON.parse(`${i}`) : e[n] = i);
|
|
93610
93610
|
}
|
|
93611
|
-
return Object.keys(e).length > 0 && (e.type = "feature"), e;
|
|
93611
|
+
return "models" in e && (e.id = e.models), Object.keys(e).length > 0 && (e.type = "feature"), e;
|
|
93612
93612
|
}
|
|
93613
93613
|
/**
|
|
93614
93614
|
* Show or hide a tool for drawing regions to annotate on the map.
|
|
@@ -94067,7 +94067,7 @@ Lu = new WeakMap(), wu = new WeakMap(), Au = new WeakMap(), z2 = new WeakMap(),
|
|
|
94067
94067
|
try {
|
|
94068
94068
|
e.lineString = AR(e.coordinates), e.lineLength = Let(e.lineString);
|
|
94069
94069
|
} catch {
|
|
94070
|
-
console.log(`Bad centreline for ${e.id}, coordinates: ${e.coordinates}`);
|
|
94070
|
+
console.log(`Bad centreline for ${e.id}, ${e.models}, coordinates: ${e.coordinates}`);
|
|
94071
94071
|
}
|
|
94072
94072
|
}, nA = async function(t) {
|
|
94073
94073
|
if (t && !M(this, Sl).has(t)) {
|
|
@@ -94076,7 +94076,7 @@ Lu = new WeakMap(), wu = new WeakMap(), Au = new WeakMap(), z2 = new WeakMap(),
|
|
|
94076
94076
|
return M(this, Sl).set(t, e[0].label);
|
|
94077
94077
|
}
|
|
94078
94078
|
};
|
|
94079
|
-
const w_t = "4.
|
|
94079
|
+
const w_t = "4.3.0", A_t = 1.4;
|
|
94080
94080
|
var Jm, td, Cl, J1, ed, rd, I3, iA, oA, T$;
|
|
94081
94081
|
class M_t {
|
|
94082
94082
|
// also have a callback for viewer events...
|