@eox/drawtools 0.13.5 → 0.14.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/dist/eox-drawtools.js +152 -140
- package/dist/eox-drawtools.umd.cjs +17 -13
- package/package.json +4 -4
- package/src/components/list.js +18 -2
- package/src/enums/draw.js +4 -1
- package/src/main.js +8 -0
- package/src/methods/list/select-deselect-feature.js +8 -3
- package/types/drawtools/src/components/list.d.ts +17 -0
- package/types/drawtools/src/components/list.d.ts.map +1 -1
- package/types/drawtools/src/enums/draw.d.ts +1 -0
- package/types/drawtools/src/main.d.ts +8 -0
- package/types/drawtools/src/main.d.ts.map +1 -1
- package/types/drawtools/src/methods/list/select-deselect-feature.d.ts.map +1 -1
package/dist/eox-drawtools.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var _n = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var Ue = (n) => {
|
|
3
3
|
throw TypeError(n);
|
|
4
4
|
};
|
|
5
5
|
var vn = (n, t, e) => t in n ? _n(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
6
|
-
var R = (n, t, e) => vn(n, typeof t != "symbol" ? t + "" : t, e), Xe = (n, t, e) => t.has(n) ||
|
|
7
|
-
var M = (n, t, e) => (Xe(n, t, "read from private field"), e ? e.call(n) : t.get(n)), F = (n, t, e) => t.has(n) ?
|
|
6
|
+
var R = (n, t, e) => vn(n, typeof t != "symbol" ? t + "" : t, e), Xe = (n, t, e) => t.has(n) || Ue("Cannot " + e);
|
|
7
|
+
var M = (n, t, e) => (Xe(n, t, "read from private field"), e ? e.call(n) : t.get(n)), F = (n, t, e) => t.has(n) ? Ue("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, e), $ = (n, t, e, i) => (Xe(n, t, "write to private field"), i ? i.call(n, e) : t.set(n, e), e);
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2019 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const
|
|
13
|
+
const Lt = globalThis, fe = Lt.ShadowRoot && (Lt.ShadyCSS === void 0 || Lt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, bi = Symbol(), Ye = /* @__PURE__ */ new WeakMap();
|
|
14
14
|
let Cn = class {
|
|
15
15
|
constructor(t, e, i) {
|
|
16
16
|
if (this._$cssResult$ = !0, i !== bi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -32,7 +32,7 @@ let Cn = class {
|
|
|
32
32
|
const wn = (n) => new Cn(typeof n == "string" ? n : n + "", void 0, bi), bn = (n, t) => {
|
|
33
33
|
if (fe) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
35
|
-
const i = document.createElement("style"), r =
|
|
35
|
+
const i = document.createElement("style"), r = Lt.litNonce;
|
|
36
36
|
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, n.appendChild(i);
|
|
37
37
|
}
|
|
38
38
|
}, Be = fe ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
|
@@ -45,7 +45,7 @@ const wn = (n) => new Cn(typeof n == "string" ? n : n + "", void 0, bi), bn = (n
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: En, defineProperty: xn, getOwnPropertyDescriptor: Pn, getOwnPropertyNames: Mn, getOwnPropertySymbols: Sn, getPrototypeOf: $n } = Object,
|
|
48
|
+
const { is: En, defineProperty: xn, getOwnPropertyDescriptor: Pn, getOwnPropertyNames: Mn, getOwnPropertySymbols: Sn, getPrototypeOf: $n } = Object, I = globalThis, Ve = I.trustedTypes, An = Ve ? Ve.emptyScript : "", Kt = I.reactiveElementPolyfillSupport, dt = (n, t) => n, se = { toAttribute(n, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
n = n ? An : null;
|
|
@@ -74,7 +74,7 @@ const { is: En, defineProperty: xn, getOwnPropertyDescriptor: Pn, getOwnProperty
|
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
76
|
} }, Ei = (n, t) => !En(n, t), ze = { attribute: !0, type: String, converter: se, reflect: !1, hasChanged: Ei };
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), I.litPropertyMetadata ?? (I.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
class tt extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
@@ -273,7 +273,7 @@ class tt extends HTMLElement {
|
|
|
273
273
|
firstUpdated(t) {
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
tt.elementStyles = [], tt.shadowRootOptions = { mode: "open" }, tt[dt("elementProperties")] = /* @__PURE__ */ new Map(), tt[dt("finalized")] = /* @__PURE__ */ new Map(),
|
|
276
|
+
tt.elementStyles = [], tt.shadowRootOptions = { mode: "open" }, tt[dt("elementProperties")] = /* @__PURE__ */ new Map(), tt[dt("finalized")] = /* @__PURE__ */ new Map(), Kt == null || Kt({ ReactiveElement: tt }), (I.reactiveElementVersions ?? (I.reactiveElementVersions = [])).push("2.0.4");
|
|
277
277
|
/**
|
|
278
278
|
* @license
|
|
279
279
|
* Copyright 2017 Google LLC
|
|
@@ -281,18 +281,18 @@ tt.elementStyles = [], tt.shadowRootOptions = { mode: "open" }, tt[dt("elementPr
|
|
|
281
281
|
*/
|
|
282
282
|
const gt = globalThis, Tt = gt.trustedTypes, Je = Tt ? Tt.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, xi = "$lit$", G = `lit$${Math.random().toFixed(9).slice(2)}$`, Pi = "?" + G, Fn = `<${Pi}>`, Y = document, ft = () => Y.createComment(""), pt = (n) => n === null || typeof n != "object" && typeof n != "function", pe = Array.isArray, Gn = (n) => pe(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Qt = `[
|
|
283
283
|
\f\r]`, ut = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, We = /-->/g, qe = />/g, T = RegExp(`>|${Qt}(?:([^\\s"'>=/]+)(${Qt}*=${Qt}*(?:[^
|
|
284
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ze = /'/g,
|
|
284
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ze = /'/g, De = /"/g, Mi = /^(?:script|style|textarea|title)$/i, In = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), H = In(1), ot = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), Ke = /* @__PURE__ */ new WeakMap(), O = Y.createTreeWalker(Y, 129);
|
|
285
285
|
function Si(n, t) {
|
|
286
286
|
if (!pe(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
287
287
|
return Je !== void 0 ? Je.createHTML(t) : t;
|
|
288
288
|
}
|
|
289
|
-
const
|
|
289
|
+
const Ln = (n, t) => {
|
|
290
290
|
const e = n.length - 1, i = [];
|
|
291
291
|
let r, s = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = ut;
|
|
292
292
|
for (let a = 0; a < e; a++) {
|
|
293
293
|
const l = n[a];
|
|
294
294
|
let h, c, u = -1, d = 0;
|
|
295
|
-
for (; d < l.length && (o.lastIndex = d, c = o.exec(l), c !== null); ) d = o.lastIndex, o === ut ? c[1] === "!--" ? o = We : c[1] !== void 0 ? o = qe : c[2] !== void 0 ? (Mi.test(c[2]) && (r = RegExp("</" + c[2], "g")), o = T) : c[3] !== void 0 && (o = T) : o === T ? c[0] === ">" ? (o = r ?? ut, u = -1) : c[1] === void 0 ? u = -2 : (u = o.lastIndex - c[2].length, h = c[1], o = c[3] === void 0 ? T : c[3] === '"' ?
|
|
295
|
+
for (; d < l.length && (o.lastIndex = d, c = o.exec(l), c !== null); ) d = o.lastIndex, o === ut ? c[1] === "!--" ? o = We : c[1] !== void 0 ? o = qe : c[2] !== void 0 ? (Mi.test(c[2]) && (r = RegExp("</" + c[2], "g")), o = T) : c[3] !== void 0 && (o = T) : o === T ? c[0] === ">" ? (o = r ?? ut, u = -1) : c[1] === void 0 ? u = -2 : (u = o.lastIndex - c[2].length, h = c[1], o = c[3] === void 0 ? T : c[3] === '"' ? De : Ze) : o === De || o === Ze ? o = T : o === We || o === qe ? o = ut : (o = T, r = void 0);
|
|
296
296
|
const g = o === T && n[a + 1].startsWith("/>") ? " " : "";
|
|
297
297
|
s += o === ut ? l + Fn : u >= 0 ? (i.push(h), l.slice(0, u) + xi + l.slice(u) + G + g) : l + G + (u === -2 ? a : g);
|
|
298
298
|
}
|
|
@@ -303,7 +303,7 @@ class yt {
|
|
|
303
303
|
let r;
|
|
304
304
|
this.parts = [];
|
|
305
305
|
let s = 0, o = 0;
|
|
306
|
-
const a = t.length - 1, l = this.parts, [h, c] =
|
|
306
|
+
const a = t.length - 1, l = this.parts, [h, c] = Ln(t, e);
|
|
307
307
|
if (this.el = yt.createElement(h, i), O.currentNode = this.el.content, e === 2 || e === 3) {
|
|
308
308
|
const u = this.el.content.firstChild;
|
|
309
309
|
u.replaceWith(...u.childNodes);
|
|
@@ -410,8 +410,8 @@ let Rn = class {
|
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
_$AC(t) {
|
|
413
|
-
let e =
|
|
414
|
-
return e === void 0 &&
|
|
413
|
+
let e = Ke.get(t.strings);
|
|
414
|
+
return e === void 0 && Ke.set(t.strings, e = new yt(t)), e;
|
|
415
415
|
}
|
|
416
416
|
k(t) {
|
|
417
417
|
pe(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -500,7 +500,7 @@ class kn {
|
|
|
500
500
|
}
|
|
501
501
|
const te = gt.litHtmlPolyfillSupport;
|
|
502
502
|
te == null || te(yt, ye), (gt.litHtmlVersions ?? (gt.litHtmlVersions = [])).push("3.2.1");
|
|
503
|
-
const
|
|
503
|
+
const jn = (n, t, e) => {
|
|
504
504
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
505
505
|
let r = i._$litPart$;
|
|
506
506
|
if (r === void 0) {
|
|
@@ -514,7 +514,7 @@ const Hn = (n, t, e) => {
|
|
|
514
514
|
* Copyright 2017 Google LLC
|
|
515
515
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
516
516
|
*/
|
|
517
|
-
class
|
|
517
|
+
class U extends tt {
|
|
518
518
|
constructor() {
|
|
519
519
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
520
520
|
}
|
|
@@ -525,7 +525,7 @@ class j extends tt {
|
|
|
525
525
|
}
|
|
526
526
|
update(t) {
|
|
527
527
|
const e = this.render();
|
|
528
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
528
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = jn(e, this.renderRoot, this.renderOptions);
|
|
529
529
|
}
|
|
530
530
|
connectedCallback() {
|
|
531
531
|
var t;
|
|
@@ -540,17 +540,17 @@ class j extends tt {
|
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
var wi;
|
|
543
|
-
|
|
543
|
+
U._$litElement$ = !0, U.finalized = !0, (wi = globalThis.litElementHydrateSupport) == null || wi.call(globalThis, { LitElement: U });
|
|
544
544
|
const ee = globalThis.litElementPolyfillSupport;
|
|
545
|
-
ee == null || ee({ LitElement:
|
|
545
|
+
ee == null || ee({ LitElement: U });
|
|
546
546
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
547
547
|
/**
|
|
548
548
|
* @license
|
|
549
549
|
* Copyright 2017 Google LLC
|
|
550
550
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
551
551
|
*/
|
|
552
|
-
const
|
|
553
|
-
let
|
|
552
|
+
const Hn = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
|
553
|
+
let Un = class {
|
|
554
554
|
constructor(t) {
|
|
555
555
|
}
|
|
556
556
|
get _$AU() {
|
|
@@ -577,7 +577,7 @@ const Xn = {}, Yn = (n, t = Xn) => n._$AH = t;
|
|
|
577
577
|
* Copyright 2021 Google LLC
|
|
578
578
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
579
579
|
*/
|
|
580
|
-
const Bn =
|
|
580
|
+
const Bn = Hn(class extends Un {
|
|
581
581
|
constructor() {
|
|
582
582
|
super(...arguments), this.key = C;
|
|
583
583
|
}
|
|
@@ -607,21 +607,24 @@ const Bn = Un(class extends jn {
|
|
|
607
607
|
n.stopPropagation();
|
|
608
608
|
const e = Number(n.target.getAttribute("index")), i = t.drawnFeatures[e];
|
|
609
609
|
t.drawLayer.getSource().removeFeature(i), t.drawnFeatures.splice(e, 1), t.requestUpdate();
|
|
610
|
-
}, Qe = {
|
|
610
|
+
}, Qe = {
|
|
611
|
+
duration: 750,
|
|
612
|
+
padding: [20, 20, 20, 20]
|
|
613
|
+
}, ti = {
|
|
611
614
|
type: "FeatureCollection",
|
|
612
615
|
features: []
|
|
613
616
|
}, Wn = (n, t) => {
|
|
614
|
-
const
|
|
615
|
-
if (
|
|
616
|
-
const
|
|
617
|
-
|
|
617
|
+
const { clickId: e, drawLayer: i, olMap: r, clickInteraction: s } = t, o = s.getId(n);
|
|
618
|
+
if (e === o) {
|
|
619
|
+
const l = i.getSource().getExtent();
|
|
620
|
+
r.getView().fit(l, Qe), s.highlightById([]);
|
|
618
621
|
} else {
|
|
619
|
-
const h = l.getExtent();
|
|
620
|
-
|
|
622
|
+
const l = t.eoxMap.projection || "EPSG:3857", h = t.eoxDrawTools.projection, c = n.clone().getGeometry().transform(h, l).getExtent();
|
|
623
|
+
s.highlightById([o]), r.getView().fit(c, Qe);
|
|
621
624
|
}
|
|
622
625
|
t.requestUpdate();
|
|
623
626
|
}, qn = "ul.list-wrap { padding: 0;}ul.list-wrap li:hover,ul.list-wrap li.selected { background: var(--secondary-bg-color-hover);}ul.list-wrap li { list-style: none; padding: 4px;}ul.list-wrap li { border-bottom: 1.2px solid var(--secondary-color);}ul.list-wrap li:first-child { border-top: 1.2px solid var(--secondary-color);}ul.list-wrap li .list { width: 100%; align-items: center; justify-content: space-between; display: flex; align-items: center; cursor: pointer; font-size: small; gap: 10px;}ul.list-wrap li .list span { display: flex; align-items: center; cursor: pointer; font-size: small; flex-grow: 1;}";
|
|
624
|
-
class Ai extends
|
|
627
|
+
class Ai extends U {
|
|
625
628
|
constructor() {
|
|
626
629
|
super();
|
|
627
630
|
/**
|
|
@@ -640,7 +643,7 @@ class Ai extends j {
|
|
|
640
643
|
* @type string | number
|
|
641
644
|
*/
|
|
642
645
|
R(this, "clickId");
|
|
643
|
-
this.eoxMap = null, this.olMap = null, this.draw = null, this.drawLayer = null, this.drawnFeatures = [], this.modify = null, this.unstyled = !1;
|
|
646
|
+
this.eoxDrawTools = null, this.eoxMap = null, this.olMap = null, this.draw = null, this.drawLayer = null, this.drawnFeatures = [], this.featureName = "Feature", this.modify = null, this.unstyled = !1;
|
|
644
647
|
}
|
|
645
648
|
/**
|
|
646
649
|
* Handles the deletion of an individual feature.
|
|
@@ -680,16 +683,18 @@ class Ai extends j {
|
|
|
680
683
|
}
|
|
681
684
|
render() {
|
|
682
685
|
var e, i;
|
|
683
|
-
return this.hoverId = (e = this.hoverInteraction) == null ? void 0 : e.selectedFids[0], this.clickId = (i = this.clickInteraction) == null ? void 0 : i.selectedFids[0],
|
|
686
|
+
return this.hoverId = (e = this.hoverInteraction) == null ? void 0 : e.selectedFids[0], this.clickId = (i = this.clickInteraction) == null ? void 0 : i.selectedFids[0], H`
|
|
684
687
|
<style>
|
|
685
688
|
${!this.unstyled && qn}
|
|
686
689
|
</style>
|
|
687
690
|
<ul class="list-wrap">
|
|
688
691
|
${this.drawnFeatures.map((r, s) => {
|
|
689
|
-
const o = s + 1, a =
|
|
692
|
+
const o = s + 1, a = Object.values(
|
|
693
|
+
this.eoxMap.selectInteractions
|
|
694
|
+
)[0].getId(r), l = this.hoverId === a, h = this.clickId === a;
|
|
690
695
|
return Bn(
|
|
691
696
|
o,
|
|
692
|
-
|
|
697
|
+
H`
|
|
693
698
|
<li
|
|
694
699
|
class="${l || h ? "selected" : C}"
|
|
695
700
|
@mouseover=${() => this._handleHoverFeature(a)}
|
|
@@ -699,7 +704,9 @@ class Ai extends j {
|
|
|
699
704
|
class="list"
|
|
700
705
|
@click="${() => this._handleFeatureSelectAndDeselect(r)}"
|
|
701
706
|
>
|
|
702
|
-
<span class="title"
|
|
707
|
+
<span class="title"
|
|
708
|
+
>${this.featureName} ${o}</span
|
|
709
|
+
>
|
|
703
710
|
<button
|
|
704
711
|
index=${s}
|
|
705
712
|
class="icon smallest discard"
|
|
@@ -717,11 +724,13 @@ class Ai extends j {
|
|
|
717
724
|
}
|
|
718
725
|
}
|
|
719
726
|
R(Ai, "properties", {
|
|
727
|
+
eoxDrawTools: { attribute: !1, state: !0 },
|
|
720
728
|
eoxMap: { attribute: !1, state: !0 },
|
|
721
729
|
olMap: { attribute: !1, state: !0 },
|
|
722
730
|
draw: { attribute: !1, state: !0 },
|
|
723
731
|
drawLayer: { attribute: !1, state: !0 },
|
|
724
732
|
drawnFeatures: { attribute: !1, state: !0, type: Array },
|
|
733
|
+
featureName: { attribute: !1, state: !0, type: String },
|
|
725
734
|
modify: { attribute: !1, state: !0 },
|
|
726
735
|
unstyled: { type: Boolean }
|
|
727
736
|
});
|
|
@@ -729,7 +738,7 @@ customElements.define("eox-drawtools-list", Ai);
|
|
|
729
738
|
const Zn = (n) => {
|
|
730
739
|
const { multipleFeatures: t, drawnFeatures: e, currentlyDrawing: i } = n, r = !t && (e == null ? void 0 : e.length) > 0 || i, s = !(e != null && e.length) && !i;
|
|
731
740
|
return { drawDisabled: r, discardDisabled: s };
|
|
732
|
-
},
|
|
741
|
+
}, Dn = "button,.button { /* TODO: why does this only work here and not from :root? */ --primary-color: #004170; --primary-color-hover: #004170cc; --error-color: #ff5252; display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0px;}", Kn = 'textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}input,input[type="text"],input[type="url"],input[type="email"],input[type="password"],input[type="text"],input[type="number"],input[type="search"],input[type="tel"],select { box-sizing: border-box; width: 100%; margin-top: 0.5rem; margin-bottom: 0.5rem; padding: 5px 7px; border-radius: 4px; border: 1px solid #0004; background-color: var(--background-color);}';
|
|
733
742
|
function Qn(n) {
|
|
734
743
|
navigator.clipboard.writeText(n).then(
|
|
735
744
|
function() {
|
|
@@ -805,11 +814,11 @@ function Gi(n) {
|
|
|
805
814
|
return (!e || this !== i || !nr(r, e)) && (i = this, e = r, t = n.apply(this, arguments)), t;
|
|
806
815
|
};
|
|
807
816
|
}
|
|
808
|
-
function
|
|
817
|
+
function Ii(n) {
|
|
809
818
|
for (const t in n)
|
|
810
819
|
delete n[t];
|
|
811
820
|
}
|
|
812
|
-
function
|
|
821
|
+
function Li(n) {
|
|
813
822
|
let t;
|
|
814
823
|
for (t in n)
|
|
815
824
|
return !1;
|
|
@@ -897,7 +906,7 @@ class rr extends er {
|
|
|
897
906
|
* @override
|
|
898
907
|
*/
|
|
899
908
|
disposeInternal() {
|
|
900
|
-
this.listeners_ &&
|
|
909
|
+
this.listeners_ && Ii(this.listeners_);
|
|
901
910
|
}
|
|
902
911
|
/**
|
|
903
912
|
* Get the listeners for a specified event type. Listeners are returned in the
|
|
@@ -949,7 +958,7 @@ function ii(n, t, e, i) {
|
|
|
949
958
|
return mt(n, t, e, i, !0);
|
|
950
959
|
}
|
|
951
960
|
function Nt(n) {
|
|
952
|
-
n && n.target && (n.target.removeEventListener(n.type, n.listener),
|
|
961
|
+
n && n.target && (n.target.removeEventListener(n.type, n.listener), Ii(n));
|
|
953
962
|
}
|
|
954
963
|
class Yt extends rr {
|
|
955
964
|
constructor() {
|
|
@@ -1178,7 +1187,7 @@ class Ti extends Yt {
|
|
|
1178
1187
|
unset(t, e) {
|
|
1179
1188
|
if (this.values_ && t in this.values_) {
|
|
1180
1189
|
const i = this.values_[t];
|
|
1181
|
-
delete this.values_[t],
|
|
1190
|
+
delete this.values_[t], Li(this.values_) && (this.values_ = null), e || this.notify(t, i);
|
|
1182
1191
|
}
|
|
1183
1192
|
}
|
|
1184
1193
|
}
|
|
@@ -1393,12 +1402,12 @@ function ki(n, t) {
|
|
|
1393
1402
|
}
|
|
1394
1403
|
function Ce(n, t, e, i, r) {
|
|
1395
1404
|
const s = ve(r);
|
|
1396
|
-
return
|
|
1405
|
+
return ji(s, n, t, e, i);
|
|
1397
1406
|
}
|
|
1398
1407
|
function cr(n, t) {
|
|
1399
1408
|
return t[0] < n[0] && (n[0] = t[0]), t[2] > n[2] && (n[2] = t[2]), t[1] < n[1] && (n[1] = t[1]), t[3] > n[3] && (n[3] = t[3]), n;
|
|
1400
1409
|
}
|
|
1401
|
-
function
|
|
1410
|
+
function ji(n, t, e, i, r) {
|
|
1402
1411
|
for (; e < i; e += r)
|
|
1403
1412
|
ur(n, t[e], t[e + 1]);
|
|
1404
1413
|
return n;
|
|
@@ -1615,7 +1624,7 @@ class be {
|
|
|
1615
1624
|
}
|
|
1616
1625
|
}
|
|
1617
1626
|
const St = 6378137, et = Math.PI * St, br = [-et, -et, et, et], Er = [-180, -85, 180, 85], Ft = St * Math.log(Math.tan(Math.PI / 2));
|
|
1618
|
-
class
|
|
1627
|
+
class K extends be {
|
|
1619
1628
|
/**
|
|
1620
1629
|
* @param {string} code Code.
|
|
1621
1630
|
*/
|
|
@@ -1633,12 +1642,12 @@ class D extends be {
|
|
|
1633
1642
|
}
|
|
1634
1643
|
}
|
|
1635
1644
|
const oi = [
|
|
1636
|
-
new
|
|
1637
|
-
new
|
|
1638
|
-
new
|
|
1639
|
-
new
|
|
1640
|
-
new
|
|
1641
|
-
new
|
|
1645
|
+
new K("EPSG:3857"),
|
|
1646
|
+
new K("EPSG:102100"),
|
|
1647
|
+
new K("EPSG:102113"),
|
|
1648
|
+
new K("EPSG:900913"),
|
|
1649
|
+
new K("http://www.opengis.net/def/crs/EPSG/0/3857"),
|
|
1650
|
+
new K("http://www.opengis.net/gml/srs/epsg.xml#3857")
|
|
1642
1651
|
];
|
|
1643
1652
|
function xr(n, t, e, i) {
|
|
1644
1653
|
const r = n.length;
|
|
@@ -1699,34 +1708,34 @@ function _t(n, t, e) {
|
|
|
1699
1708
|
function ie(n, t) {
|
|
1700
1709
|
return n in it && t in it[n] ? it[n][t] : null;
|
|
1701
1710
|
}
|
|
1702
|
-
const kt = 0.9996, P = 669438e-8, Vt = P * P, zt = Vt * P, k = P / (1 - P), hi = Math.sqrt(1 - P), ht = (1 - hi) / (1 + hi),
|
|
1711
|
+
const kt = 0.9996, P = 669438e-8, Vt = P * P, zt = Vt * P, k = P / (1 - P), hi = Math.sqrt(1 - P), ht = (1 - hi) / (1 + hi), Hi = ht * ht, Ee = Hi * ht, xe = Ee * ht, Ui = xe * ht, Xi = 1 - P / 4 - 3 * Vt / 64 - 5 * zt / 256, Fr = 3 * P / 8 + 3 * Vt / 32 + 45 * zt / 1024, Gr = 15 * Vt / 256 + 45 * zt / 1024, Ir = 35 * zt / 3072, Lr = 3 / 2 * ht - 27 / 32 * Ee + 269 / 512 * Ui, Rr = 21 / 16 * Hi - 55 / 32 * xe, Tr = 151 / 96 * Ee - 417 / 128 * Ui, Nr = 1097 / 512 * xe, jt = 6378137;
|
|
1703
1712
|
function Or(n, t, e) {
|
|
1704
|
-
const i = n - 5e5, o = (e.north ? t : t - 1e7) / kt / (
|
|
1705
|
-
let
|
|
1706
|
-
return
|
|
1707
|
-
|
|
1713
|
+
const i = n - 5e5, o = (e.north ? t : t - 1e7) / kt / (jt * Xi), a = o + Lr * Math.sin(2 * o) + Rr * Math.sin(4 * o) + Tr * Math.sin(6 * o) + Nr * Math.sin(8 * o), l = Math.sin(a), h = l * l, c = Math.cos(a), u = l / c, d = u * u, g = d * d, f = 1 - P * h, p = Math.sqrt(1 - P * h), _ = jt / p, b = (1 - P) / f, v = k * c ** 2, S = v * v, E = i / (_ * kt), L = E * E, ct = L * E, je = ct * E, He = je * E, yn = He * E, mn = a - u / b * (L / 2 - je / 24 * (5 + 3 * d + 10 * v - 4 * S - 9 * k)) + yn / 720 * (61 + 90 * d + 298 * v + 45 * g - 252 * k - 3 * S);
|
|
1714
|
+
let Dt = (E - ct / 6 * (1 + 2 * d + v) + He / 120 * (5 - 2 * v + 28 * d - 3 * S + 8 * k + 24 * g)) / c;
|
|
1715
|
+
return Dt = oe(
|
|
1716
|
+
Dt + Rt(Yi(e.number)),
|
|
1708
1717
|
-Math.PI,
|
|
1709
1718
|
Math.PI
|
|
1710
|
-
), [si(
|
|
1719
|
+
), [si(Dt), si(mn)];
|
|
1711
1720
|
}
|
|
1712
|
-
const ci = -80, ui = 84, kr = -180,
|
|
1713
|
-
function
|
|
1714
|
-
n = oe(n, kr,
|
|
1715
|
-
const i = Rt(t), r = Math.sin(i), s = Math.cos(i), o = r / s, a = o * o, l = a * a, h = Rt(n), c = Yi(e.number), u = Rt(c), d =
|
|
1721
|
+
const ci = -80, ui = 84, kr = -180, jr = 180;
|
|
1722
|
+
function Hr(n, t, e) {
|
|
1723
|
+
n = oe(n, kr, jr), t < ci ? t = ci : t > ui && (t = ui);
|
|
1724
|
+
const i = Rt(t), r = Math.sin(i), s = Math.cos(i), o = r / s, a = o * o, l = a * a, h = Rt(n), c = Yi(e.number), u = Rt(c), d = jt / Math.sqrt(1 - P * r ** 2), g = k * s ** 2, f = s * oe(h - u, -Math.PI, Math.PI), p = f * f, _ = p * f, b = _ * f, v = b * f, S = v * f, E = jt * (Xi * i - Fr * Math.sin(2 * i) + Gr * Math.sin(4 * i) - Ir * Math.sin(6 * i)), L = kt * d * (f + _ / 6 * (1 - a + g) + v / 120 * (5 - 18 * a + l + 72 * g - 58 * k)) + 5e5;
|
|
1716
1725
|
let ct = kt * (E + d * o * (p / 2 + b / 24 * (5 - a + 9 * g + 4 * g ** 2) + S / 720 * (61 - 58 * a + l + 600 * g - 330 * k)));
|
|
1717
|
-
return e.north || (ct += 1e7), [
|
|
1726
|
+
return e.north || (ct += 1e7), [L, ct];
|
|
1718
1727
|
}
|
|
1719
1728
|
function Yi(n) {
|
|
1720
1729
|
return (n - 1) * 6 - 180 + 3;
|
|
1721
1730
|
}
|
|
1722
|
-
const
|
|
1731
|
+
const Ur = [
|
|
1723
1732
|
/^EPSG:(\d+)$/,
|
|
1724
1733
|
/^urn:ogc:def:crs:EPSG::(\d+)$/,
|
|
1725
1734
|
/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/
|
|
1726
1735
|
];
|
|
1727
1736
|
function Bi(n) {
|
|
1728
1737
|
let t = 0;
|
|
1729
|
-
for (const r of
|
|
1738
|
+
for (const r of Ur) {
|
|
1730
1739
|
const s = n.match(r);
|
|
1731
1740
|
if (s) {
|
|
1732
1741
|
t = parseInt(s[1]);
|
|
@@ -1755,7 +1764,7 @@ function Xr(n) {
|
|
|
1755
1764
|
function Yr(n) {
|
|
1756
1765
|
const t = Bi(n.getCode());
|
|
1757
1766
|
return t ? {
|
|
1758
|
-
forward: di(
|
|
1767
|
+
forward: di(Hr, t),
|
|
1759
1768
|
inverse: di(Or, t)
|
|
1760
1769
|
} : null;
|
|
1761
1770
|
}
|
|
@@ -1890,7 +1899,7 @@ function Zr(n, t, e, i, r, s, o) {
|
|
|
1890
1899
|
}
|
|
1891
1900
|
return o && o.length != u && (o.length = u), o;
|
|
1892
1901
|
}
|
|
1893
|
-
function
|
|
1902
|
+
function Dr(n, t, e, i, r, s, o, a) {
|
|
1894
1903
|
a = a || [];
|
|
1895
1904
|
const l = o[0], h = o[1];
|
|
1896
1905
|
let c = 0;
|
|
@@ -1902,7 +1911,7 @@ function Kr(n, t, e, i, r, s, o, a) {
|
|
|
1902
1911
|
}
|
|
1903
1912
|
return a && a.length != c && (a.length = c), a;
|
|
1904
1913
|
}
|
|
1905
|
-
function
|
|
1914
|
+
function Kr(n, t, e, i, r, s, o) {
|
|
1906
1915
|
o = o || [];
|
|
1907
1916
|
let a = 0;
|
|
1908
1917
|
for (let l = t; l < e; l += i) {
|
|
@@ -2254,7 +2263,7 @@ class Z extends qi {
|
|
|
2254
2263
|
e = /** @type {Array<unknown>} */
|
|
2255
2264
|
e[0];
|
|
2256
2265
|
}
|
|
2257
|
-
r = e.length, t =
|
|
2266
|
+
r = e.length, t = D(r);
|
|
2258
2267
|
}
|
|
2259
2268
|
this.layout = t, this.stride = r;
|
|
2260
2269
|
}
|
|
@@ -2314,7 +2323,7 @@ class Z extends qi {
|
|
|
2314
2323
|
const r = this.getFlatCoordinates();
|
|
2315
2324
|
if (r) {
|
|
2316
2325
|
const s = this.getStride();
|
|
2317
|
-
|
|
2326
|
+
Dr(
|
|
2318
2327
|
r,
|
|
2319
2328
|
0,
|
|
2320
2329
|
r.length,
|
|
@@ -2338,7 +2347,7 @@ class Z extends qi {
|
|
|
2338
2347
|
const i = this.getFlatCoordinates();
|
|
2339
2348
|
if (i) {
|
|
2340
2349
|
const r = this.getStride();
|
|
2341
|
-
|
|
2350
|
+
Kr(
|
|
2342
2351
|
i,
|
|
2343
2352
|
0,
|
|
2344
2353
|
i.length,
|
|
@@ -2350,7 +2359,7 @@ class Z extends qi {
|
|
|
2350
2359
|
}
|
|
2351
2360
|
}
|
|
2352
2361
|
}
|
|
2353
|
-
function
|
|
2362
|
+
function D(n) {
|
|
2354
2363
|
let t;
|
|
2355
2364
|
return n == 2 ? t = "XY" : n == 3 ? t = "XYZ" : n == 4 && (t = "XYZM"), /** @type {import("./Geometry.js").GeometryLayout} */
|
|
2356
2365
|
t;
|
|
@@ -2402,7 +2411,7 @@ function Zi(n, t, e, i, r) {
|
|
|
2402
2411
|
}
|
|
2403
2412
|
return r.length = s, r;
|
|
2404
2413
|
}
|
|
2405
|
-
function
|
|
2414
|
+
function Di(n, t, e, i) {
|
|
2406
2415
|
const r = [];
|
|
2407
2416
|
let s = _e();
|
|
2408
2417
|
for (let o = 0, a = e.length; o < a; ++o) {
|
|
@@ -2424,7 +2433,7 @@ function es(n, t, e, i, r) {
|
|
|
2424
2433
|
* @return {boolean} Contains (x, y).
|
|
2425
2434
|
*/
|
|
2426
2435
|
function(o) {
|
|
2427
|
-
return !
|
|
2436
|
+
return !j(
|
|
2428
2437
|
n,
|
|
2429
2438
|
t,
|
|
2430
2439
|
e,
|
|
@@ -2435,7 +2444,7 @@ function es(n, t, e, i, r) {
|
|
|
2435
2444
|
}
|
|
2436
2445
|
);
|
|
2437
2446
|
}
|
|
2438
|
-
function
|
|
2447
|
+
function j(n, t, e, i, r, s) {
|
|
2439
2448
|
let o = 0, a = n[e - i], l = n[e - i + 1];
|
|
2440
2449
|
for (; t < e; t += i) {
|
|
2441
2450
|
const h = n[t], c = n[t + 1];
|
|
@@ -2444,10 +2453,10 @@ function H(n, t, e, i, r, s) {
|
|
|
2444
2453
|
return o !== 0;
|
|
2445
2454
|
}
|
|
2446
2455
|
function Me(n, t, e, i, r, s) {
|
|
2447
|
-
if (e.length === 0 || !
|
|
2456
|
+
if (e.length === 0 || !j(n, t, e[0], i, r, s))
|
|
2448
2457
|
return !1;
|
|
2449
2458
|
for (let o = 1, a = e.length; o < a; ++o)
|
|
2450
|
-
if (
|
|
2459
|
+
if (j(n, e[o - 1], e[o], i, r, s))
|
|
2451
2460
|
return !1;
|
|
2452
2461
|
return !0;
|
|
2453
2462
|
}
|
|
@@ -2478,7 +2487,7 @@ function Se(n, t, e, i, r, s, o) {
|
|
|
2478
2487
|
}
|
|
2479
2488
|
return isNaN(_) && (_ = r[s]), o ? (o.push(_, f, b), o) : [_, f, b];
|
|
2480
2489
|
}
|
|
2481
|
-
function
|
|
2490
|
+
function Ki(n, t, e, i, r) {
|
|
2482
2491
|
let s = [];
|
|
2483
2492
|
for (let o = 0, a = e.length; o < a; ++o) {
|
|
2484
2493
|
const l = e[o];
|
|
@@ -2494,7 +2503,7 @@ function Di(n, t, e, i, r) {
|
|
|
2494
2503
|
}
|
|
2495
2504
|
return s;
|
|
2496
2505
|
}
|
|
2497
|
-
function
|
|
2506
|
+
function Ht(n, t, e, i, r, s, o) {
|
|
2498
2507
|
let a, l;
|
|
2499
2508
|
const h = (e - t) / i;
|
|
2500
2509
|
if (h === 1)
|
|
@@ -2624,7 +2633,7 @@ function Qi(n, t, e, i, r) {
|
|
|
2624
2633
|
}
|
|
2625
2634
|
return !0;
|
|
2626
2635
|
}
|
|
2627
|
-
function
|
|
2636
|
+
function Ut(n, t, e, i, r) {
|
|
2628
2637
|
r = r !== void 0 ? r : !1;
|
|
2629
2638
|
for (let s = 0, o = e.length; s < o; ++s) {
|
|
2630
2639
|
const a = e[s], l = $e(
|
|
@@ -2639,7 +2648,7 @@ function jt(n, t, e, i, r) {
|
|
|
2639
2648
|
}
|
|
2640
2649
|
function ue(n, t, e, i, r) {
|
|
2641
2650
|
for (let s = 0, o = e.length; s < o; ++s)
|
|
2642
|
-
t =
|
|
2651
|
+
t = Ut(
|
|
2643
2652
|
n,
|
|
2644
2653
|
t,
|
|
2645
2654
|
e[s],
|
|
@@ -2680,8 +2689,8 @@ function Wt(n, t, e, i, r, s, o) {
|
|
|
2680
2689
|
let g = 0;
|
|
2681
2690
|
const f = n[d], p = n[d + 1], _ = n[u], b = n[u + 1];
|
|
2682
2691
|
for (let v = d + i; v < u; v += i) {
|
|
2683
|
-
const S = n[v], E = n[v + 1],
|
|
2684
|
-
|
|
2692
|
+
const S = n[v], E = n[v + 1], L = Cr(S, E, f, p, _, b);
|
|
2693
|
+
L > g && (c = v, g = L);
|
|
2685
2694
|
}
|
|
2686
2695
|
g > r && (l[(c - t) / i] = 1, d + i < c && h.push(d, c), c + i < u && h.push(c, u));
|
|
2687
2696
|
}
|
|
@@ -3064,7 +3073,7 @@ function Ge(n, t, e, i, r) {
|
|
|
3064
3073
|
}
|
|
3065
3074
|
return r;
|
|
3066
3075
|
}
|
|
3067
|
-
function
|
|
3076
|
+
function Ie(n, t, e, i, r) {
|
|
3068
3077
|
for (let s = 0, o = e.length; s < o; ++s) {
|
|
3069
3078
|
const a = e[s];
|
|
3070
3079
|
r = Ge(n, t, a, i, r), t = a;
|
|
@@ -3074,11 +3083,11 @@ function Le(n, t, e, i, r) {
|
|
|
3074
3083
|
function hs(n, t, e, i, r) {
|
|
3075
3084
|
for (let s = 0, o = e.length; s < o; ++s) {
|
|
3076
3085
|
const a = e[s];
|
|
3077
|
-
r =
|
|
3086
|
+
r = Ie(n, t, a, i, r), t = a[a.length - 1];
|
|
3078
3087
|
}
|
|
3079
3088
|
return r;
|
|
3080
3089
|
}
|
|
3081
|
-
function
|
|
3090
|
+
function Le(n, t, e, i, r, s, o, a, l, h, c) {
|
|
3082
3091
|
if (t == e)
|
|
3083
3092
|
return h;
|
|
3084
3093
|
let u, d;
|
|
@@ -3134,7 +3143,7 @@ function Re(n, t, e, i, r, s, o, a, l, h, c) {
|
|
|
3134
3143
|
c = c || [NaN, NaN];
|
|
3135
3144
|
for (let u = 0, d = e.length; u < d; ++u) {
|
|
3136
3145
|
const g = e[u];
|
|
3137
|
-
h =
|
|
3146
|
+
h = Le(
|
|
3138
3147
|
n,
|
|
3139
3148
|
t,
|
|
3140
3149
|
g,
|
|
@@ -3250,7 +3259,7 @@ class vt extends Z {
|
|
|
3250
3259
|
this.stride,
|
|
3251
3260
|
0
|
|
3252
3261
|
)
|
|
3253
|
-
), this.maxDeltaRevision_ = this.getRevision()),
|
|
3262
|
+
), this.maxDeltaRevision_ = this.getRevision()), Le(
|
|
3254
3263
|
this.flatCoordinates,
|
|
3255
3264
|
0,
|
|
3256
3265
|
this.flatCoordinates.length,
|
|
@@ -3354,7 +3363,7 @@ function rn(n, t, e, i, r) {
|
|
|
3354
3363
|
return !1;
|
|
3355
3364
|
}
|
|
3356
3365
|
function Zt(n, t, e, i, r, s) {
|
|
3357
|
-
return s = s ??
|
|
3366
|
+
return s = s ?? ji(_e(), n, t, e, i), mr(r, s) ? s[0] >= r[0] && s[2] <= r[2] || s[1] >= r[1] && s[3] <= r[3] ? !0 : rn(
|
|
3358
3367
|
n,
|
|
3359
3368
|
t,
|
|
3360
3369
|
e,
|
|
@@ -3379,28 +3388,28 @@ function ds(n, t, e, i, r) {
|
|
|
3379
3388
|
return !1;
|
|
3380
3389
|
}
|
|
3381
3390
|
function gs(n, t, e, i, r) {
|
|
3382
|
-
return !!(Zt(n, t, e, i, r) ||
|
|
3391
|
+
return !!(Zt(n, t, e, i, r) || j(
|
|
3383
3392
|
n,
|
|
3384
3393
|
t,
|
|
3385
3394
|
e,
|
|
3386
3395
|
i,
|
|
3387
3396
|
r[0],
|
|
3388
3397
|
r[1]
|
|
3389
|
-
) ||
|
|
3398
|
+
) || j(
|
|
3390
3399
|
n,
|
|
3391
3400
|
t,
|
|
3392
3401
|
e,
|
|
3393
3402
|
i,
|
|
3394
3403
|
r[0],
|
|
3395
3404
|
r[3]
|
|
3396
|
-
) ||
|
|
3405
|
+
) || j(
|
|
3397
3406
|
n,
|
|
3398
3407
|
t,
|
|
3399
3408
|
e,
|
|
3400
3409
|
i,
|
|
3401
3410
|
r[2],
|
|
3402
3411
|
r[1]
|
|
3403
|
-
) ||
|
|
3412
|
+
) || j(
|
|
3404
3413
|
n,
|
|
3405
3414
|
t,
|
|
3406
3415
|
e,
|
|
@@ -3503,7 +3512,7 @@ class V extends Z {
|
|
|
3503
3512
|
this.stride,
|
|
3504
3513
|
0
|
|
3505
3514
|
)
|
|
3506
|
-
), this.maxDeltaRevision_ = this.getRevision()),
|
|
3515
|
+
), this.maxDeltaRevision_ = this.getRevision()), Le(
|
|
3507
3516
|
this.flatCoordinates,
|
|
3508
3517
|
0,
|
|
3509
3518
|
this.flatCoordinates.length,
|
|
@@ -3585,7 +3594,7 @@ class V extends Z {
|
|
|
3585
3594
|
* @api
|
|
3586
3595
|
*/
|
|
3587
3596
|
getCoordinateAt(t, e) {
|
|
3588
|
-
return
|
|
3597
|
+
return Ht(
|
|
3589
3598
|
this.flatCoordinates,
|
|
3590
3599
|
0,
|
|
3591
3600
|
this.flatCoordinates.length,
|
|
@@ -3744,7 +3753,7 @@ class Ct extends Z {
|
|
|
3744
3753
|
*/
|
|
3745
3754
|
closestPointXY(t, e, i, r) {
|
|
3746
3755
|
return r < q(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
|
|
3747
|
-
|
|
3756
|
+
Ie(
|
|
3748
3757
|
this.flatCoordinates,
|
|
3749
3758
|
0,
|
|
3750
3759
|
this.ends_,
|
|
@@ -3857,7 +3866,7 @@ class Ct extends Z {
|
|
|
3857
3866
|
let i = 0;
|
|
3858
3867
|
const r = this.ends_, s = this.stride;
|
|
3859
3868
|
for (let o = 0, a = r.length; o < a; ++o) {
|
|
3860
|
-
const l = r[o], h =
|
|
3869
|
+
const l = r[o], h = Ht(
|
|
3861
3870
|
e,
|
|
3862
3871
|
i,
|
|
3863
3872
|
l,
|
|
@@ -4229,7 +4238,7 @@ class J extends Z {
|
|
|
4229
4238
|
*/
|
|
4230
4239
|
closestPointXY(t, e, i, r) {
|
|
4231
4240
|
return r < q(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
|
|
4232
|
-
|
|
4241
|
+
Ie(
|
|
4233
4242
|
this.flatCoordinates,
|
|
4234
4243
|
0,
|
|
4235
4244
|
this.ends_,
|
|
@@ -4294,7 +4303,7 @@ class J extends Z {
|
|
|
4294
4303
|
*/
|
|
4295
4304
|
getCoordinates(t) {
|
|
4296
4305
|
let e;
|
|
4297
|
-
return t !== void 0 ? (e = this.getOrientedFlatCoordinates().slice(),
|
|
4306
|
+
return t !== void 0 ? (e = this.getOrientedFlatCoordinates().slice(), Ut(e, 0, this.ends_, this.stride, t)) : e = this.flatCoordinates, Te(e, 0, this.ends_, this.stride);
|
|
4298
4307
|
}
|
|
4299
4308
|
/**
|
|
4300
4309
|
* @return {Array<number>} Ends.
|
|
@@ -4383,7 +4392,7 @@ class J extends Z {
|
|
|
4383
4392
|
getOrientedFlatCoordinates() {
|
|
4384
4393
|
if (this.orientedRevision_ != this.getRevision()) {
|
|
4385
4394
|
const t = this.flatCoordinates;
|
|
4386
|
-
Ae(t, 0, this.ends_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length =
|
|
4395
|
+
Ae(t, 0, this.ends_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = Ut(
|
|
4387
4396
|
this.orientedFlatCoordinates_,
|
|
4388
4397
|
0,
|
|
4389
4398
|
this.ends_,
|
|
@@ -4622,13 +4631,13 @@ class wt extends Z {
|
|
|
4622
4631
|
*/
|
|
4623
4632
|
getFlatInteriorPoints() {
|
|
4624
4633
|
if (this.flatInteriorPointsRevision_ != this.getRevision()) {
|
|
4625
|
-
const t =
|
|
4634
|
+
const t = Di(
|
|
4626
4635
|
this.flatCoordinates,
|
|
4627
4636
|
0,
|
|
4628
4637
|
this.endss_,
|
|
4629
4638
|
this.stride
|
|
4630
4639
|
);
|
|
4631
|
-
this.flatInteriorPoints_ =
|
|
4640
|
+
this.flatInteriorPoints_ = Ki(
|
|
4632
4641
|
this.getOrientedFlatCoordinates(),
|
|
4633
4642
|
0,
|
|
4634
4643
|
this.endss_,
|
|
@@ -4843,8 +4852,8 @@ class W {
|
|
|
4843
4852
|
*/
|
|
4844
4853
|
getFlatInteriorPoints() {
|
|
4845
4854
|
if (!this.flatInteriorPoints_) {
|
|
4846
|
-
const t = ss(this.flatCoordinates_, this.ends_), e =
|
|
4847
|
-
this.flatInteriorPoints_ =
|
|
4855
|
+
const t = ss(this.flatCoordinates_, this.ends_), e = Di(this.flatCoordinates_, 0, t, 2);
|
|
4856
|
+
this.flatInteriorPoints_ = Ki(
|
|
4848
4857
|
this.flatCoordinates_,
|
|
4849
4858
|
0,
|
|
4850
4859
|
t,
|
|
@@ -4858,7 +4867,7 @@ class W {
|
|
|
4858
4867
|
* @return {Array<number>} Flat midpoint.
|
|
4859
4868
|
*/
|
|
4860
4869
|
getFlatMidpoint() {
|
|
4861
|
-
return this.flatMidpoints_ || (this.flatMidpoints_ =
|
|
4870
|
+
return this.flatMidpoints_ || (this.flatMidpoints_ = Ht(
|
|
4862
4871
|
this.flatCoordinates_,
|
|
4863
4872
|
0,
|
|
4864
4873
|
this.flatCoordinates_.length,
|
|
@@ -4879,7 +4888,7 @@ class W {
|
|
|
4879
4888
|
this.ends_
|
|
4880
4889
|
);
|
|
4881
4890
|
for (let r = 0, s = i.length; r < s; ++r) {
|
|
4882
|
-
const o = i[r], a =
|
|
4891
|
+
const o = i[r], a = Ht(t, e, o, 2, 0.5);
|
|
4883
4892
|
A(this.flatMidpoints_, a), e = o;
|
|
4884
4893
|
}
|
|
4885
4894
|
}
|
|
@@ -5239,7 +5248,7 @@ const ys = {
|
|
|
5239
5248
|
MultiPolygon: wt
|
|
5240
5249
|
};
|
|
5241
5250
|
function ms(n, t, e) {
|
|
5242
|
-
return Array.isArray(t[0]) ? (Qi(n, 0, t, e) || (n = n.slice(), ue(n, 0, t, e)), n) : (Ae(n, 0, t, e) || (n = n.slice(),
|
|
5251
|
+
return Array.isArray(t[0]) ? (Qi(n, 0, t, e) || (n = n.slice(), ue(n, 0, t, e)), n) : (Ae(n, 0, t, e) || (n = n.slice(), Ut(n, 0, t, e)), n);
|
|
5243
5252
|
}
|
|
5244
5253
|
function an(n, t) {
|
|
5245
5254
|
var s;
|
|
@@ -5593,7 +5602,7 @@ class vs extends _s {
|
|
|
5593
5602
|
if (r !== void 0 && (i.id = r), !t.hasProperties())
|
|
5594
5603
|
return i;
|
|
5595
5604
|
const s = t.getProperties(), o = t.getGeometry();
|
|
5596
|
-
return o && (i.geometry = de(o, e), delete s[t.getGeometryName()]),
|
|
5605
|
+
return o && (i.geometry = de(o, e), delete s[t.getGeometryName()]), Li(s) || (i.properties = s), i;
|
|
5597
5606
|
}
|
|
5598
5607
|
/**
|
|
5599
5608
|
* Encode an array of features as a GeoJSON object.
|
|
@@ -5706,7 +5715,7 @@ function bs(n) {
|
|
|
5706
5715
|
return {
|
|
5707
5716
|
type: "Point",
|
|
5708
5717
|
flatCoordinates: t,
|
|
5709
|
-
layout:
|
|
5718
|
+
layout: D(t.length)
|
|
5710
5719
|
};
|
|
5711
5720
|
}
|
|
5712
5721
|
function Es(n) {
|
|
@@ -5716,7 +5725,7 @@ function Es(n) {
|
|
|
5716
5725
|
type: "LineString",
|
|
5717
5726
|
flatCoordinates: e,
|
|
5718
5727
|
ends: [e.length],
|
|
5719
|
-
layout:
|
|
5728
|
+
layout: D(((i = t[0]) == null ? void 0 : i.length) || 2)
|
|
5720
5729
|
};
|
|
5721
5730
|
}
|
|
5722
5731
|
function xs(n) {
|
|
@@ -5726,7 +5735,7 @@ function xs(n) {
|
|
|
5726
5735
|
type: "MultiLineString",
|
|
5727
5736
|
flatCoordinates: i,
|
|
5728
5737
|
ends: r,
|
|
5729
|
-
layout:
|
|
5738
|
+
layout: D(e)
|
|
5730
5739
|
};
|
|
5731
5740
|
}
|
|
5732
5741
|
function Ps(n) {
|
|
@@ -5735,7 +5744,7 @@ function Ps(n) {
|
|
|
5735
5744
|
return {
|
|
5736
5745
|
type: "MultiPoint",
|
|
5737
5746
|
flatCoordinates: t.flat(),
|
|
5738
|
-
layout:
|
|
5747
|
+
layout: D(((e = t[0]) == null ? void 0 : e.length) || 2)
|
|
5739
5748
|
};
|
|
5740
5749
|
}
|
|
5741
5750
|
function Ms(n) {
|
|
@@ -5750,7 +5759,7 @@ function Ms(n) {
|
|
|
5750
5759
|
type: "MultiPolygon",
|
|
5751
5760
|
flatCoordinates: e,
|
|
5752
5761
|
ends: r,
|
|
5753
|
-
layout:
|
|
5762
|
+
layout: D(i)
|
|
5754
5763
|
};
|
|
5755
5764
|
}
|
|
5756
5765
|
function Ss(n) {
|
|
@@ -5760,7 +5769,7 @@ function Ss(n) {
|
|
|
5760
5769
|
type: "Polygon",
|
|
5761
5770
|
flatCoordinates: e,
|
|
5762
5771
|
ends: r,
|
|
5763
|
-
layout:
|
|
5772
|
+
layout: D(i)
|
|
5764
5773
|
};
|
|
5765
5774
|
}
|
|
5766
5775
|
function de(n, t) {
|
|
@@ -5769,7 +5778,7 @@ function de(n, t) {
|
|
|
5769
5778
|
let i;
|
|
5770
5779
|
switch (e) {
|
|
5771
5780
|
case "Point": {
|
|
5772
|
-
i =
|
|
5781
|
+
i = Ls(
|
|
5773
5782
|
/** @type {import("../geom/Point.js").default} */
|
|
5774
5783
|
n
|
|
5775
5784
|
);
|
|
@@ -5805,7 +5814,7 @@ function de(n, t) {
|
|
|
5805
5814
|
break;
|
|
5806
5815
|
}
|
|
5807
5816
|
case "MultiPolygon": {
|
|
5808
|
-
i =
|
|
5817
|
+
i = Is(
|
|
5809
5818
|
/** @type {import("../geom/MultiPolygon.js").default} */
|
|
5810
5819
|
n,
|
|
5811
5820
|
t
|
|
@@ -5858,14 +5867,14 @@ function Gs(n, t) {
|
|
|
5858
5867
|
coordinates: n.getCoordinates()
|
|
5859
5868
|
};
|
|
5860
5869
|
}
|
|
5861
|
-
function
|
|
5870
|
+
function Is(n, t) {
|
|
5862
5871
|
let e;
|
|
5863
5872
|
return t && (e = t.rightHanded), {
|
|
5864
5873
|
type: "MultiPolygon",
|
|
5865
5874
|
coordinates: n.getCoordinates(e)
|
|
5866
5875
|
};
|
|
5867
5876
|
}
|
|
5868
|
-
function
|
|
5877
|
+
function Ls(n, t) {
|
|
5869
5878
|
return {
|
|
5870
5879
|
type: "Point",
|
|
5871
5880
|
coordinates: n.getCoordinates()
|
|
@@ -5901,7 +5910,7 @@ class Ns extends on {
|
|
|
5901
5910
|
*/
|
|
5902
5911
|
readFeature(t, e) {
|
|
5903
5912
|
return this.readFeatureFromText(
|
|
5904
|
-
|
|
5913
|
+
It(t),
|
|
5905
5914
|
this.adaptOptions(e)
|
|
5906
5915
|
);
|
|
5907
5916
|
}
|
|
@@ -5926,7 +5935,7 @@ class Ns extends on {
|
|
|
5926
5935
|
*/
|
|
5927
5936
|
readFeatures(t, e) {
|
|
5928
5937
|
return this.readFeaturesFromText(
|
|
5929
|
-
|
|
5938
|
+
It(t),
|
|
5930
5939
|
this.adaptOptions(e)
|
|
5931
5940
|
);
|
|
5932
5941
|
}
|
|
@@ -5951,7 +5960,7 @@ class Ns extends on {
|
|
|
5951
5960
|
*/
|
|
5952
5961
|
readGeometry(t, e) {
|
|
5953
5962
|
return this.readGeometryFromText(
|
|
5954
|
-
|
|
5963
|
+
It(t),
|
|
5955
5964
|
this.adaptOptions(e)
|
|
5956
5965
|
);
|
|
5957
5966
|
}
|
|
@@ -5974,7 +5983,7 @@ class Ns extends on {
|
|
|
5974
5983
|
* @override
|
|
5975
5984
|
*/
|
|
5976
5985
|
readProjection(t) {
|
|
5977
|
-
return this.readProjectionFromText(
|
|
5986
|
+
return this.readProjectionFromText(It(t));
|
|
5978
5987
|
}
|
|
5979
5988
|
/**
|
|
5980
5989
|
* @param {string} text Text.
|
|
@@ -6051,7 +6060,7 @@ class Ns extends on {
|
|
|
6051
6060
|
return y();
|
|
6052
6061
|
}
|
|
6053
6062
|
}
|
|
6054
|
-
function
|
|
6063
|
+
function It(n) {
|
|
6055
6064
|
return typeof n == "string" ? n : "";
|
|
6056
6065
|
}
|
|
6057
6066
|
const Os = {
|
|
@@ -6069,7 +6078,7 @@ const Os = {
|
|
|
6069
6078
|
NUMBER: 4,
|
|
6070
6079
|
COMMA: 5,
|
|
6071
6080
|
EOF: 6
|
|
6072
|
-
},
|
|
6081
|
+
}, js = {
|
|
6073
6082
|
Point: "POINT",
|
|
6074
6083
|
LineString: "LINESTRING",
|
|
6075
6084
|
Polygon: "POLYGON",
|
|
@@ -6079,7 +6088,7 @@ const Os = {
|
|
|
6079
6088
|
GeometryCollection: "GEOMETRYCOLLECTION",
|
|
6080
6089
|
Circle: "CIRCLE"
|
|
6081
6090
|
};
|
|
6082
|
-
class
|
|
6091
|
+
class Hs {
|
|
6083
6092
|
/**
|
|
6084
6093
|
* @param {string} wkt WKT string.
|
|
6085
6094
|
*/
|
|
@@ -6177,7 +6186,7 @@ class Us {
|
|
|
6177
6186
|
return this.wkt.substring(e, this.index_--).toUpperCase();
|
|
6178
6187
|
}
|
|
6179
6188
|
}
|
|
6180
|
-
class
|
|
6189
|
+
class Us {
|
|
6181
6190
|
/**
|
|
6182
6191
|
* @param {Lexer} lexer The lexer.
|
|
6183
6192
|
*/
|
|
@@ -6468,8 +6477,8 @@ class Xs extends Ns {
|
|
|
6468
6477
|
* @private
|
|
6469
6478
|
*/
|
|
6470
6479
|
parse_(t) {
|
|
6471
|
-
const e = new
|
|
6472
|
-
return new
|
|
6480
|
+
const e = new Hs(t);
|
|
6481
|
+
return new Us(e).parse();
|
|
6473
6482
|
}
|
|
6474
6483
|
/**
|
|
6475
6484
|
* @protected
|
|
@@ -6606,7 +6615,7 @@ const Ws = {
|
|
|
6606
6615
|
};
|
|
6607
6616
|
function gn(n) {
|
|
6608
6617
|
const t = n.getType(), e = Ws[t], i = e(n);
|
|
6609
|
-
let r =
|
|
6618
|
+
let r = js[t];
|
|
6610
6619
|
if (typeof /** @type {?} */
|
|
6611
6620
|
n.getFlatCoordinates == "function") {
|
|
6612
6621
|
const s = Js(
|
|
@@ -6627,7 +6636,7 @@ function _i(n, t, e) {
|
|
|
6627
6636
|
return n ? t(n) : e == null ? void 0 : e(n);
|
|
6628
6637
|
}
|
|
6629
6638
|
var Et, xt;
|
|
6630
|
-
class fn extends
|
|
6639
|
+
class fn extends U {
|
|
6631
6640
|
constructor() {
|
|
6632
6641
|
super();
|
|
6633
6642
|
/**
|
|
@@ -6656,10 +6665,10 @@ class fn extends j {
|
|
|
6656
6665
|
render() {
|
|
6657
6666
|
this.updateButtonStates();
|
|
6658
6667
|
const e = this.currentlyDrawing ? "drawing" : "draw";
|
|
6659
|
-
return
|
|
6668
|
+
return H`
|
|
6660
6669
|
<style>
|
|
6661
|
-
${!this.unstyled && Kn}
|
|
6662
6670
|
${!this.unstyled && Dn}
|
|
6671
|
+
${!this.unstyled && Kn}
|
|
6663
6672
|
</style>
|
|
6664
6673
|
<div class="wrap-btn">
|
|
6665
6674
|
<slot></slot>
|
|
@@ -6688,7 +6697,7 @@ class fn extends j {
|
|
|
6688
6697
|
<!-- Import Button -->
|
|
6689
6698
|
${_i(
|
|
6690
6699
|
this.importFeatures,
|
|
6691
|
-
() =>
|
|
6700
|
+
() => H`
|
|
6692
6701
|
<!-- Import Input Field : Hidden -->
|
|
6693
6702
|
<input
|
|
6694
6703
|
type="file"
|
|
@@ -6715,7 +6724,7 @@ class fn extends j {
|
|
|
6715
6724
|
<!-- Geo JSON Wrapper -->
|
|
6716
6725
|
${_i(
|
|
6717
6726
|
this.showEditor,
|
|
6718
|
-
() =>
|
|
6727
|
+
() => H`
|
|
6719
6728
|
<div class="json-wrapper">
|
|
6720
6729
|
<!-- Geo JSON Editor -->
|
|
6721
6730
|
<textarea
|
|
@@ -6796,7 +6805,7 @@ const Zs = `
|
|
|
6796
6805
|
color: white;
|
|
6797
6806
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Econtent-copy%3C/title%3E%3Cpath d='M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z' fill='white' /%3E%3C/svg%3E")
|
|
6798
6807
|
}
|
|
6799
|
-
`,
|
|
6808
|
+
`, Ds = (n) => {
|
|
6800
6809
|
(() => {
|
|
6801
6810
|
if (n.emitDrawnFeatures(), !n.multipleFeatures)
|
|
6802
6811
|
n.draw.setActive(!1), n.selectionEvents.removeSelectionEvent(), n.currentlyDrawing = !1;
|
|
@@ -6808,7 +6817,7 @@ const Zs = `
|
|
|
6808
6817
|
n.drawLayer.getSource().clear(!0), n.drawLayer.getSource().addFeature(i), n.drawnFeatures = [i];
|
|
6809
6818
|
}
|
|
6810
6819
|
})(), n.requestUpdate();
|
|
6811
|
-
},
|
|
6820
|
+
}, Ks = (n) => {
|
|
6812
6821
|
const t = () => {
|
|
6813
6822
|
n.drawLayer.set("isDrawingEnabled", !0), n.draw.setActive(!0), n.selectionEvents.addSelectionEvent();
|
|
6814
6823
|
}, e = () => {
|
|
@@ -6878,7 +6887,7 @@ const Zs = `
|
|
|
6878
6887
|
/** @type {unknown} */
|
|
6879
6888
|
i.interactions.drawInteraction, n.modify = /** @type {import("ol/interaction").Modify} */
|
|
6880
6889
|
/** @type {unknown} */
|
|
6881
|
-
i.interactions.drawInteractionmodify, ge(n, i, n.layerId), (h = n.modify) == null || h.on("modifyend", () => n.onModifyEnd()), i.addEventListener("addfeatures", () =>
|
|
6890
|
+
i.interactions.drawInteractionmodify, ge(n, i, n.layerId), (h = n.modify) == null || h.on("modifyend", () => n.onModifyEnd()), i.addEventListener("addfeatures", () => Ds(n)), { EoxMap: i, OlMap: r };
|
|
6882
6891
|
}, to = (n) => {
|
|
6883
6892
|
const t = () => {
|
|
6884
6893
|
n.drawnFeatures = [], n.draw.setActive(!1), n.selectionEvents.removeSelectionEvent(), n.drawLayer.getSource().clear(), n.geoJSON = null;
|
|
@@ -7017,7 +7026,7 @@ function ao(n, t) {
|
|
|
7017
7026
|
};
|
|
7018
7027
|
}
|
|
7019
7028
|
var nt, rt, Pt, st, Mt;
|
|
7020
|
-
class lo extends
|
|
7029
|
+
class lo extends U {
|
|
7021
7030
|
constructor() {
|
|
7022
7031
|
super();
|
|
7023
7032
|
/**
|
|
@@ -7040,7 +7049,7 @@ class lo extends j {
|
|
|
7040
7049
|
* @type boolean
|
|
7041
7050
|
*/
|
|
7042
7051
|
F(this, Mt);
|
|
7043
|
-
this.allowModify = !1, this.for = "eox-map", this.currentlyDrawing = !1, this.draw = null, this.drawLayer = null, this.layerId = "", this.drawnFeatures = [], this.featureStyles = null, this.modify = null, this.multipleFeatures = !1, this.importFeatures = !1, this.showEditor = !1, this.showList = !1, this.projection = "EPSG:4326", this.type = "Polygon", this.selectionEvents = null, this.format = "feature", this.unstyled = !1, this.noShadow = !1;
|
|
7052
|
+
this.allowModify = !1, this.for = "eox-map", this.currentlyDrawing = !1, this.draw = null, this.drawLayer = null, this.layerId = "", this.drawnFeatures = [], this.featureName = "Feature", this.featureStyles = null, this.modify = null, this.multipleFeatures = !1, this.importFeatures = !1, this.showEditor = !1, this.showList = !1, this.projection = "EPSG:4326", this.type = "Polygon", this.selectionEvents = null, this.format = "feature", this.unstyled = !1, this.noShadow = !1;
|
|
7044
7053
|
}
|
|
7045
7054
|
// Define properties with defaults and types
|
|
7046
7055
|
static get properties() {
|
|
@@ -7052,6 +7061,7 @@ class lo extends j {
|
|
|
7052
7061
|
draw: { attribute: !1, state: !0 },
|
|
7053
7062
|
drawLayer: { attribute: !1, state: !0 },
|
|
7054
7063
|
drawnFeatures: { attribute: !1, state: !0, type: Array },
|
|
7064
|
+
featureName: { attribute: "feature-name", type: String },
|
|
7055
7065
|
layerId: { attribute: "layer-id", type: String },
|
|
7056
7066
|
featureStyles: { attribute: !1 },
|
|
7057
7067
|
modify: { attribute: !1, state: !0 },
|
|
@@ -7091,7 +7101,7 @@ class lo extends j {
|
|
|
7091
7101
|
* @onClick Event handler triggered to start drawing on the map.
|
|
7092
7102
|
*/
|
|
7093
7103
|
startDrawing() {
|
|
7094
|
-
|
|
7104
|
+
Ks(this);
|
|
7095
7105
|
}
|
|
7096
7106
|
/**
|
|
7097
7107
|
* @onClick Event handler triggered to discard/stop drawing
|
|
@@ -7177,7 +7187,7 @@ class lo extends j {
|
|
|
7177
7187
|
// Render method for UI display
|
|
7178
7188
|
render() {
|
|
7179
7189
|
var e;
|
|
7180
|
-
return
|
|
7190
|
+
return H`
|
|
7181
7191
|
<style>
|
|
7182
7192
|
:host { display: block; }
|
|
7183
7193
|
${!this.unstyled && ro}
|
|
@@ -7203,12 +7213,14 @@ class lo extends j {
|
|
|
7203
7213
|
></eox-drawtools-controller>
|
|
7204
7214
|
|
|
7205
7215
|
<!-- List Component -->
|
|
7206
|
-
${this.showList && ((e = this.drawnFeatures) != null && e.length) ?
|
|
7216
|
+
${this.showList && ((e = this.drawnFeatures) != null && e.length) ? H`<eox-drawtools-list
|
|
7217
|
+
.eoxDrawTools=${this}
|
|
7207
7218
|
.eoxMap=${this.eoxMap}
|
|
7208
7219
|
.olMap=${M(this, rt)}
|
|
7209
7220
|
.draw=${this.draw}
|
|
7210
7221
|
.drawLayer=${this.drawLayer}
|
|
7211
7222
|
.drawnFeatures=${this.drawnFeatures}
|
|
7223
|
+
.featureName=${this.featureName}
|
|
7212
7224
|
.modify=${this.modify}
|
|
7213
7225
|
.unstyled=${this.unstyled}
|
|
7214
7226
|
@changed=${() => {
|