@eox/layercontrol 1.8.2 → 1.8.3
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-layercontrol.js
CHANGED
|
@@ -5,10 +5,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
5
5
|
enumerable: !(s = n(i, d)) || s.enumerable
|
|
6
6
|
});
|
|
7
7
|
return e;
|
|
8
|
-
}, c = (n, r,
|
|
8
|
+
}, c = (n, r, o) => (o = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
|
|
9
9
|
value: n,
|
|
10
10
|
enumerable: !0
|
|
11
|
-
}) :
|
|
11
|
+
}) : o, n)), l = globalThis, u = l.ShadowRoot && (l.ShadyCSS === void 0 || l.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, d = Symbol(), f = /* @__PURE__ */ new WeakMap(), p = class {
|
|
12
12
|
constructor(e, t, n) {
|
|
13
13
|
if (this._$cssResult$ = !0, n !== d) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
14
14
|
this.cssText = e, this.t = t;
|
|
@@ -38,11 +38,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
38
38
|
let t = "";
|
|
39
39
|
for (let n of e.cssRules) t += n.cssText;
|
|
40
40
|
return m(t);
|
|
41
|
-
})(e) : e, { is: v, defineProperty: y, getOwnPropertyDescriptor: b, getOwnPropertyNames: x, getOwnPropertySymbols: S, getPrototypeOf: C } = Object, w = globalThis, T = w.trustedTypes,
|
|
41
|
+
})(e) : e, { is: v, defineProperty: y, getOwnPropertyDescriptor: b, getOwnPropertyNames: x, getOwnPropertySymbols: S, getPrototypeOf: C } = Object, w = globalThis, T = w.trustedTypes, ee = T ? T.emptyScript : "", te = w.reactiveElementPolyfillSupport, E = (e, t) => e, ne = {
|
|
42
42
|
toAttribute(e, t) {
|
|
43
43
|
switch (t) {
|
|
44
44
|
case Boolean:
|
|
45
|
-
e = e ?
|
|
45
|
+
e = e ? ee : null;
|
|
46
46
|
break;
|
|
47
47
|
case Object:
|
|
48
48
|
case Array: e = e == null ? e : JSON.stringify(e);
|
|
@@ -67,23 +67,23 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
67
67
|
}
|
|
68
68
|
return n;
|
|
69
69
|
}
|
|
70
|
-
},
|
|
70
|
+
}, re = (e, t) => !v(e, t), ie = {
|
|
71
71
|
attribute: !0,
|
|
72
72
|
type: String,
|
|
73
|
-
converter:
|
|
73
|
+
converter: ne,
|
|
74
74
|
reflect: !1,
|
|
75
75
|
useDefault: !1,
|
|
76
|
-
hasChanged:
|
|
76
|
+
hasChanged: re
|
|
77
77
|
};
|
|
78
78
|
Symbol.metadata ??= Symbol("metadata"), w.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
79
|
-
var
|
|
79
|
+
var ae = class extends HTMLElement {
|
|
80
80
|
static addInitializer(e) {
|
|
81
81
|
this._$Ei(), (this.l ??= []).push(e);
|
|
82
82
|
}
|
|
83
83
|
static get observedAttributes() {
|
|
84
84
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
85
85
|
}
|
|
86
|
-
static createProperty(e, t =
|
|
86
|
+
static createProperty(e, t = ie) {
|
|
87
87
|
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
88
88
|
let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
|
|
89
89
|
r !== void 0 && y(this.prototype, e, r);
|
|
@@ -109,16 +109,16 @@ var ie = class extends HTMLElement {
|
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
111
|
static getPropertyOptions(e) {
|
|
112
|
-
return this.elementProperties.get(e) ??
|
|
112
|
+
return this.elementProperties.get(e) ?? ie;
|
|
113
113
|
}
|
|
114
114
|
static _$Ei() {
|
|
115
|
-
if (this.hasOwnProperty(
|
|
115
|
+
if (this.hasOwnProperty(E("elementProperties"))) return;
|
|
116
116
|
let e = C(this);
|
|
117
117
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
118
118
|
}
|
|
119
119
|
static finalize() {
|
|
120
|
-
if (this.hasOwnProperty(
|
|
121
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
120
|
+
if (this.hasOwnProperty(E("finalized"))) return;
|
|
121
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(E("properties"))) {
|
|
122
122
|
let e = this.properties, t = [...x(e), ...S(e)];
|
|
123
123
|
for (let n of t) this.createProperty(n, e[n]);
|
|
124
124
|
}
|
|
@@ -137,7 +137,7 @@ var ie = class extends HTMLElement {
|
|
|
137
137
|
static finalizeStyles(e) {
|
|
138
138
|
let t = [];
|
|
139
139
|
if (Array.isArray(e)) {
|
|
140
|
-
let n = new Set(e.flat(
|
|
140
|
+
let n = new Set(e.flat(1 / 0).reverse());
|
|
141
141
|
for (let e of n) t.unshift(_(e));
|
|
142
142
|
} else e !== void 0 && t.push(_(e));
|
|
143
143
|
return t;
|
|
@@ -180,14 +180,14 @@ var ie = class extends HTMLElement {
|
|
|
180
180
|
_$ET(e, t) {
|
|
181
181
|
let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
|
|
182
182
|
if (r !== void 0 && !0 === n.reflect) {
|
|
183
|
-
let i = (n.converter?.toAttribute === void 0 ?
|
|
183
|
+
let i = (n.converter?.toAttribute === void 0 ? ne : n.converter).toAttribute(t, n.type);
|
|
184
184
|
this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
_$AK(e, t) {
|
|
188
188
|
let n = this.constructor, r = n._$Eh.get(e);
|
|
189
189
|
if (r !== void 0 && this._$Em !== r) {
|
|
190
|
-
let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ?
|
|
190
|
+
let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? ne : e.converter;
|
|
191
191
|
this._$Em = r;
|
|
192
192
|
let a = i.fromAttribute(t, e.type);
|
|
193
193
|
this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
|
|
@@ -196,7 +196,7 @@ var ie = class extends HTMLElement {
|
|
|
196
196
|
requestUpdate(e, t, n) {
|
|
197
197
|
if (e !== void 0) {
|
|
198
198
|
let r = this.constructor, i = this[e];
|
|
199
|
-
if (n ??= r.getPropertyOptions(e), !((n.hasChanged ??
|
|
199
|
+
if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? re)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
|
|
200
200
|
this.C(e, t, n);
|
|
201
201
|
}
|
|
202
202
|
!1 === this.isUpdatePending && (this._$ES = this._$EP());
|
|
@@ -260,87 +260,89 @@ var ie = class extends HTMLElement {
|
|
|
260
260
|
updated(e) {}
|
|
261
261
|
firstUpdated(e) {}
|
|
262
262
|
};
|
|
263
|
-
|
|
263
|
+
ae.elementStyles = [], ae.shadowRootOptions = { mode: "open" }, ae[E("elementProperties")] = /* @__PURE__ */ new Map(), ae[E("finalized")] = /* @__PURE__ */ new Map(), te?.({ ReactiveElement: ae }), (w.reactiveElementVersions ??= []).push("2.1.1");
|
|
264
264
|
//#endregion
|
|
265
265
|
//#region ../../node_modules/lit-html/lit-html.js
|
|
266
|
-
var
|
|
266
|
+
var oe = globalThis, se = oe.trustedTypes, ce = se ? se.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, le = "$lit$", ue = `lit$${Math.random().toFixed(9).slice(2)}$`, de = "?" + ue, fe = `<${de}>`, pe = document, me = () => pe.createComment(""), he = (e) => e === null || typeof e != "object" && typeof e != "function", ge = Array.isArray, _e = (e) => ge(e) || typeof e?.[Symbol.iterator] == "function", ve = "[ \n\f\r]", ye = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, be = /-->/g, xe = />/g, Se = RegExp(`>|${ve}(?:([^\\s"'>=/]+)(${ve}*=${ve}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), Ce = /'/g, we = /"/g, Te = /^(?:script|style|textarea|title)$/i, D = ((e) => (t, ...n) => ({
|
|
267
267
|
_$litType$: e,
|
|
268
268
|
strings: t,
|
|
269
269
|
values: n
|
|
270
|
-
}))(1),
|
|
271
|
-
function
|
|
272
|
-
if (!
|
|
273
|
-
return
|
|
270
|
+
}))(1), Ee = Symbol.for("lit-noChange"), O = Symbol.for("lit-nothing"), De = /* @__PURE__ */ new WeakMap(), Oe = pe.createTreeWalker(pe, 129);
|
|
271
|
+
function ke(e, t) {
|
|
272
|
+
if (!ge(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
273
|
+
return ce === void 0 ? t : ce.createHTML(t);
|
|
274
274
|
}
|
|
275
|
-
var
|
|
276
|
-
let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o =
|
|
275
|
+
var Ae = (e, t) => {
|
|
276
|
+
let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = ye;
|
|
277
277
|
for (let t = 0; t < n; t++) {
|
|
278
278
|
let n = e[t], s, c, l = -1, u = 0;
|
|
279
|
-
for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o ===
|
|
280
|
-
let d = o ===
|
|
281
|
-
a += o ===
|
|
279
|
+
for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === ye ? c[1] === "!--" ? o = be : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = Se) : (Te.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = Se) : o = xe : o === Se ? c[0] === ">" ? (o = i ?? ye, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? Se : c[3] === "\"" ? we : Ce) : o === we || o === Ce ? o = Se : o === be || o === xe ? o = ye : (o = Se, i = void 0);
|
|
280
|
+
let d = o === Se && e[t + 1].startsWith("/>") ? " " : "";
|
|
281
|
+
a += o === ye ? n + fe : l >= 0 ? (r.push(s), n.slice(0, l) + le + n.slice(l) + ue + d) : n + ue + (l === -2 ? t : d);
|
|
282
282
|
}
|
|
283
|
-
return [
|
|
284
|
-
},
|
|
283
|
+
return [ke(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
284
|
+
}, je = class e {
|
|
285
285
|
constructor({ strings: t, _$litType$: n }, r) {
|
|
286
286
|
let i;
|
|
287
287
|
this.parts = [];
|
|
288
|
-
let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] =
|
|
289
|
-
if (this.el = e.createElement(l, r),
|
|
288
|
+
let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = Ae(t, n);
|
|
289
|
+
if (this.el = e.createElement(l, r), Oe.currentNode = this.el.content, n === 2 || n === 3) {
|
|
290
290
|
let e = this.el.content.firstChild;
|
|
291
291
|
e.replaceWith(...e.childNodes);
|
|
292
292
|
}
|
|
293
|
-
for (; (i =
|
|
293
|
+
for (; (i = Oe.nextNode()) !== null && c.length < s;) {
|
|
294
294
|
if (i.nodeType === 1) {
|
|
295
|
-
if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(
|
|
296
|
-
let t = u[o++], n = i.getAttribute(e).split(
|
|
295
|
+
if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(le)) {
|
|
296
|
+
let t = u[o++], n = i.getAttribute(e).split(ue), r = /([.?@])?(.*)/.exec(t);
|
|
297
297
|
c.push({
|
|
298
298
|
type: 1,
|
|
299
299
|
index: a,
|
|
300
300
|
name: r[2],
|
|
301
301
|
strings: n,
|
|
302
|
-
ctor: r[1] === "." ?
|
|
302
|
+
ctor: r[1] === "." ? Ie : r[1] === "?" ? Le : r[1] === "@" ? Re : Fe
|
|
303
303
|
}), i.removeAttribute(e);
|
|
304
|
-
} else e.startsWith(
|
|
304
|
+
} else e.startsWith(ue) && (c.push({
|
|
305
305
|
type: 6,
|
|
306
306
|
index: a
|
|
307
307
|
}), i.removeAttribute(e));
|
|
308
|
-
if (
|
|
309
|
-
let e = i.textContent.split(
|
|
308
|
+
if (Te.test(i.tagName)) {
|
|
309
|
+
let e = i.textContent.split(ue), t = e.length - 1;
|
|
310
310
|
if (t > 0) {
|
|
311
|
-
i.textContent =
|
|
312
|
-
for (let n = 0; n < t; n++) i.append(e[n],
|
|
311
|
+
i.textContent = se ? se.emptyScript : "";
|
|
312
|
+
for (let n = 0; n < t; n++) i.append(e[n], me()), Oe.nextNode(), c.push({
|
|
313
313
|
type: 2,
|
|
314
314
|
index: ++a
|
|
315
315
|
});
|
|
316
|
-
i.append(e[t],
|
|
316
|
+
i.append(e[t], me());
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
} else if (i.nodeType === 8)
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
});
|
|
323
|
-
else {
|
|
324
|
-
let e = -1;
|
|
325
|
-
for (; (e = i.data.indexOf(le, e + 1)) !== -1;) c.push({
|
|
326
|
-
type: 7,
|
|
319
|
+
} else if (i.nodeType === 8) {
|
|
320
|
+
if (i.data === de) c.push({
|
|
321
|
+
type: 2,
|
|
327
322
|
index: a
|
|
328
|
-
})
|
|
323
|
+
});
|
|
324
|
+
else {
|
|
325
|
+
let e = -1;
|
|
326
|
+
for (; (e = i.data.indexOf(ue, e + 1)) !== -1;) c.push({
|
|
327
|
+
type: 7,
|
|
328
|
+
index: a
|
|
329
|
+
}), e += ue.length - 1;
|
|
330
|
+
}
|
|
329
331
|
}
|
|
330
332
|
a++;
|
|
331
333
|
}
|
|
332
334
|
}
|
|
333
335
|
static createElement(e, t) {
|
|
334
|
-
let n =
|
|
336
|
+
let n = pe.createElement("template");
|
|
335
337
|
return n.innerHTML = e, n;
|
|
336
338
|
}
|
|
337
339
|
};
|
|
338
|
-
function
|
|
339
|
-
if (t ===
|
|
340
|
-
let i = r === void 0 ? n._$Cl : n._$Co?.[r], a =
|
|
341
|
-
return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t =
|
|
340
|
+
function Me(e, t, n = e, r) {
|
|
341
|
+
if (t === Ee) return t;
|
|
342
|
+
let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = he(t) ? void 0 : t._$litDirective$;
|
|
343
|
+
return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = Me(e, i._$AS(e, t.values), i, r)), t;
|
|
342
344
|
}
|
|
343
|
-
var
|
|
345
|
+
var Ne = class {
|
|
344
346
|
constructor(e, t) {
|
|
345
347
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
346
348
|
}
|
|
@@ -351,28 +353,28 @@ var Me = class {
|
|
|
351
353
|
return this._$AM._$AU;
|
|
352
354
|
}
|
|
353
355
|
u(e) {
|
|
354
|
-
let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ??
|
|
355
|
-
|
|
356
|
-
let i =
|
|
356
|
+
let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? pe).importNode(t, !0);
|
|
357
|
+
Oe.currentNode = r;
|
|
358
|
+
let i = Oe.nextNode(), a = 0, o = 0, s = n[0];
|
|
357
359
|
for (; s !== void 0;) {
|
|
358
360
|
if (a === s.index) {
|
|
359
361
|
let t;
|
|
360
|
-
s.type === 2 ? t = new
|
|
362
|
+
s.type === 2 ? t = new Pe(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new ze(i, this, e)), this._$AV.push(t), s = n[++o];
|
|
361
363
|
}
|
|
362
|
-
a !== s?.index && (i =
|
|
364
|
+
a !== s?.index && (i = Oe.nextNode(), a++);
|
|
363
365
|
}
|
|
364
|
-
return
|
|
366
|
+
return Oe.currentNode = pe, r;
|
|
365
367
|
}
|
|
366
368
|
p(e) {
|
|
367
369
|
let t = 0;
|
|
368
370
|
for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
|
|
369
371
|
}
|
|
370
|
-
},
|
|
372
|
+
}, Pe = class e {
|
|
371
373
|
get _$AU() {
|
|
372
374
|
return this._$AM?._$AU ?? this._$Cv;
|
|
373
375
|
}
|
|
374
376
|
constructor(e, t, n, r) {
|
|
375
|
-
this.type = 2, this._$AH =
|
|
377
|
+
this.type = 2, this._$AH = O, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
|
|
376
378
|
}
|
|
377
379
|
get parentNode() {
|
|
378
380
|
let e = this._$AA.parentNode, t = this._$AM;
|
|
@@ -385,7 +387,7 @@ var Me = class {
|
|
|
385
387
|
return this._$AB;
|
|
386
388
|
}
|
|
387
389
|
_$AI(e, t = this) {
|
|
388
|
-
e =
|
|
390
|
+
e = Me(this, e, t), he(e) ? e === O || e == null || e === "" ? (this._$AH !== O && this._$AR(), this._$AH = O) : e !== this._$AH && e !== Ee && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? _e(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
|
|
389
391
|
}
|
|
390
392
|
O(e) {
|
|
391
393
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -394,24 +396,24 @@ var Me = class {
|
|
|
394
396
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
395
397
|
}
|
|
396
398
|
_(e) {
|
|
397
|
-
this._$AH !==
|
|
399
|
+
this._$AH !== O && he(this._$AH) ? this._$AA.nextSibling.data = e : this.T(pe.createTextNode(e)), this._$AH = e;
|
|
398
400
|
}
|
|
399
401
|
$(e) {
|
|
400
|
-
let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el =
|
|
402
|
+
let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = je.createElement(ke(n.h, n.h[0]), this.options)), n);
|
|
401
403
|
if (this._$AH?._$AD === r) this._$AH.p(t);
|
|
402
404
|
else {
|
|
403
|
-
let e = new
|
|
405
|
+
let e = new Ne(r, this), n = e.u(this.options);
|
|
404
406
|
e.p(t), this.T(n), this._$AH = e;
|
|
405
407
|
}
|
|
406
408
|
}
|
|
407
409
|
_$AC(e) {
|
|
408
|
-
let t =
|
|
409
|
-
return t === void 0 &&
|
|
410
|
+
let t = De.get(e.strings);
|
|
411
|
+
return t === void 0 && De.set(e.strings, t = new je(e)), t;
|
|
410
412
|
}
|
|
411
413
|
k(t) {
|
|
412
|
-
|
|
414
|
+
ge(this._$AH) || (this._$AH = [], this._$AR());
|
|
413
415
|
let n = this._$AH, r, i = 0;
|
|
414
|
-
for (let a of t) i === n.length ? n.push(r = new e(this.O(
|
|
416
|
+
for (let a of t) i === n.length ? n.push(r = new e(this.O(me()), this.O(me()), this, this.options)) : r = n[i], r._$AI(a), i++;
|
|
415
417
|
i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
|
|
416
418
|
}
|
|
417
419
|
_$AR(e = this._$AA.nextSibling, t) {
|
|
@@ -423,7 +425,7 @@ var Me = class {
|
|
|
423
425
|
setConnected(e) {
|
|
424
426
|
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
|
|
425
427
|
}
|
|
426
|
-
},
|
|
428
|
+
}, Fe = class {
|
|
427
429
|
get tagName() {
|
|
428
430
|
return this.element.tagName;
|
|
429
431
|
}
|
|
@@ -431,47 +433,47 @@ var Me = class {
|
|
|
431
433
|
return this._$AM._$AU;
|
|
432
434
|
}
|
|
433
435
|
constructor(e, t, n, r, i) {
|
|
434
|
-
this.type = 1, this._$AH =
|
|
436
|
+
this.type = 1, this._$AH = O, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = O;
|
|
435
437
|
}
|
|
436
438
|
_$AI(e, t = this, n, r) {
|
|
437
439
|
let i = this.strings, a = !1;
|
|
438
|
-
if (i === void 0) e =
|
|
440
|
+
if (i === void 0) e = Me(this, e, t, 0), a = !he(e) || e !== this._$AH && e !== Ee, a && (this._$AH = e);
|
|
439
441
|
else {
|
|
440
442
|
let r = e, o, s;
|
|
441
|
-
for (e = i[0], o = 0; o < i.length - 1; o++) s =
|
|
443
|
+
for (e = i[0], o = 0; o < i.length - 1; o++) s = Me(this, r[n + o], t, o), s === Ee && (s = this._$AH[o]), a ||= !he(s) || s !== this._$AH[o], s === O ? e = O : e !== O && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
|
|
442
444
|
}
|
|
443
445
|
a && !r && this.j(e);
|
|
444
446
|
}
|
|
445
447
|
j(e) {
|
|
446
|
-
e ===
|
|
448
|
+
e === O ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
447
449
|
}
|
|
448
|
-
},
|
|
450
|
+
}, Ie = class extends Fe {
|
|
449
451
|
constructor() {
|
|
450
452
|
super(...arguments), this.type = 3;
|
|
451
453
|
}
|
|
452
454
|
j(e) {
|
|
453
|
-
this.element[this.name] = e ===
|
|
455
|
+
this.element[this.name] = e === O ? void 0 : e;
|
|
454
456
|
}
|
|
455
|
-
},
|
|
457
|
+
}, Le = class extends Fe {
|
|
456
458
|
constructor() {
|
|
457
459
|
super(...arguments), this.type = 4;
|
|
458
460
|
}
|
|
459
461
|
j(e) {
|
|
460
|
-
this.element.toggleAttribute(this.name, !!e && e !==
|
|
462
|
+
this.element.toggleAttribute(this.name, !!e && e !== O);
|
|
461
463
|
}
|
|
462
|
-
},
|
|
464
|
+
}, Re = class extends Fe {
|
|
463
465
|
constructor(e, t, n, r, i) {
|
|
464
466
|
super(e, t, n, r, i), this.type = 5;
|
|
465
467
|
}
|
|
466
468
|
_$AI(e, t = this) {
|
|
467
|
-
if ((e =
|
|
468
|
-
let n = this._$AH, r = e ===
|
|
469
|
+
if ((e = Me(this, e, t, 0) ?? O) === Ee) return;
|
|
470
|
+
let n = this._$AH, r = e === O && n !== O || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== O && (n === O || r);
|
|
469
471
|
r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
470
472
|
}
|
|
471
473
|
handleEvent(e) {
|
|
472
474
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
473
475
|
}
|
|
474
|
-
},
|
|
476
|
+
}, ze = class {
|
|
475
477
|
constructor(e, t, n) {
|
|
476
478
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
|
|
477
479
|
}
|
|
@@ -479,33 +481,33 @@ var Me = class {
|
|
|
479
481
|
return this._$AM._$AU;
|
|
480
482
|
}
|
|
481
483
|
_$AI(e) {
|
|
482
|
-
|
|
484
|
+
Me(this, e);
|
|
483
485
|
}
|
|
484
|
-
},
|
|
485
|
-
M:
|
|
486
|
-
P:
|
|
487
|
-
A:
|
|
486
|
+
}, Be = {
|
|
487
|
+
M: le,
|
|
488
|
+
P: ue,
|
|
489
|
+
A: de,
|
|
488
490
|
C: 1,
|
|
489
|
-
L:
|
|
490
|
-
R:
|
|
491
|
-
D:
|
|
492
|
-
V:
|
|
493
|
-
I:
|
|
494
|
-
H:
|
|
495
|
-
N:
|
|
496
|
-
U:
|
|
497
|
-
B:
|
|
498
|
-
F:
|
|
499
|
-
},
|
|
500
|
-
|
|
501
|
-
var
|
|
491
|
+
L: Ae,
|
|
492
|
+
R: Ne,
|
|
493
|
+
D: _e,
|
|
494
|
+
V: Me,
|
|
495
|
+
I: Pe,
|
|
496
|
+
H: Fe,
|
|
497
|
+
N: Le,
|
|
498
|
+
U: Re,
|
|
499
|
+
B: Ie,
|
|
500
|
+
F: ze
|
|
501
|
+
}, Ve = oe.litHtmlPolyfillSupport;
|
|
502
|
+
Ve?.(je, Pe), (oe.litHtmlVersions ??= []).push("3.3.1");
|
|
503
|
+
var He = (e, t, n) => {
|
|
502
504
|
let r = n?.renderBefore ?? t, i = r._$litPart$;
|
|
503
505
|
if (i === void 0) {
|
|
504
506
|
let e = n?.renderBefore ?? null;
|
|
505
|
-
r._$litPart$ = i = new
|
|
507
|
+
r._$litPart$ = i = new Pe(t.insertBefore(me(), e), e, void 0, n ?? {});
|
|
506
508
|
}
|
|
507
509
|
return i._$AI(e), i;
|
|
508
|
-
},
|
|
510
|
+
}, Ue = globalThis, k = class extends ae {
|
|
509
511
|
constructor() {
|
|
510
512
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
511
513
|
}
|
|
@@ -515,7 +517,7 @@ var Ve = (e, t, n) => {
|
|
|
515
517
|
}
|
|
516
518
|
update(e) {
|
|
517
519
|
let t = this.render();
|
|
518
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
520
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = He(t, this.renderRoot, this.renderOptions);
|
|
519
521
|
}
|
|
520
522
|
connectedCallback() {
|
|
521
523
|
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
@@ -524,12 +526,12 @@ var Ve = (e, t, n) => {
|
|
|
524
526
|
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
525
527
|
}
|
|
526
528
|
render() {
|
|
527
|
-
return
|
|
529
|
+
return Ee;
|
|
528
530
|
}
|
|
529
531
|
};
|
|
530
|
-
|
|
531
|
-
var We =
|
|
532
|
-
We?.({ LitElement:
|
|
532
|
+
k._$litElement$ = !0, k.finalized = !0, Ue.litElementHydrateSupport?.({ LitElement: k });
|
|
533
|
+
var We = Ue.litElementPolyfillSupport;
|
|
534
|
+
We?.({ LitElement: k }), (Ue.litElementVersions ??= []).push("4.2.1");
|
|
533
535
|
//#endregion
|
|
534
536
|
//#region ../../node_modules/lit-html/directives/when.js
|
|
535
537
|
function A(e, t, n) {
|
|
@@ -561,7 +563,7 @@ var Ge = {
|
|
|
561
563
|
update(e, t) {
|
|
562
564
|
return this.render(...t);
|
|
563
565
|
}
|
|
564
|
-
}, { I: Je } =
|
|
566
|
+
}, { I: Je } = Be, Ye = (e) => e.strings === void 0, Xe = () => document.createComment(""), Ze = (e, t, n) => {
|
|
565
567
|
let r = e._$AA.parentNode, i = t === void 0 ? e._$AB : t._$AA;
|
|
566
568
|
if (n === void 0) n = new Je(r.insertBefore(Xe(), i), r.insertBefore(Xe(), i), e, e.options);
|
|
567
569
|
else {
|
|
@@ -612,15 +614,16 @@ var Ge = {
|
|
|
612
614
|
else if (s[f] === o[m]) c[m] = Qe(i[f], a[m]), f--, m--;
|
|
613
615
|
else if (s[d] === o[m]) c[m] = Qe(i[d], a[m]), Ze(e, c[m + 1], i[d]), d++, m--;
|
|
614
616
|
else if (s[f] === o[p]) c[p] = Qe(i[f], a[p]), Ze(e, i[d], i[f]), f--, p++;
|
|
615
|
-
else if (l === void 0 && (l = rt(o, p, m), u = rt(s, d, f)), l.has(s[d]))
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
617
|
+
else if (l === void 0 && (l = rt(o, p, m), u = rt(s, d, f)), l.has(s[d])) {
|
|
618
|
+
if (l.has(s[f])) {
|
|
619
|
+
let t = u.get(o[p]), n = t === void 0 ? null : i[t];
|
|
620
|
+
if (n === null) {
|
|
621
|
+
let t = Ze(e, i[d]);
|
|
622
|
+
Qe(t, a[p]), c[p] = t;
|
|
623
|
+
} else c[p] = Qe(n, a[p]), Ze(e, i[d], n), i[t] = null;
|
|
624
|
+
p++;
|
|
625
|
+
} else nt(i[f]), f--;
|
|
626
|
+
} else nt(i[d]), d++;
|
|
624
627
|
for (; p <= m;) {
|
|
625
628
|
let t = Ze(e, c[m + 1]);
|
|
626
629
|
Qe(t, a[p]), c[p++] = t;
|
|
@@ -629,7 +632,7 @@ var Ge = {
|
|
|
629
632
|
let e = i[d++];
|
|
630
633
|
e !== null && nt(e);
|
|
631
634
|
}
|
|
632
|
-
return this.ut = o, et(e, c),
|
|
635
|
+
return this.ut = o, et(e, c), Ee;
|
|
633
636
|
}
|
|
634
637
|
}), j = (e) => e !== void 0, at = (e, t, n) => t in e ? e[t] : e[t] = n, ot = {
|
|
635
638
|
ELEMENT: 1,
|
|
@@ -1328,7 +1331,7 @@ function lr() {
|
|
|
1328
1331
|
return {
|
|
1329
1332
|
captureAnimationState: function() {
|
|
1330
1333
|
e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
|
|
1331
|
-
if (
|
|
1334
|
+
if (z(t, "display") !== "none" && t !== Y.ghost) {
|
|
1332
1335
|
e.push({
|
|
1333
1336
|
target: t,
|
|
1334
1337
|
rect: B(t)
|
|
@@ -1593,7 +1596,7 @@ function Y(e, t) {
|
|
|
1593
1596
|
};
|
|
1594
1597
|
for (var r in mr.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
1595
1598
|
for (var i in Qr(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
1596
|
-
this.nativeDraggable = t.forceFallback
|
|
1599
|
+
this.nativeDraggable = !t.forceFallback && qr, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? L(e, "pointerdown", this._onTapStart) : (L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart)), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), Or.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Sn(this, lr());
|
|
1597
1600
|
}
|
|
1598
1601
|
Y.prototype = {
|
|
1599
1602
|
constructor: Y,
|
|
@@ -1813,21 +1816,21 @@ Y.prototype = {
|
|
|
1813
1816
|
if (n = b, i = B(n), ii(G, t, H, r, n, i, e, !1) !== !1) return g(), t.insertBefore(H, b), U = t, v(), _(!0);
|
|
1814
1817
|
} else if (n.parentNode === t) {
|
|
1815
1818
|
i = B(n);
|
|
1816
|
-
var x = 0, S, C = H.parentNode !== t, w = !Xr(H.animated && H.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left",
|
|
1819
|
+
var x = 0, S, C = H.parentNode !== t, w = !Xr(H.animated && H.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", ee = qn(n, "top", "top") || qn(H, "top", "top"), te = ee ? ee.scrollTop : void 0;
|
|
1817
1820
|
Ir !== n && (S = i[T], Rr = !1, zr = !w && o.invertSwap || C), x = li(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, zr, Ir === n);
|
|
1818
|
-
var
|
|
1821
|
+
var E;
|
|
1819
1822
|
if (x !== 0) {
|
|
1820
|
-
var
|
|
1823
|
+
var ne = Xn(H);
|
|
1821
1824
|
do
|
|
1822
|
-
|
|
1823
|
-
while (
|
|
1825
|
+
ne -= x, E = U.children[ne];
|
|
1826
|
+
while (E && (z(E, "display") === "none" || E === W));
|
|
1824
1827
|
}
|
|
1825
|
-
if (x === 0 ||
|
|
1828
|
+
if (x === 0 || E === n) return _(!1);
|
|
1826
1829
|
Ir = n, Lr = x;
|
|
1827
|
-
var
|
|
1828
|
-
|
|
1829
|
-
var
|
|
1830
|
-
if (
|
|
1830
|
+
var re = n.nextElementSibling, ie = !1;
|
|
1831
|
+
ie = x === 1;
|
|
1832
|
+
var ae = ii(G, t, H, r, n, i, e, ie);
|
|
1833
|
+
if (ae !== !1) return (ae === 1 || ae === -1) && (ie = ae === 1), Hr = !0, setTimeout(oi, 30), g(), ie && !re ? t.appendChild(H) : n.parentNode.insertBefore(H, ie ? re : n), ee && ar(ee, 0, te - ee.scrollTop), U = H.parentNode, S !== void 0 && !zr && (Br = Math.abs(S - B(n)[T])), v(), _(!0);
|
|
1831
1834
|
}
|
|
1832
1835
|
if (t.contains(H)) return _(!1);
|
|
1833
1836
|
}
|
|
@@ -1910,9 +1913,7 @@ Y.prototype = {
|
|
|
1910
1913
|
case "dragover":
|
|
1911
1914
|
H && (this._onDragOver(e), ri(e));
|
|
1912
1915
|
break;
|
|
1913
|
-
case "selectstart":
|
|
1914
|
-
e.preventDefault();
|
|
1915
|
-
break;
|
|
1916
|
+
case "selectstart": e.preventDefault();
|
|
1916
1917
|
}
|
|
1917
1918
|
},
|
|
1918
1919
|
toArray: function() {
|
|
@@ -1939,7 +1940,7 @@ Y.prototype = {
|
|
|
1939
1940
|
var n = this.options;
|
|
1940
1941
|
if (t === void 0) return n[e];
|
|
1941
1942
|
var r = mr.modifyOption(this, e, t);
|
|
1942
|
-
r === void 0 ?
|
|
1943
|
+
n[e] = r === void 0 ? t : r, e === "group" && Qr(n);
|
|
1943
1944
|
},
|
|
1944
1945
|
destroy: function() {
|
|
1945
1946
|
_r("destroy", this);
|
|
@@ -2116,14 +2117,14 @@ var Ti = rr(function(e, t, n, r) {
|
|
|
2116
2117
|
gi !== n && (gi = n, Ci(), hi = t.scroll, u = t.scrollFn, hi === !0 && (hi = $n(n, !0)));
|
|
2117
2118
|
var d = 0, f = hi;
|
|
2118
2119
|
do {
|
|
2119
|
-
var p = f, m = B(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = z(p),
|
|
2120
|
+
var p = f, m = B(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = z(p), ee = p.scrollLeft, te = p.scrollTop;
|
|
2120
2121
|
p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
|
|
2121
|
-
var
|
|
2122
|
-
if (!X[d]) for (var
|
|
2123
|
-
(X[d].vx !=
|
|
2122
|
+
var E = x && (Math.abs(v - i) <= o && ee + y < C) - (Math.abs(_ - i) <= o && !!ee), ne = S && (Math.abs(g - a) <= o && te + b < w) - (Math.abs(h - a) <= o && !!te);
|
|
2123
|
+
if (!X[d]) for (var re = 0; re <= d; re++) X[re] || (X[re] = {});
|
|
2124
|
+
(X[d].vx != E || X[d].vy != ne || X[d].el !== p) && (X[d].el = p, X[d].vx = E, X[d].vy = ne, clearInterval(X[d].pid), (E != 0 || ne != 0) && (l = !0, X[d].pid = setInterval(function() {
|
|
2124
2125
|
r && this.layer === 0 && Y.active._onTouchMove(bi);
|
|
2125
2126
|
var t = X[this.layer].vy ? X[this.layer].vy * s : 0, n = X[this.layer].vx ? X[this.layer].vx * s : 0;
|
|
2126
|
-
typeof u
|
|
2127
|
+
(typeof u != "function" || u.call(Y.dragged.parentNode[cr], n, t, e, bi, X[this.layer].el) === "continue") && ar(X[this.layer].el, n, t);
|
|
2127
2128
|
}.bind({ layer: d }), 24))), d++;
|
|
2128
2129
|
} while (t.bubbleScroll && f !== c && (f = $n(f, !1)));
|
|
2129
2130
|
_i = l;
|
|
@@ -2328,7 +2329,7 @@ function ea(e) {
|
|
|
2328
2329
|
}
|
|
2329
2330
|
function ta(e, t, n) {
|
|
2330
2331
|
let r = n || Vi();
|
|
2331
|
-
return ia(e, t) ? (e[0] > t[0] ?
|
|
2332
|
+
return ia(e, t) ? (r[0] = e[0] > t[0] ? e[0] : t[0], r[1] = e[1] > t[1] ? e[1] : t[1], r[2] = e[2] < t[2] ? e[2] : t[2], r[3] = e[3] < t[3] ? e[3] : t[3]) : Ui(r), r;
|
|
2332
2333
|
}
|
|
2333
2334
|
function na(e) {
|
|
2334
2335
|
return [e[0], e[3]];
|
|
@@ -2467,7 +2468,7 @@ var va = {
|
|
|
2467
2468
|
"us-ft": 1200 / 3937
|
|
2468
2469
|
}, ya = class {
|
|
2469
2470
|
constructor(e) {
|
|
2470
|
-
this.code_ = e.code, this.units_ = e.units, this.extent_ = e.extent === void 0 ? null : e.extent, this.worldExtent_ = e.worldExtent === void 0 ? null : e.worldExtent, this.axisOrientation_ = e.axisOrientation === void 0 ? "enu" : e.axisOrientation, this.global_ = e.global
|
|
2471
|
+
this.code_ = e.code, this.units_ = e.units, this.extent_ = e.extent === void 0 ? null : e.extent, this.worldExtent_ = e.worldExtent === void 0 ? null : e.worldExtent, this.axisOrientation_ = e.axisOrientation === void 0 ? "enu" : e.axisOrientation, this.global_ = e.global !== void 0 && e.global, this.canWrapX_ = !!(this.global_ && this.extent_), this.getPointResolutionFunc_ = e.getPointResolution, this.defaultTileGrid_ = null, this.metersPerUnit_ = e.metersPerUnit;
|
|
2471
2472
|
}
|
|
2472
2473
|
canWrapX() {
|
|
2473
2474
|
return this.canWrapX_;
|
|
@@ -2617,9 +2618,9 @@ function Va(e, t) {
|
|
|
2617
2618
|
}
|
|
2618
2619
|
//#endregion
|
|
2619
2620
|
//#region ../../node_modules/ol/proj/utm.js
|
|
2620
|
-
var Ha = .9996, Ua = .00669438, Wa = Ua * Ua, Ga = Wa * Ua, Ka = Ua /
|
|
2621
|
+
var Ha = .9996, Ua = .00669438, Wa = Ua * Ua, Ga = Wa * Ua, Ka = Ua / .99330562, qa = Math.sqrt(.99330562), Ja = (1 - qa) / (1 + qa), Ya = Ja * Ja, Xa = Ya * Ja, Za = Xa * Ja, Qa = Za * Ja, $a = 1 - Ua / 4 - 3 * Wa / 64 - 5 * Ga / 256, eo = .002514607064228144, to = 26390466021299826e-22, no = 35 * Ga / 3072, ro = 3 / 2 * Ja - 27 / 32 * Xa + 269 / 512 * Qa, io = 21 / 16 * Ya - 55 / 32 * Za, ao = 151 / 96 * Xa - 417 / 128 * Qa, oo = 1097 / 512 * Za, so = 6378137;
|
|
2621
2622
|
function co(e, t, n) {
|
|
2622
|
-
let r = e - 5e5, i = (n.north ? t : t - 1e7) / Ha / (so * $a), a = i + ro * Math.sin(2 * i) + io * Math.sin(4 * i) + ao * Math.sin(6 * i) + oo * Math.sin(8 * i), o = Math.sin(a), s = o * o, c = Math.cos(a), l = o / c, u = l * l, d = u * u, f = 1 - Ua * s, p = so / Math.sqrt(1 - Ua * s), m =
|
|
2623
|
+
let r = e - 5e5, i = (n.north ? t : t - 1e7) / Ha / (so * $a), a = i + ro * Math.sin(2 * i) + io * Math.sin(4 * i) + ao * Math.sin(6 * i) + oo * Math.sin(8 * i), o = Math.sin(a), s = o * o, c = Math.cos(a), l = o / c, u = l * l, d = u * u, f = 1 - Ua * s, p = so / Math.sqrt(1 - Ua * s), m = .99330562 / f, h = Ka * c ** 2, g = h * h, _ = r / (p * Ha), v = _ * _, y = v * _, b = y * _, x = b * _, S = x * _, C = a - l / m * (v / 2 - b / 24 * (5 + 3 * u + 10 * h - 4 * g - 9 * Ka)) + S / 720 * (61 + 90 * u + 298 * h + 45 * d - 252 * Ka - 3 * g), w = (_ - y / 6 * (1 + 2 * u + h) + x / 120 * (5 - 2 * h + 28 * u - 3 * g + 8 * Ka + 24 * d)) / c;
|
|
2623
2624
|
return w = _a(w + fa(ho(n.number)), -Math.PI, Math.PI), [da(w), da(C)];
|
|
2624
2625
|
}
|
|
2625
2626
|
var lo = -80, uo = 84, fo = -180, po = 180;
|
|
@@ -2916,7 +2917,7 @@ function qo(e, t, n, r, i) {
|
|
|
2916
2917
|
//#endregion
|
|
2917
2918
|
//#region ../../node_modules/ol/geom/flat/intersectsextent.js
|
|
2918
2919
|
function Jo(e, t, n, r, i, a) {
|
|
2919
|
-
return a ??= Ki(Vi(), e, t, n, r), ia(i, a) ? a[0] >= i[0] && a[2] <= i[2] || a[1] >= i[1] && a[3] <= i[3]
|
|
2920
|
+
return a ??= Ki(Vi(), e, t, n, r), ia(i, a) ? a[0] >= i[0] && a[2] <= i[2] || a[1] >= i[1] && a[3] <= i[3] || qo(e, t, n, r, function(e, t) {
|
|
2920
2921
|
return oa(i, e, t);
|
|
2921
2922
|
}) : !1;
|
|
2922
2923
|
}
|
|
@@ -2957,7 +2958,7 @@ function is(e, t) {
|
|
|
2957
2958
|
let n = e[0], r = e[1], i = e[2];
|
|
2958
2959
|
if (t.getMinZoom() > n || n > t.getMaxZoom()) return !1;
|
|
2959
2960
|
let a = t.getFullTileRange(n);
|
|
2960
|
-
return a
|
|
2961
|
+
return !a || a.containsXY(r, i);
|
|
2961
2962
|
}
|
|
2962
2963
|
//#endregion
|
|
2963
2964
|
//#region ../../node_modules/ol/tilegrid/TileGrid.js
|
|
@@ -3390,7 +3391,7 @@ var js = class extends Os {
|
|
|
3390
3391
|
if (ws) this.state = $.LOADED;
|
|
3391
3392
|
else {
|
|
3392
3393
|
let e = this.image_;
|
|
3393
|
-
e.naturalWidth && e.naturalHeight ?
|
|
3394
|
+
this.state = e.naturalWidth && e.naturalHeight ? $.LOADED : $.EMPTY;
|
|
3394
3395
|
}
|
|
3395
3396
|
this.unlistenImage_(), this.changed();
|
|
3396
3397
|
}
|
|
@@ -3415,7 +3416,7 @@ function Fs(e, t, n, r, i) {
|
|
|
3415
3416
|
e.beginPath(), e.moveTo(0, 0), e.lineTo(t, n), e.lineTo(r, i), e.closePath(), e.save(), e.clip(), e.fillRect(0, 0, Math.max(t, r) + 1, Math.max(n, i)), e.restore();
|
|
3416
3417
|
}
|
|
3417
3418
|
function Is(e, t) {
|
|
3418
|
-
return Math.abs(e[t * 4] - 210) > 2 || Math.abs(e[t * 4 + 3] - .
|
|
3419
|
+
return Math.abs(e[t * 4] - 210) > 2 || Math.abs(e[t * 4 + 3] - 191.25) > 2;
|
|
3419
3420
|
}
|
|
3420
3421
|
function Ls() {
|
|
3421
3422
|
if (Ns === void 0) {
|
|
@@ -3476,9 +3477,9 @@ function Bs(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
|
|
|
3476
3477
|
}
|
|
3477
3478
|
let b = na(o);
|
|
3478
3479
|
return s.getTriangles().forEach(function(e, t, n) {
|
|
3479
|
-
let r = e.source, i = e.target, o = r[0][0], s = r[0][1], l = r[1][0], u = r[1][1], f = r[2][0], p = r[2][1], v = h((i[0][0] - b[0]) / a), x = h(-(i[0][1] - b[1]) / a), S = h((i[1][0] - b[0]) / a), C = h(-(i[1][1] - b[1]) / a), w = h((i[2][0] - b[0]) / a), T = h(-(i[2][1] - b[1]) / a),
|
|
3480
|
-
o = 0, s = 0, l -=
|
|
3481
|
-
let
|
|
3480
|
+
let r = e.source, i = e.target, o = r[0][0], s = r[0][1], l = r[1][0], u = r[1][1], f = r[2][0], p = r[2][1], v = h((i[0][0] - b[0]) / a), x = h(-(i[0][1] - b[1]) / a), S = h((i[1][0] - b[0]) / a), C = h(-(i[1][1] - b[1]) / a), w = h((i[2][0] - b[0]) / a), T = h(-(i[2][1] - b[1]) / a), ee = o, te = s;
|
|
3481
|
+
o = 0, s = 0, l -= ee, u -= te, f -= ee, p -= te;
|
|
3482
|
+
let E = ua([
|
|
3482
3483
|
[
|
|
3483
3484
|
l,
|
|
3484
3485
|
u,
|
|
@@ -3508,21 +3509,21 @@ function Bs(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
|
|
|
3508
3509
|
T - x
|
|
3509
3510
|
]
|
|
3510
3511
|
]);
|
|
3511
|
-
if (!
|
|
3512
|
+
if (!E) return;
|
|
3512
3513
|
if (m.save(), m.beginPath(), Ls() || !d) {
|
|
3513
3514
|
m.moveTo(S, C);
|
|
3514
3515
|
let e = v - S, t = x - C;
|
|
3515
3516
|
for (let n = 0; n < 4; n++) m.lineTo(S + h((n + 1) * e / 4), C + h(n * t / 3)), n != 3 && m.lineTo(S + h((n + 1) * e / 4), C + h((n + 1) * t / 3));
|
|
3516
3517
|
m.lineTo(w, T);
|
|
3517
3518
|
} else m.moveTo(S, C), m.lineTo(v, x), m.lineTo(w, T);
|
|
3518
|
-
m.clip(), m.transform(
|
|
3519
|
-
let
|
|
3520
|
-
if (_)
|
|
3519
|
+
m.clip(), m.transform(E[0], E[2], E[1], E[3], v, x), m.translate(g[0] - ee, g[3] - te);
|
|
3520
|
+
let ne;
|
|
3521
|
+
if (_) ne = _.canvas, m.scale(y, -y);
|
|
3521
3522
|
else {
|
|
3522
3523
|
let e = c[0], t = e.extent;
|
|
3523
|
-
|
|
3524
|
+
ne = e.image, m.scale(Q(t) / ne.width, -ea(t) / ne.height);
|
|
3524
3525
|
}
|
|
3525
|
-
m.drawImage(
|
|
3526
|
+
m.drawImage(ne, 0, 0), m.restore();
|
|
3526
3527
|
}), _ && (As(_), Ps.push(_.canvas)), u && (m.save(), m.globalCompositeOperation = "source-over", m.strokeStyle = "black", m.lineWidth = 1, s.getTriangles().forEach(function(e, t, n) {
|
|
3527
3528
|
let r = e.target, i = (r[0][0] - b[0]) / a, o = -(r[0][1] - b[1]) / a, s = (r[1][0] - b[0]) / a, c = -(r[1][1] - b[1]) / a, l = (r[2][0] - b[0]) / a, u = -(r[2][1] - b[1]) / a;
|
|
3528
3529
|
m.beginPath(), m.moveTo(s, c), m.lineTo(i, o), m.lineTo(l, u), m.closePath(), m.stroke();
|
|
@@ -3630,7 +3631,7 @@ var Hs = 10, Us = .25, Ws = class {
|
|
|
3630
3631
|
}
|
|
3631
3632
|
}, Gs = .5, Ks = class extends Os {
|
|
3632
3633
|
constructor(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
3633
|
-
super(i, $.IDLE, d), this.renderEdges_ = u
|
|
3634
|
+
super(i, $.IDLE, d), this.renderEdges_ = u !== void 0 && u, this.pixelRatio_ = o, this.gutter_ = s, this.canvas_ = null, this.sourceTileGrid_ = t, this.targetTileGrid_ = r, this.wrappedTileCoord_ = a || i, this.sourceTiles_ = [], this.sourcesListenerKeys_ = null, this.sourceZ_ = 0, this.clipExtent_ = e.canWrapX() ? e.getExtent() : void 0;
|
|
3634
3635
|
let f = r.getTileCoordExtent(this.wrappedTileCoord_), p = this.targetTileGrid_.getExtent(), m = this.sourceTileGrid_.getExtent(), h = p ? ta(f, p) : f;
|
|
3635
3636
|
if (Yi(h) === 0) {
|
|
3636
3637
|
this.state = $.EMPTY;
|
|
@@ -3757,7 +3758,7 @@ function ec(e, t) {
|
|
|
3757
3758
|
}
|
|
3758
3759
|
function tc(e) {
|
|
3759
3760
|
return e.length === 1 ? e[0] : (function(t, n, r) {
|
|
3760
|
-
|
|
3761
|
+
return t ? e[pa(ns(t), e.length)](t, n, r) : void 0;
|
|
3761
3762
|
});
|
|
3762
3763
|
}
|
|
3763
3764
|
//#endregion
|
|
@@ -3859,7 +3860,7 @@ var ac = class extends xs {
|
|
|
3859
3860
|
}
|
|
3860
3861
|
}, sc = class extends oc {
|
|
3861
3862
|
constructor(e) {
|
|
3862
|
-
super(), this.projection = Do(e.projection), this.attributions_ = cc(e.attributions), this.attributionsCollapsible_ = e.attributionsCollapsible ?? !0, this.loading = !1, this.state_ = e.state === void 0 ? "ready" : e.state, this.wrapX_ = e.wrapX
|
|
3863
|
+
super(), this.projection = Do(e.projection), this.attributions_ = cc(e.attributions), this.attributionsCollapsible_ = e.attributionsCollapsible ?? !0, this.loading = !1, this.state_ = e.state === void 0 ? "ready" : e.state, this.wrapX_ = e.wrapX !== void 0 && e.wrapX, this.interpolate_ = !!e.interpolate, this.viewResolver = null, this.viewRejector = null;
|
|
3863
3864
|
let t = this;
|
|
3864
3865
|
this.viewPromise_ = new Promise(function(e, n) {
|
|
3865
3866
|
t.viewResolver = e, t.viewRejector = n;
|
|
@@ -4024,7 +4025,7 @@ var lc = class extends sc {
|
|
|
4024
4025
|
urls: e.urls,
|
|
4025
4026
|
wrapX: e.wrapX,
|
|
4026
4027
|
transition: e.transition,
|
|
4027
|
-
interpolate: e.interpolate === void 0
|
|
4028
|
+
interpolate: e.interpolate === void 0 || e.interpolate,
|
|
4028
4029
|
key: e.key,
|
|
4029
4030
|
attributionsCollapsible: e.attributionsCollapsible,
|
|
4030
4031
|
zDirection: e.zDirection
|
|
@@ -4132,7 +4133,7 @@ var hc = class extends pc {
|
|
|
4132
4133
|
tileUrlFunction: e.tileUrlFunction,
|
|
4133
4134
|
url: e.url,
|
|
4134
4135
|
urls: e.urls,
|
|
4135
|
-
wrapX: e.wrapX === void 0
|
|
4136
|
+
wrapX: e.wrapX === void 0 || e.wrapX,
|
|
4136
4137
|
transition: e.transition,
|
|
4137
4138
|
attributionsCollapsible: e.attributionsCollapsible,
|
|
4138
4139
|
zDirection: e.zDirection
|
|
@@ -4265,17 +4266,17 @@ function wc(e, t) {
|
|
|
4265
4266
|
}
|
|
4266
4267
|
//#endregion
|
|
4267
4268
|
//#region src/helpers/layer-tools.js
|
|
4268
|
-
var Tc = (e, t) => e?.filter((e) => ["remove", "sort"].filter((e) => t?.get("layerControlDisable")
|
|
4269
|
+
var Tc = (e, t) => e?.filter((e) => ["remove", "sort"].filter((e) => !t?.get("layerControlDisable") || e !== "sort").includes(e)), Ec = (e, t) => e?.filter((e) => {
|
|
4269
4270
|
let n = !0;
|
|
4270
4271
|
return ["remove", "sort"].includes(e) && (n = !1), e === "info" && (n = t.get("description")), e === "config" && (n = t.get("layerConfig")), e === "datetime" && (n = t.get("layerDatetime")), e === "legend" && (n = t.get("layerLegend")), n;
|
|
4271
|
-
}), Dc = (e, t, n) =>
|
|
4272
|
+
}), Dc = (e, t, n) => D`
|
|
4272
4273
|
<button
|
|
4273
4274
|
slot="${e}-icon"
|
|
4274
4275
|
class="no-margin transparent square primary-text small"
|
|
4275
4276
|
>
|
|
4276
|
-
${n ? e :
|
|
4277
|
+
${n ? e : D`<i class="small primary-text">${t}</i>`}
|
|
4277
4278
|
</button>
|
|
4278
|
-
`, Oc = (e, t) =>
|
|
4279
|
+
`, Oc = (e, t) => D`
|
|
4279
4280
|
<button
|
|
4280
4281
|
class="remove-icon no-margin transparent square small action"
|
|
4281
4282
|
@click=${() => {
|
|
@@ -4286,59 +4287,59 @@ var Tc = (e, t) => e?.filter((e) => ["remove", "sort"].filter((e) => t?.get("lay
|
|
|
4286
4287
|
}));
|
|
4287
4288
|
}}
|
|
4288
4289
|
>
|
|
4289
|
-
${e.unstyled ? "x" :
|
|
4290
|
+
${e.unstyled ? "x" : D`<i class="small red-text">${t}</i>`}
|
|
4290
4291
|
</button>
|
|
4291
|
-
`, kc = (e, t, n) =>
|
|
4292
|
+
`, kc = (e, t, n) => D`
|
|
4292
4293
|
<button
|
|
4293
4294
|
class="sort-icon no-margin transparent square primary-text drag-handle small action ${e.layer.get("layerControlDisable") ? "disabled" : ""}"
|
|
4294
4295
|
style="cursor: ns-resize;"
|
|
4295
4296
|
>
|
|
4296
|
-
${n ? "═" :
|
|
4297
|
+
${n ? "═" : D`<i class="small primary-text">${t}</i>`}
|
|
4297
4298
|
</button>
|
|
4298
4299
|
`;
|
|
4299
4300
|
function Ac() {
|
|
4300
4301
|
return {
|
|
4301
|
-
dots:
|
|
4302
|
+
dots: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
4302
4303
|
<title>menu-down</title>
|
|
4303
4304
|
<path d="M7,10L12,15L17,10H7Z" />
|
|
4304
4305
|
</svg>`,
|
|
4305
|
-
info:
|
|
4306
|
+
info: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
4306
4307
|
<title>information-outline</title>
|
|
4307
4308
|
<path
|
|
4308
4309
|
d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"
|
|
4309
4310
|
/>
|
|
4310
4311
|
</svg>`,
|
|
4311
|
-
opacity:
|
|
4312
|
+
opacity: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
4312
4313
|
<title>circle-opacity</title>
|
|
4313
4314
|
<path
|
|
4314
4315
|
d="M18 10V8H20V10H18M18 12V10H16V12H18M18 8V6H16V8H18M16 2.84V4H18C17.37 3.54 16.71 3.15 16 2.84M18 4V6H20C19.42 5.25 18.75 4.58 18 4M20 6V8H21.16C20.85 7.29 20.46 6.63 20 6M22 12C22 11.32 21.93 10.65 21.8 10H20V12H22M16 6V4H14V6H16M16 16H18V14H16V16M18 18H20L20 18V16H18V18M16 20H18L18 20V18H16V20M14 21.8C14.7 21.66 15.36 21.44 16 21.16V20H14V21.8M18 14H20V12H18V14M16 8H14V10H16V8M20 16H21.16C21.44 15.36 21.66 14.7 21.8 14H20V16M16 12H14V14H16V12M12 18V16H14V14H12V12H14V10H12V8H14V6H12V4H14V2.2C13.35 2.07 12.69 2 12 2C6.5 2 2 6.5 2 12S6.5 22 12 22V20H14V18H12M14 18H16V16H14V18Z"
|
|
4315
4316
|
/>
|
|
4316
4317
|
</svg>`,
|
|
4317
|
-
config:
|
|
4318
|
+
config: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
4318
4319
|
<title>tune</title>
|
|
4319
4320
|
<path
|
|
4320
4321
|
d="M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z"
|
|
4321
4322
|
/>
|
|
4322
4323
|
</svg>`,
|
|
4323
|
-
datetime:
|
|
4324
|
+
datetime: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
4324
4325
|
<title>calendar-clock-outline</title>
|
|
4325
4326
|
<path
|
|
4326
4327
|
d="M6 1V3H5C3.89 3 3 3.89 3 5V19C3 20.1 3.89 21 5 21H11.1C12.36 22.24 14.09 23 16 23C19.87 23 23 19.87 23 16C23 14.09 22.24 12.36 21 11.1V5C21 3.9 20.11 3 19 3H18V1H16V3H8V1M5 5H19V7H5M5 9H19V9.67C18.09 9.24 17.07 9 16 9C12.13 9 9 12.13 9 16C9 17.07 9.24 18.09 9.67 19H5M16 11.15C18.68 11.15 20.85 13.32 20.85 16C20.85 18.68 18.68 20.85 16 20.85C13.32 20.85 11.15 18.68 11.15 16C11.15 13.32 13.32 11.15 16 11.15M15 13V16.69L18.19 18.53L18.94 17.23L16.5 15.82V13Z"
|
|
4327
4328
|
/>
|
|
4328
4329
|
</svg>`,
|
|
4329
|
-
legend:
|
|
4330
|
+
legend: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
4330
4331
|
<title>map-legend</title>
|
|
4331
4332
|
<path
|
|
4332
4333
|
d="M9,3L3.36,4.9C3.15,4.97 3,5.15 3,5.38V20.5A0.5,0.5 0 0,0 3.5,21L3.66,20.97L9,18.9L15,21L20.64,19.1C20.85,19.03 21,18.85 21,18.62V3.5A0.5,0.5 0 0,0 20.5,3L20.34,3.03L15,5.1L9,3M8,5.45V17.15L5,18.31V6.46L8,5.45M10,5.47L14,6.87V18.53L10,17.13V5.47M19,5.7V17.54L16,18.55V6.86L19,5.7M7.46,6.3L5.57,6.97V9.12L7.46,8.45V6.3M7.46,9.05L5.57,9.72V11.87L7.46,11.2V9.05M7.46,11.8L5.57,12.47V14.62L7.46,13.95V11.8M7.46,14.55L5.57,15.22V17.37L7.46,16.7V14.55Z"
|
|
4333
4334
|
/>
|
|
4334
4335
|
</svg>`,
|
|
4335
|
-
remove:
|
|
4336
|
+
remove: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
4336
4337
|
<title>delete-outline</title>
|
|
4337
4338
|
<path
|
|
4338
4339
|
d="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z"
|
|
4339
4340
|
/>
|
|
4340
4341
|
</svg>`,
|
|
4341
|
-
sort:
|
|
4342
|
+
sort: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
4342
4343
|
<title>drag-horizontal-variant</title>
|
|
4343
4344
|
<path d="M21 11H3V9H21V11M21 13H3V15H21V13Z" />
|
|
4344
4345
|
</svg>`
|
|
@@ -4369,22 +4370,22 @@ var Nc = Ke(class extends qe {
|
|
|
4369
4370
|
return e;
|
|
4370
4371
|
}
|
|
4371
4372
|
update(e, [t]) {
|
|
4372
|
-
if (t ===
|
|
4373
|
+
if (t === Ee || t === O) return t;
|
|
4373
4374
|
let n = e.element, r = e.name;
|
|
4374
4375
|
if (e.type === Ge.PROPERTY) {
|
|
4375
|
-
if (t === n[r]) return
|
|
4376
|
+
if (t === n[r]) return Ee;
|
|
4376
4377
|
} else if (e.type === Ge.BOOLEAN_ATTRIBUTE) {
|
|
4377
|
-
if (!!t === n.hasAttribute(r)) return
|
|
4378
|
-
} else if (e.type === Ge.ATTRIBUTE && n.getAttribute(r) === t + "") return
|
|
4378
|
+
if (!!t === n.hasAttribute(r)) return Ee;
|
|
4379
|
+
} else if (e.type === Ge.ATTRIBUTE && n.getAttribute(r) === t + "") return Ee;
|
|
4379
4380
|
return et(e), t;
|
|
4380
4381
|
}
|
|
4381
4382
|
}), Pc = class extends qe {
|
|
4382
4383
|
constructor(e) {
|
|
4383
|
-
if (super(e), this.it =
|
|
4384
|
+
if (super(e), this.it = O, e.type !== Ge.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
4384
4385
|
}
|
|
4385
4386
|
render(e) {
|
|
4386
|
-
if (e ===
|
|
4387
|
-
if (e ===
|
|
4387
|
+
if (e === O || e == null) return this._t = void 0, this.it = e;
|
|
4388
|
+
if (e === Ee) return e;
|
|
4388
4389
|
if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
4389
4390
|
if (e === this.it) return this._t;
|
|
4390
4391
|
this.it = e;
|
|
@@ -4442,10 +4443,10 @@ var Lc = "@import \"https://eox.at/fonts/inter/inter.css\";@import \"https://eox
|
|
|
4442
4443
|
function T() {
|
|
4443
4444
|
c !== void 0 && clearTimeout(c), u = 0, i = l = a = c = void 0;
|
|
4444
4445
|
}
|
|
4445
|
-
function
|
|
4446
|
+
function ee() {
|
|
4446
4447
|
return c === void 0 ? s : w(h());
|
|
4447
4448
|
}
|
|
4448
|
-
function
|
|
4449
|
+
function te() {
|
|
4449
4450
|
var e = h(), n = S(e);
|
|
4450
4451
|
if (i = arguments, a = this, l = e, n) {
|
|
4451
4452
|
if (c === void 0) return y(l);
|
|
@@ -4453,7 +4454,7 @@ var Lc = "@import \"https://eox.at/fonts/inter/inter.css\";@import \"https://eox
|
|
|
4453
4454
|
}
|
|
4454
4455
|
return c === void 0 && (c = setTimeout(C, t)), s;
|
|
4455
4456
|
}
|
|
4456
|
-
return
|
|
4457
|
+
return te.cancel = T, te.flush = ee, te;
|
|
4457
4458
|
}
|
|
4458
4459
|
function _(e, t, r) {
|
|
4459
4460
|
var i = !0, a = !0;
|
|
@@ -4487,7 +4488,7 @@ var Lc = "@import \"https://eox.at/fonts/inter/inter.css\";@import \"https://eox
|
|
|
4487
4488
|
return n || s.test(e) ? c(e.slice(2), n ? 2 : 8) : a.test(e) ? r : +e;
|
|
4488
4489
|
}
|
|
4489
4490
|
t.exports = _;
|
|
4490
|
-
})))(), 1), zc = (e) => e ??
|
|
4491
|
+
})))(), 1), zc = (e) => e ?? O, Bc = class extends k {
|
|
4491
4492
|
static properties = {
|
|
4492
4493
|
unstyled: { type: Boolean },
|
|
4493
4494
|
noShadow: { type: Boolean },
|
|
@@ -4502,13 +4503,13 @@ var Lc = "@import \"https://eox.at/fonts/inter/inter.css\";@import \"https://eox
|
|
|
4502
4503
|
return this.#e ? this.#e.length > 1 ? this.#e : this.#e[0] : null;
|
|
4503
4504
|
}
|
|
4504
4505
|
set layerLegend(e) {
|
|
4505
|
-
e ? Array.isArray(e) ?
|
|
4506
|
+
this.#e = e ? Array.isArray(e) ? e.map((e, t) => ({
|
|
4506
4507
|
id: (this.layer?.get("id") ?? "") + t,
|
|
4507
4508
|
...e
|
|
4508
|
-
})) :
|
|
4509
|
+
})) : [{
|
|
4509
4510
|
id: (this.layer?.get("id") ?? "") + 0,
|
|
4510
4511
|
...e
|
|
4511
|
-
}] :
|
|
4512
|
+
}] : null;
|
|
4512
4513
|
}
|
|
4513
4514
|
createRenderRoot() {
|
|
4514
4515
|
return this.noShadow ? this : super.createRenderRoot();
|
|
@@ -4519,15 +4520,15 @@ var Lc = "@import \"https://eox.at/fonts/inter/inter.css\";@import \"https://eox
|
|
|
4519
4520
|
}).observe(this.renderRoot.querySelector(".legend-container"));
|
|
4520
4521
|
}
|
|
4521
4522
|
render() {
|
|
4522
|
-
return customElements.get("color-legend") || console.error("Please import `color-legend-element` in order to use layerLegend"),
|
|
4523
|
+
return customElements.get("color-legend") || console.error("Please import `color-legend-element` in order to use layerLegend"), D`
|
|
4523
4524
|
<style>
|
|
4524
4525
|
${this.#t}
|
|
4525
4526
|
${!this.unstyled && this.#n}
|
|
4526
4527
|
</style>
|
|
4527
|
-
${A(this.layerLegend, () =>
|
|
4528
|
+
${A(this.layerLegend, () => D`
|
|
4528
4529
|
<div class="legend-container">
|
|
4529
4530
|
<!-- Render color-legend-->
|
|
4530
|
-
${this.#e.map((e, t, n) =>
|
|
4531
|
+
${this.#e.map((e, t, n) => D`
|
|
4531
4532
|
<color-legend
|
|
4532
4533
|
id="${e.id}"
|
|
4533
4534
|
width=${e.width ?? 325}
|
|
@@ -4543,7 +4544,7 @@ var Lc = "@import \"https://eox.at/fonts/inter/inter.css\";@import \"https://eox
|
|
|
4543
4544
|
.marginRight=${8}
|
|
4544
4545
|
>
|
|
4545
4546
|
</color-legend>
|
|
4546
|
-
${t === n.length - 1 ?
|
|
4547
|
+
${t === n.length - 1 ? O : D`<div class="separator"></div>`}
|
|
4547
4548
|
`)}
|
|
4548
4549
|
</div>
|
|
4549
4550
|
`)}
|
|
@@ -4570,7 +4571,7 @@ var Lc = "@import \"https://eox.at/fonts/inter/inter.css\";@import \"https://eox
|
|
|
4570
4571
|
customElements.define("eox-layercontrol-layer-legend", Bc);
|
|
4571
4572
|
//#endregion
|
|
4572
4573
|
//#region src/components/layer-config.js
|
|
4573
|
-
var Vc = class extends
|
|
4574
|
+
var Vc = class extends k {
|
|
4574
4575
|
static properties = {
|
|
4575
4576
|
layer: { attribute: !1 },
|
|
4576
4577
|
unstyled: { type: Boolean },
|
|
@@ -4616,13 +4617,13 @@ var Vc = class extends Ue {
|
|
|
4616
4617
|
disable_collapse: !0,
|
|
4617
4618
|
disable_properties: !0
|
|
4618
4619
|
};
|
|
4619
|
-
return
|
|
4620
|
+
return D`
|
|
4620
4621
|
<style>
|
|
4621
4622
|
${this.#i}
|
|
4622
4623
|
${!this.unstyled && this.#a}
|
|
4623
4624
|
</style>
|
|
4624
|
-
${A(this.layerConfig, () =>
|
|
4625
|
-
${A(this.layerConfig.legend, () =>
|
|
4625
|
+
${A(this.layerConfig, () => D`
|
|
4626
|
+
${A(this.layerConfig.legend, () => D`
|
|
4626
4627
|
<eox-layercontrol-layer-legend
|
|
4627
4628
|
.noShadow=${!0}
|
|
4628
4629
|
.unstyled=${this.unstyled}
|
|
@@ -4674,7 +4675,7 @@ var Vc = class extends Ue {
|
|
|
4674
4675
|
customElements.define("eox-layercontrol-layerconfig", Vc);
|
|
4675
4676
|
//#endregion
|
|
4676
4677
|
//#region src/components/layer-datetime.js
|
|
4677
|
-
var Hc = class extends
|
|
4678
|
+
var Hc = class extends k {
|
|
4678
4679
|
static properties = {
|
|
4679
4680
|
unstyled: { type: Boolean },
|
|
4680
4681
|
noShadow: { type: Boolean },
|
|
@@ -4698,12 +4699,12 @@ var Hc = class extends Ue {
|
|
|
4698
4699
|
})), this.layerDatetime.currentStep = r, this.requestUpdate());
|
|
4699
4700
|
}
|
|
4700
4701
|
render() {
|
|
4701
|
-
return customElements.get("eox-timecontrol") || console.error("Please import @eox/timecontrol in order to use layerDatetime"),
|
|
4702
|
+
return customElements.get("eox-timecontrol") || console.error("Please import @eox/timecontrol in order to use layerDatetime"), D`
|
|
4702
4703
|
<style>
|
|
4703
4704
|
${this.#t}
|
|
4704
4705
|
${!this.unstyled && this.#n}
|
|
4705
4706
|
</style>
|
|
4706
|
-
${A(this.layerDatetime, () =>
|
|
4707
|
+
${A(this.layerDatetime, () => D`
|
|
4707
4708
|
<eox-timecontrol
|
|
4708
4709
|
.initDate=${this.layerDatetime.currentStep ? [this.layerDatetime.currentStep] : void 0}
|
|
4709
4710
|
.controlValues=${[{
|
|
@@ -4731,7 +4732,7 @@ var Hc = class extends Ue {
|
|
|
4731
4732
|
customElements.define("eox-layercontrol-layer-datetime", Hc);
|
|
4732
4733
|
//#endregion
|
|
4733
4734
|
//#region src/components/tools-items.js
|
|
4734
|
-
var Uc = class extends
|
|
4735
|
+
var Uc = class extends k {
|
|
4735
4736
|
static properties = {
|
|
4736
4737
|
actions: { attribute: !1 },
|
|
4737
4738
|
selectedTab: { state: !0 },
|
|
@@ -4749,19 +4750,19 @@ var Uc = class extends Ue {
|
|
|
4749
4750
|
#e = (e) => (this.selectedTab === e || this.toolsAsList) && "highlighted";
|
|
4750
4751
|
render() {
|
|
4751
4752
|
let e = this.tabs, t = this.actions, n = t.length + e.length > 1;
|
|
4752
|
-
return
|
|
4753
|
+
return D`
|
|
4753
4754
|
<style>
|
|
4754
4755
|
${this.#t}
|
|
4755
4756
|
${!this.unstyled && this.#n}
|
|
4756
4757
|
</style>
|
|
4757
4758
|
<div class="${this.toolsAsList ? "listed" : "tabbed"}">
|
|
4758
4759
|
<!-- Navigation for tabs and actions -->
|
|
4759
|
-
${A(n, () =>
|
|
4760
|
+
${A(n, () => D`
|
|
4760
4761
|
<nav>
|
|
4761
|
-
${A(!this.toolsAsList, () =>
|
|
4762
|
+
${A(!this.toolsAsList, () => D`
|
|
4762
4763
|
<div>
|
|
4763
4764
|
<!-- Labels for tabs -->
|
|
4764
|
-
${Ic(e, (e, t) =>
|
|
4765
|
+
${Ic(e, (e, t) => D`
|
|
4765
4766
|
<label
|
|
4766
4767
|
class=${this.#e(t)}
|
|
4767
4768
|
@click=${() => this.selectedTab = t}
|
|
@@ -4773,7 +4774,7 @@ var Uc = class extends Ue {
|
|
|
4773
4774
|
</div>
|
|
4774
4775
|
<div>
|
|
4775
4776
|
<!-- Icons for actions -->
|
|
4776
|
-
${Ic(t, (e) =>
|
|
4777
|
+
${Ic(t, (e) => D`
|
|
4777
4778
|
<span>
|
|
4778
4779
|
<!-- Customizable icon for each action -->
|
|
4779
4780
|
<slot name=${`${e}-icon`}>${e}</slot>
|
|
@@ -4788,8 +4789,8 @@ var Uc = class extends Ue {
|
|
|
4788
4789
|
style="overflow: hidden; white-space: normal"
|
|
4789
4790
|
>
|
|
4790
4791
|
<!-- Content for each tab -->
|
|
4791
|
-
${Ic(e, (t, n) =>
|
|
4792
|
-
${A(this.toolsAsList, () =>
|
|
4792
|
+
${Ic(e, (t, n) => D`
|
|
4793
|
+
${A(this.toolsAsList, () => D`
|
|
4793
4794
|
<label>
|
|
4794
4795
|
<!-- Customizable icon for each tab -->
|
|
4795
4796
|
<slot name=${`${t}-icon`}>${t}</slot>
|
|
@@ -4800,7 +4801,7 @@ var Uc = class extends Ue {
|
|
|
4800
4801
|
<!-- Content slot for each tab -->
|
|
4801
4802
|
<slot name=${`${t}-content`}>${t}</slot>
|
|
4802
4803
|
</div>
|
|
4803
|
-
${A(this.toolsAsList && n < e.length - 1, () =>
|
|
4804
|
+
${A(this.toolsAsList && n < e.length - 1, () => D`<hr class="small" />`)}
|
|
4804
4805
|
`)}
|
|
4805
4806
|
</figure>
|
|
4806
4807
|
</div>
|
|
@@ -4840,7 +4841,7 @@ var Uc = class extends Ue {
|
|
|
4840
4841
|
customElements.define("eox-layercontrol-tools-items", Uc);
|
|
4841
4842
|
//#endregion
|
|
4842
4843
|
//#region src/components/layer-tools.js
|
|
4843
|
-
var Wc = class extends
|
|
4844
|
+
var Wc = class extends k {
|
|
4844
4845
|
static properties = {
|
|
4845
4846
|
layer: { attribute: !1 },
|
|
4846
4847
|
tools: { attribute: !1 },
|
|
@@ -4868,7 +4869,7 @@ var Wc = class extends Ue {
|
|
|
4868
4869
|
constructor() {
|
|
4869
4870
|
super(), this.layer = null, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, this.open = !1, this.toolsAutoExpand = !1, setTimeout(() => {
|
|
4870
4871
|
let e = this.parentElement || this.getRootNode()?.host;
|
|
4871
|
-
this.embedded = e?.tagName === "EOX-LAYERCONTROL-LAYER", (this.open === void 0 || this.open === !1 || this.open === null) && (this.open = this.toolsAutoExpand ? !!this.layer?.getVisible() : this.embedded === !1
|
|
4872
|
+
this.embedded = e?.tagName === "EOX-LAYERCONTROL-LAYER", (this.open === void 0 || this.open === !1 || this.open === null) && (this.open = this.toolsAutoExpand ? !!this.layer?.getVisible() : this.embedded === !1 || !!this.layer?.get("layerControlToolsExpand"));
|
|
4872
4873
|
}), this.customEditorInterfaces = [], this.colormapRegistry = null;
|
|
4873
4874
|
}
|
|
4874
4875
|
createRenderRoot() {
|
|
@@ -4889,7 +4890,7 @@ var Wc = class extends Ue {
|
|
|
4889
4890
|
_removeButton = (e) => Oc(this, e);
|
|
4890
4891
|
_sortButton = (e) => kc(this, e, this.unstyled);
|
|
4891
4892
|
_button = (e, t) => Dc(e, t, this.unstyled);
|
|
4892
|
-
_getDefaultTools = (e) =>
|
|
4893
|
+
_getDefaultTools = (e) => D`
|
|
4893
4894
|
<div slot="info-content">
|
|
4894
4895
|
${Fc(this.layer.get("description"))}
|
|
4895
4896
|
</div>
|
|
@@ -4912,7 +4913,7 @@ var Wc = class extends Ue {
|
|
|
4912
4913
|
</div>
|
|
4913
4914
|
<div slot="config-content">
|
|
4914
4915
|
<!-- Layer configuration -->
|
|
4915
|
-
${A(this.layer.get("layerConfig"), () =>
|
|
4916
|
+
${A(this.layer.get("layerConfig"), () => D`
|
|
4916
4917
|
<eox-layercontrol-layerconfig
|
|
4917
4918
|
slot="config-content"
|
|
4918
4919
|
.layer=${this.layer}
|
|
@@ -4928,7 +4929,7 @@ var Wc = class extends Ue {
|
|
|
4928
4929
|
</div>
|
|
4929
4930
|
<div slot="datetime-content">
|
|
4930
4931
|
<!-- Layer datetime -->
|
|
4931
|
-
${A(this.layer.get("layerDatetime"), () =>
|
|
4932
|
+
${A(this.layer.get("layerDatetime"), () => D`
|
|
4932
4933
|
<eox-layercontrol-layer-datetime
|
|
4933
4934
|
slot="datetime-content"
|
|
4934
4935
|
.noShadow=${!0}
|
|
@@ -4942,7 +4943,7 @@ var Wc = class extends Ue {
|
|
|
4942
4943
|
</div>
|
|
4943
4944
|
<div slot="legend-content">
|
|
4944
4945
|
<!-- Layer legend -->
|
|
4945
|
-
${A(this.layer.get("layerLegend"), () =>
|
|
4946
|
+
${A(this.layer.get("layerLegend"), () => D`
|
|
4946
4947
|
<eox-layercontrol-layer-legend
|
|
4947
4948
|
slot="legend-content"
|
|
4948
4949
|
.noShadow=${!0}
|
|
@@ -4958,13 +4959,13 @@ var Wc = class extends Ue {
|
|
|
4958
4959
|
`;
|
|
4959
4960
|
render() {
|
|
4960
4961
|
let e = Tc(this.tools, this.layer), t = Ec(this.tools, this.layer), n = e?.length, r = t?.length;
|
|
4961
|
-
return
|
|
4962
|
+
return D`
|
|
4962
4963
|
<style>
|
|
4963
4964
|
${this.#t}
|
|
4964
4965
|
${!this.unstyled && this.#n}
|
|
4965
4966
|
</style>
|
|
4966
|
-
${A(n + r > 0, () =>
|
|
4967
|
-
${A(
|
|
4967
|
+
${A(n + r > 0, () => D`
|
|
4968
|
+
${A(n !== 1 || r !== 0, () => D`
|
|
4968
4969
|
<details
|
|
4969
4970
|
class="tools"
|
|
4970
4971
|
.open=${Nc(this.open)}
|
|
@@ -5080,7 +5081,7 @@ var Gc = (e) => {
|
|
|
5080
5081
|
bubbles: !0,
|
|
5081
5082
|
detail: n
|
|
5082
5083
|
})), t.requestUpdate();
|
|
5083
|
-
}, qc = class extends
|
|
5084
|
+
}, qc = class extends k {
|
|
5084
5085
|
static properties = {
|
|
5085
5086
|
layer: { attribute: !1 },
|
|
5086
5087
|
layerType: { attribute: !1 },
|
|
@@ -5136,7 +5137,7 @@ var Gc = (e) => {
|
|
|
5136
5137
|
layer: this.layer,
|
|
5137
5138
|
tools: this.tools,
|
|
5138
5139
|
toolsAsList: this.toolsAsList
|
|
5139
|
-
}),
|
|
5140
|
+
}), D`
|
|
5140
5141
|
<style>
|
|
5141
5142
|
${this.#n}
|
|
5142
5143
|
${!this.unstyled && this.#r}
|
|
@@ -5146,13 +5147,13 @@ var Gc = (e) => {
|
|
|
5146
5147
|
display: var(--layer-type-visibility);
|
|
5147
5148
|
}
|
|
5148
5149
|
</style>
|
|
5149
|
-
${A(this.layer, () =>
|
|
5150
|
+
${A(this.layer, () => D`
|
|
5150
5151
|
<!-- Render the layer -->
|
|
5151
5152
|
<nav
|
|
5152
5153
|
class="layer ${r} ${t} ${n} responsive tiny-space"
|
|
5153
5154
|
>
|
|
5154
5155
|
${A(!this.unstyled, () => {
|
|
5155
|
-
if (this.#e("color")) return
|
|
5156
|
+
if (this.#e("color")) return D`
|
|
5156
5157
|
<i class="small" style="color: ${this.#e("color")}">
|
|
5157
5158
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
5158
5159
|
<title>square-rounded</title>
|
|
@@ -5163,8 +5164,8 @@ var Gc = (e) => {
|
|
|
5163
5164
|
</i>
|
|
5164
5165
|
`;
|
|
5165
5166
|
switch (this.layerType) {
|
|
5166
|
-
case "group": return
|
|
5167
|
-
case "draw": return
|
|
5167
|
+
case "group": return D` <i class="small"> </i> `;
|
|
5168
|
+
case "draw": return D`
|
|
5168
5169
|
<i class="small grey-text">
|
|
5169
5170
|
<svg
|
|
5170
5171
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -5177,7 +5178,7 @@ var Gc = (e) => {
|
|
|
5177
5178
|
</svg>
|
|
5178
5179
|
</i>
|
|
5179
5180
|
`;
|
|
5180
|
-
case "vector": return
|
|
5181
|
+
case "vector": return D`
|
|
5181
5182
|
<i class="small grey-text">
|
|
5182
5183
|
<svg
|
|
5183
5184
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -5190,7 +5191,7 @@ var Gc = (e) => {
|
|
|
5190
5191
|
</svg>
|
|
5191
5192
|
</i>
|
|
5192
5193
|
`;
|
|
5193
|
-
case "raster": return
|
|
5194
|
+
case "raster": return D`
|
|
5194
5195
|
<i class="small grey-text">
|
|
5195
5196
|
<svg
|
|
5196
5197
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -5203,7 +5204,7 @@ var Gc = (e) => {
|
|
|
5203
5204
|
</svg>
|
|
5204
5205
|
</i>
|
|
5205
5206
|
`;
|
|
5206
|
-
default: return
|
|
5207
|
+
default: return D` <i class="small grey-text"> </i> `;
|
|
5207
5208
|
}
|
|
5208
5209
|
})}
|
|
5209
5210
|
|
|
@@ -5214,7 +5215,7 @@ var Gc = (e) => {
|
|
|
5214
5215
|
>
|
|
5215
5216
|
</div>
|
|
5216
5217
|
|
|
5217
|
-
${A(o && !this.toolsAutoExpand, () =>
|
|
5218
|
+
${A(o && !this.toolsAutoExpand, () => D`
|
|
5218
5219
|
<button
|
|
5219
5220
|
class="transparent square primary-text small action tools ${this.tools.length === 1 ? this.tools[0] : "dots"}"
|
|
5220
5221
|
@click=${() => {
|
|
@@ -5238,7 +5239,7 @@ var Gc = (e) => {
|
|
|
5238
5239
|
type=${i}
|
|
5239
5240
|
.checked=${Nc(e)}
|
|
5240
5241
|
@click=${this.#t}
|
|
5241
|
-
disabled=${r ||
|
|
5242
|
+
disabled=${r || O}
|
|
5242
5243
|
/>
|
|
5243
5244
|
<span>
|
|
5244
5245
|
<i>
|
|
@@ -5264,7 +5265,7 @@ var Gc = (e) => {
|
|
|
5264
5265
|
`)}
|
|
5265
5266
|
|
|
5266
5267
|
<!-- Render layer tools -->
|
|
5267
|
-
${A(o && !s, () =>
|
|
5268
|
+
${A(o && !s, () => D`
|
|
5268
5269
|
<eox-layercontrol-layer-tools
|
|
5269
5270
|
.noShadow=${!1}
|
|
5270
5271
|
.layer=${this.layer}
|
|
@@ -5284,7 +5285,7 @@ var Gc = (e) => {
|
|
|
5284
5285
|
customElements.define("eox-layercontrol-layer", qc);
|
|
5285
5286
|
//#endregion
|
|
5286
5287
|
//#region src/components/layer-group.js
|
|
5287
|
-
var Jc = class extends
|
|
5288
|
+
var Jc = class extends k {
|
|
5288
5289
|
static properties = {
|
|
5289
5290
|
group: { attribute: !1 },
|
|
5290
5291
|
idProperty: { attribute: "id-property" },
|
|
@@ -5326,20 +5327,20 @@ var Jc = class extends Ue {
|
|
|
5326
5327
|
}
|
|
5327
5328
|
render() {
|
|
5328
5329
|
let e = !!this.group?.get("layerControlExpand"), t = jc(this.group.getLayers())?.length;
|
|
5329
|
-
return
|
|
5330
|
+
return D`
|
|
5330
5331
|
<style>
|
|
5331
5332
|
${this.#e}
|
|
5332
5333
|
${!this.unstyled && this.#t}
|
|
5333
5334
|
</style>
|
|
5334
|
-
${A(this.group, () =>
|
|
5335
|
+
${A(this.group, () => D`
|
|
5335
5336
|
<!-- Render the details element with the layer control -->
|
|
5336
5337
|
<details
|
|
5337
5338
|
class="max-width"
|
|
5338
|
-
open=${e ||
|
|
5339
|
+
open=${e || O}
|
|
5339
5340
|
data-children-length=${t}
|
|
5340
5341
|
>
|
|
5341
5342
|
<summary class="square">
|
|
5342
|
-
${A(t > 0, () =>
|
|
5343
|
+
${A(t > 0, () => D`
|
|
5343
5344
|
<!-- Open/close arrow -->
|
|
5344
5345
|
<div class="arrow-container">
|
|
5345
5346
|
<i class="small">
|
|
@@ -5439,7 +5440,7 @@ var Yc = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
5439
5440
|
function T() {
|
|
5440
5441
|
return s === void 0 ? o : C(m());
|
|
5441
5442
|
}
|
|
5442
|
-
function
|
|
5443
|
+
function ee() {
|
|
5443
5444
|
var e = m(), n = x(e);
|
|
5444
5445
|
if (r = arguments, i = this, c = e, n) {
|
|
5445
5446
|
if (s === void 0) return v(c);
|
|
@@ -5447,7 +5448,7 @@ var Yc = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
5447
5448
|
}
|
|
5448
5449
|
return s === void 0 && (s = setTimeout(S, t)), o;
|
|
5449
5450
|
}
|
|
5450
|
-
return
|
|
5451
|
+
return ee.cancel = w, ee.flush = T, ee;
|
|
5451
5452
|
}
|
|
5452
5453
|
function g(e) {
|
|
5453
5454
|
var t = typeof e;
|
|
@@ -5480,7 +5481,7 @@ var Yc = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
5480
5481
|
let a = i.querySelector("ul");
|
|
5481
5482
|
Mi(t, n, r, e), ji(a, t, n, e);
|
|
5482
5483
|
}
|
|
5483
|
-
}, Zc = class extends
|
|
5484
|
+
}, Zc = class extends k {
|
|
5484
5485
|
static properties = {
|
|
5485
5486
|
idProperty: { attribute: "id-property" },
|
|
5486
5487
|
layers: { attribute: !1 },
|
|
@@ -5525,20 +5526,20 @@ var Yc = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
5525
5526
|
}
|
|
5526
5527
|
render() {
|
|
5527
5528
|
let e = this.layers ? jc(this.layers).reverse() : [];
|
|
5528
|
-
return
|
|
5529
|
+
return D`
|
|
5529
5530
|
<style>
|
|
5530
5531
|
${this.#e}
|
|
5531
5532
|
${!this.unstyled && this.#t}
|
|
5532
5533
|
</style>
|
|
5533
5534
|
<ul class="list no-space">
|
|
5534
|
-
${A(this.layers, () =>
|
|
5535
|
-
${it(e, (e) => e, (e) =>
|
|
5535
|
+
${A(this.layers, () => D`
|
|
5536
|
+
${it(e, (e) => e, (e) => D`
|
|
5536
5537
|
<li
|
|
5537
5538
|
data-layer="${e.get(this.idProperty)}"
|
|
5538
5539
|
data-type="${Ii(e, this.map)}"
|
|
5539
5540
|
class="square"
|
|
5540
5541
|
>
|
|
5541
|
-
${e.getLayers ?
|
|
5542
|
+
${e.getLayers ? D`
|
|
5542
5543
|
<eox-layercontrol-layer-group
|
|
5543
5544
|
.noShadow=${this.noShadow}
|
|
5544
5545
|
.group=${e}
|
|
@@ -5556,7 +5557,7 @@ var Yc = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
5556
5557
|
@changed=${() => this.requestUpdate()}
|
|
5557
5558
|
>
|
|
5558
5559
|
</eox-layercontrol-layer-group>
|
|
5559
|
-
` :
|
|
5560
|
+
` : D`
|
|
5560
5561
|
<eox-layercontrol-layer
|
|
5561
5562
|
.noShadow=${this.noShadow}
|
|
5562
5563
|
.layer=${e}
|
|
@@ -5589,7 +5590,7 @@ customElements.define("eox-layercontrol-layer-list", Zc);
|
|
|
5589
5590
|
var Qc = (e) => {
|
|
5590
5591
|
let t = e.querySelector("select[name=optional]"), n = t ? t.value : null, r = Ni(e.layers.getArray(), "layerControlOptional", !0).find((t) => (t.get(e.idProperty) || t.ol_uid) === n);
|
|
5591
5592
|
r?.set("layerControlOptional", !1), r?.setVisible(!0), e.dispatchEvent(new CustomEvent("changed", { bubbles: !0 })), e.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach((e) => e.requestUpdate()), e.requestUpdate();
|
|
5592
|
-
}, $c = class extends
|
|
5593
|
+
}, $c = class extends k {
|
|
5593
5594
|
static properties = {
|
|
5594
5595
|
idProperty: { attribute: "id-property" },
|
|
5595
5596
|
layers: { attribute: !1 },
|
|
@@ -5610,7 +5611,7 @@ var Qc = (e) => {
|
|
|
5610
5611
|
Qc(this);
|
|
5611
5612
|
}
|
|
5612
5613
|
render() {
|
|
5613
|
-
return
|
|
5614
|
+
return D`
|
|
5614
5615
|
<nav class="bottom-padding large-padding">
|
|
5615
5616
|
<div class="field suffix border small max">
|
|
5616
5617
|
<!-- Dropdown select element -->
|
|
@@ -5626,7 +5627,7 @@ var Qc = (e) => {
|
|
|
5626
5627
|
<!-- Mapping through filtered layers list to generate dropdown options -->
|
|
5627
5628
|
${Ni(this.layers.getArray(), "layerControlOptional", !0).map((e) => {
|
|
5628
5629
|
let t = e.get(this.idProperty) || e.ol_uid, n = e.get(this.titleProperty), r = `layer ${e.get(this.idProperty)}`;
|
|
5629
|
-
return
|
|
5630
|
+
return D` <option value="${t}">${n || r}</option> `;
|
|
5630
5631
|
})}
|
|
5631
5632
|
</select>
|
|
5632
5633
|
|
|
@@ -5684,7 +5685,7 @@ var il = (e, t) => {
|
|
|
5684
5685
|
t.jsonInput = JSON.stringify(i);
|
|
5685
5686
|
}, al = (e, t) => {
|
|
5686
5687
|
t.open = e || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
|
|
5687
|
-
}, ol = class extends
|
|
5688
|
+
}, ol = class extends k {
|
|
5688
5689
|
static properties = {
|
|
5689
5690
|
eoxMap: {
|
|
5690
5691
|
attribute: !1,
|
|
@@ -5725,24 +5726,24 @@ var il = (e, t) => {
|
|
|
5725
5726
|
}
|
|
5726
5727
|
render() {
|
|
5727
5728
|
let e = {
|
|
5728
|
-
add:
|
|
5729
|
+
add: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
5729
5730
|
<title>layers-plus</title>
|
|
5730
5731
|
<path
|
|
5731
5732
|
d="M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z"
|
|
5732
5733
|
/>
|
|
5733
5734
|
</svg>`,
|
|
5734
|
-
plus:
|
|
5735
|
+
plus: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
5735
5736
|
<title>plus</title>
|
|
5736
5737
|
<path d="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" />
|
|
5737
5738
|
</svg>`,
|
|
5738
|
-
search:
|
|
5739
|
+
search: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
5739
5740
|
<title>magnify</title>
|
|
5740
5741
|
<path
|
|
5741
5742
|
d="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"
|
|
5742
5743
|
/>
|
|
5743
5744
|
</svg>`
|
|
5744
|
-
}, t = this.open ? "open" : "close", n = this.open === "url", r = this.open === "json", i = !_n(this.urlInput) || this.searchLoad ? !0 :
|
|
5745
|
-
return
|
|
5745
|
+
}, t = this.open ? "open" : "close", n = this.open === "url", r = this.open === "json", i = !_n(this.urlInput) || this.searchLoad ? !0 : O;
|
|
5746
|
+
return D`
|
|
5746
5747
|
<style>
|
|
5747
5748
|
${this.#o}
|
|
5748
5749
|
</style>
|
|
@@ -5773,11 +5774,11 @@ var il = (e, t) => {
|
|
|
5773
5774
|
class="add-icon transparent square primary-text small"
|
|
5774
5775
|
@click=${() => this.#a(this.open ? null : "url")}
|
|
5775
5776
|
>
|
|
5776
|
-
${this.unstyled ? "Add Layer" :
|
|
5777
|
+
${this.unstyled ? "Add Layer" : D`<i class="small primary-text">${e.add}</i>`}
|
|
5777
5778
|
</button>
|
|
5778
5779
|
</nav>
|
|
5779
5780
|
<div class="eox-add ${t}" style="padding: 15px 0">
|
|
5780
|
-
${n ?
|
|
5781
|
+
${n ? D`
|
|
5781
5782
|
<nav>
|
|
5782
5783
|
<!-- Input field for URL -->
|
|
5783
5784
|
<div class="eox-add-layer-col field border small responsive">
|
|
@@ -5795,13 +5796,13 @@ var il = (e, t) => {
|
|
|
5795
5796
|
disabled=${i}
|
|
5796
5797
|
@click=${this.#t}
|
|
5797
5798
|
>
|
|
5798
|
-
${this.unstyled ? "Search" :
|
|
5799
|
+
${this.unstyled ? "Search" : D`<i class="small">${e.search}</i>`}
|
|
5799
5800
|
</button>
|
|
5800
5801
|
</nav>
|
|
5801
5802
|
|
|
5802
5803
|
<!-- Display layers for WMS capabilities -->
|
|
5803
|
-
${this.wmsCapabilities ?
|
|
5804
|
-
${this.wmsCapabilities.Capability.Layer.Layer.map((e) =>
|
|
5804
|
+
${this.wmsCapabilities ? D`<ul class="search-lists">
|
|
5805
|
+
${this.wmsCapabilities.Capability.Layer.Layer.map((e) => D`
|
|
5805
5806
|
<li class="search-list">
|
|
5806
5807
|
${e.Name}
|
|
5807
5808
|
<!-- Button to add layer -->
|
|
@@ -5813,8 +5814,8 @@ var il = (e, t) => {
|
|
|
5813
5814
|
</button>
|
|
5814
5815
|
</li>
|
|
5815
5816
|
`)}
|
|
5816
|
-
</ul>` :
|
|
5817
|
-
` :
|
|
5817
|
+
</ul>` : O}
|
|
5818
|
+
` : D`
|
|
5818
5819
|
<!-- Textarea for JSON input -->
|
|
5819
5820
|
<div class="field small border no-margin">
|
|
5820
5821
|
<textarea
|
|
@@ -5830,10 +5831,10 @@ var il = (e, t) => {
|
|
|
5830
5831
|
<button
|
|
5831
5832
|
class="add-layer-icon json-add-layer small square small-margin"
|
|
5832
5833
|
style="position: absolute; bottom: 15px; right: 0; z-index: 1;"
|
|
5833
|
-
disabled=${yn(this.jsonInput)
|
|
5834
|
+
disabled=${!yn(this.jsonInput) || O}
|
|
5834
5835
|
@click=${this.#r}
|
|
5835
5836
|
>
|
|
5836
|
-
${this.unstyled ? "Add JSON" :
|
|
5837
|
+
${this.unstyled ? "Add JSON" : D`<i class="small">${e.plus}</i>`}
|
|
5837
5838
|
</button>
|
|
5838
5839
|
`}
|
|
5839
5840
|
</div>
|
|
@@ -5907,7 +5908,7 @@ var sl = (e, t) => {
|
|
|
5907
5908
|
//#endregion
|
|
5908
5909
|
//#region src/main.js
|
|
5909
5910
|
cl();
|
|
5910
|
-
var dl = class extends
|
|
5911
|
+
var dl = class extends k {
|
|
5911
5912
|
static properties = {
|
|
5912
5913
|
for: { type: String },
|
|
5913
5914
|
idProperty: { attribute: "id-property" },
|
|
@@ -5977,7 +5978,7 @@ var dl = class extends Ue {
|
|
|
5977
5978
|
}
|
|
5978
5979
|
render() {
|
|
5979
5980
|
let e = this.map?.getLayers().getArray(), t = e && Ni(e, "layerControlOptional", !0)?.length > 0;
|
|
5980
|
-
return
|
|
5981
|
+
return D`
|
|
5981
5982
|
<style>
|
|
5982
5983
|
${!this.unstyled && this.#r}
|
|
5983
5984
|
${this.styleOverride}
|
|
@@ -5990,7 +5991,7 @@ var dl = class extends Ue {
|
|
|
5990
5991
|
</span>
|
|
5991
5992
|
|
|
5992
5993
|
<!-- Conditional rendering of add layers component -->
|
|
5993
|
-
${A(this.addExternalLayers && this.#e?.addOrUpdateLayer, () =>
|
|
5994
|
+
${A(this.addExternalLayers && this.#e?.addOrUpdateLayer, () => D`
|
|
5994
5995
|
<eox-layercontrol-add-layers
|
|
5995
5996
|
.noShadow=${!0}
|
|
5996
5997
|
.eoxMap=${this.#e}
|
|
@@ -5999,7 +6000,7 @@ var dl = class extends Ue {
|
|
|
5999
6000
|
`)}
|
|
6000
6001
|
|
|
6001
6002
|
<!-- Conditional rendering of layer list component -->
|
|
6002
|
-
${A(this.map, () =>
|
|
6003
|
+
${A(this.map, () => D`
|
|
6003
6004
|
<eox-layercontrol-layer-list
|
|
6004
6005
|
.noShadow=${!0}
|
|
6005
6006
|
class="layers"
|
|
@@ -6022,7 +6023,7 @@ var dl = class extends Ue {
|
|
|
6022
6023
|
`)}
|
|
6023
6024
|
|
|
6024
6025
|
<!-- Conditional rendering of optional list component -->
|
|
6025
|
-
${A(t, () =>
|
|
6026
|
+
${A(t, () => D`
|
|
6026
6027
|
<eox-layercontrol-optional-list
|
|
6027
6028
|
.noShadow=${!0}
|
|
6028
6029
|
.idProperty=${this.idProperty}
|