@abi-software/flatmap-viewer 4.2.14 → 4.3.1
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 +18 -4
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -23722,6 +23722,7 @@ class Qrt extends lg {
|
|
|
23722
23722
|
return new ls({
|
|
23723
23723
|
OR: [
|
|
23724
23724
|
{ NOT: { "tile-layer": fo } },
|
|
23725
|
+
{ type: "nerve" },
|
|
23725
23726
|
{ AND: [
|
|
23726
23727
|
{ "tile-layer": fo },
|
|
23727
23728
|
{ HAS: "kind" },
|
|
@@ -92206,7 +92207,20 @@ class m_t {
|
|
|
92206
92207
|
if (i || o) {
|
|
92207
92208
|
M(this, c1) && (n && n.preserveSelection && (M(this, c1).options.preserveSelection = n.preserveSelection), M(this, c1).remove()), n && n.preserveSelection ? delete n.preserveSelection : this.unselectFeatures(), this.selectFeature(t);
|
|
92208
92209
|
let s;
|
|
92209
|
-
"positionAtLastClick" in n && n.positionAtLastClick && M(this, mu) !== null ? s = M(this, mu) : o ? s = n.annotationFeatureGeometry : s = this.markerPosition(i), M(this, xr).getBounds().contains(s) || M(this, xr).panTo(s), It(this, Ee, r$).call(this), mt(this, c1, new V1.Popup(n).addTo(M(this, xr))), M(this, c1).on("close", It(this, Ee, n$).bind(this)), o
|
|
92210
|
+
if ("positionAtLastClick" in n && n.positionAtLastClick && M(this, mu) !== null ? s = M(this, mu) : o ? s = n.annotationFeatureGeometry : s = this.markerPosition(i), M(this, xr).getBounds().contains(s) || M(this, xr).panTo(s), It(this, Ee, r$).call(this), mt(this, c1, new V1.Popup(n).addTo(M(this, xr))), M(this, c1).on("close", It(this, Ee, n$).bind(this)), o) {
|
|
92211
|
+
const a = {
|
|
92212
|
+
type: "created",
|
|
92213
|
+
feature: {
|
|
92214
|
+
id: t,
|
|
92215
|
+
geometry: {
|
|
92216
|
+
type: "Point",
|
|
92217
|
+
coordinates: n.annotationFeatureGeometry
|
|
92218
|
+
}
|
|
92219
|
+
}
|
|
92220
|
+
}, u = n.annotationEvent || a;
|
|
92221
|
+
M(this, c1).on("close", () => this.abortAnnotationEvent(u));
|
|
92222
|
+
}
|
|
92223
|
+
M(this, c1).setLngLat(s), typeof e == "object" ? M(this, c1).setDOMContent(e) : M(this, c1).setText(e);
|
|
92210
92224
|
}
|
|
92211
92225
|
}
|
|
92212
92226
|
/**
|
|
@@ -93608,7 +93622,7 @@ class L_t {
|
|
|
93608
93622
|
const i = t[n];
|
|
93609
93623
|
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
93624
|
}
|
|
93611
|
-
return Object.keys(e).length > 0 && (e.type = "feature"), e;
|
|
93625
|
+
return "models" in e && (e.id = e.models), Object.keys(e).length > 0 && (e.type = "feature"), e;
|
|
93612
93626
|
}
|
|
93613
93627
|
/**
|
|
93614
93628
|
* Show or hide a tool for drawing regions to annotate on the map.
|
|
@@ -94067,7 +94081,7 @@ Lu = new WeakMap(), wu = new WeakMap(), Au = new WeakMap(), z2 = new WeakMap(),
|
|
|
94067
94081
|
try {
|
|
94068
94082
|
e.lineString = AR(e.coordinates), e.lineLength = Let(e.lineString);
|
|
94069
94083
|
} catch {
|
|
94070
|
-
console.log(`Bad centreline for ${e.id}, coordinates: ${e.coordinates}`);
|
|
94084
|
+
console.log(`Bad centreline for ${e.id}, ${e.models}, coordinates: ${e.coordinates}`);
|
|
94071
94085
|
}
|
|
94072
94086
|
}, nA = async function(t) {
|
|
94073
94087
|
if (t && !M(this, Sl).has(t)) {
|
|
@@ -94076,7 +94090,7 @@ Lu = new WeakMap(), wu = new WeakMap(), Au = new WeakMap(), z2 = new WeakMap(),
|
|
|
94076
94090
|
return M(this, Sl).set(t, e[0].label);
|
|
94077
94091
|
}
|
|
94078
94092
|
};
|
|
94079
|
-
const w_t = "4.
|
|
94093
|
+
const w_t = "4.3.1", A_t = 1.4;
|
|
94080
94094
|
var Jm, td, Cl, J1, ed, rd, I3, iA, oA, T$;
|
|
94081
94095
|
class M_t {
|
|
94082
94096
|
// also have a callback for viewer events...
|