ol-spirit 1.4.7 → 1.4.8
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.
|
@@ -31274,7 +31274,7 @@ hs([8, 32946], () => import("./deflate-60bcbda9.js").then((i) => i.default));
|
|
|
31274
31274
|
hs(32773, () => import("./packbits-adbb43a1.js").then((i) => i.default));
|
|
31275
31275
|
hs(
|
|
31276
31276
|
34887,
|
|
31277
|
-
() => import("./lerc-
|
|
31277
|
+
() => import("./lerc-18ef4ac6.js").then(async (i) => (await i.zstd.init(), i)).then((i) => i.default)
|
|
31278
31278
|
);
|
|
31279
31279
|
hs(50001, () => import("./webimage-1041724b.js").then((i) => i.default));
|
|
31280
31280
|
function Ic(i, t, e, n = 1) {
|
|
@@ -43095,7 +43095,7 @@ Gc.prototype.showTarget = function(i) {
|
|
|
43095
43095
|
Gc.prototype.hideTarget = function() {
|
|
43096
43096
|
this.removeOverlay(this._targetOverlay), this._targetOverlay = void 0;
|
|
43097
43097
|
};
|
|
43098
|
-
const zl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAlJJREFUOE+NlM1LVFEYxp/nOFYWlBBtwhY6M0El7VoEtSnBPgy9U7NoY0QSYS0K/4D+gmwRJYaEtQoG56pBHwi5qEWroIyiZm4bW7mzoExnzhN3dG73Xq8f7+6e93l/5/26hxIMCYu4dZcOGmP6BJ0C0Lbi/k7wpbV2BBPZz6tiAFACSShw5mebTHXhjsSrABqSggBUKD60zWYAo60LYQ0jAflPW1jZ9hzAyTVA8eNppbaeRWHfn7ojAjS58j0JNzYJq8kI3rduOoj5DzxfOkTLD7Eyl0iNWOGVH2yITol9ABpDl1Zldbje0wBoHG9Q0K2QcFEwXXDbpiIZ57wOSn5bAijBQeumB5YzXjE65RkA7cG3+MCOp68nlW9y5WEJ/tDqNiM3czgOnAews64Q1Y1idjKxn46XIzQW8s3LzTTHgXMA9gRAqAdudiIRmCtdoFgI+X7KzeyKAnvKUyA6gpKpIVvM9ieX7I1IuhLyTcvNnIgA4ZR7CTwOiZZkdA5j2dqEA3O8LkLj4W0QcQ3FzHAUmJ9tYuXvNwAtofAKoSeWeOGfGeGMwN7Yas2psr0Vz/b+jgL9L8e7TOhRYt/WOJTYj/H0UNCqiO62DD96bwEc3ST0nVLpYyiwmgxcznI/ifeQdmwA/aWqOYLJtq9hXfRxqHuc8iUCo+sBBVyEm3ka1yQD/QH0lO6KvJkEjT8IG2foK/JqYMXzVyb+lL1WauE0Cu2LyZetV5fzZTfR+AbAgRXZjFI8jkLa/01XWe3133CauVILxdpyi+pEMftjrRgf+A8RhtgVbCZ0HgAAAABJRU5ErkJggg==",
|
|
43098
|
+
const zl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAlJJREFUOE+NlM1LVFEYxp/nOFYWlBBtwhY6M0El7VoEtSnBPgy9U7NoY0QSYS0K/4D+gmwRJYaEtQoG56pBHwi5qEWroIyiZm4bW7mzoExnzhN3dG73Xq8f7+6e93l/5/26hxIMCYu4dZcOGmP6BJ0C0Lbi/k7wpbV2BBPZz6tiAFACSShw5mebTHXhjsSrABqSggBUKD60zWYAo60LYQ0jAflPW1jZ9hzAyTVA8eNppbaeRWHfn7ojAjS58j0JNzYJq8kI3rduOoj5DzxfOkTLD7Eyl0iNWOGVH2yITol9ABpDl1Zldbje0wBoHG9Q0K2QcFEwXXDbpiIZ57wOSn5bAijBQeumB5YzXjE65RkA7cG3+MCOp68nlW9y5WEJ/tDqNiM3czgOnAews64Q1Y1idjKxn46XIzQW8s3LzTTHgXMA9gRAqAdudiIRmCtdoFgI+X7KzeyKAnvKUyA6gpKpIVvM9ieX7I1IuhLyTcvNnIgA4ZR7CTwOiZZkdA5j2dqEA3O8LkLj4W0QcQ3FzHAUmJ9tYuXvNwAtofAKoSeWeOGfGeGMwN7Yas2psr0Vz/b+jgL9L8e7TOhRYt/WOJTYj/H0UNCqiO62DD96bwEc3ST0nVLpYyiwmgxcznI/ifeQdmwA/aWqOYLJtq9hXfRxqHuc8iUCo+sBBVyEm3ka1yQD/QH0lO6KvJkEjT8IG2foK/JqYMXzVyb+lL1WauE0Cu2LyZetV5fzZTfR+AbAgRXZjFI8jkLa/01XWe3133CauVILxdpyi+pEMftjrRgf+A8RhtgVbCZ0HgAAAABJRU5ErkJggg==", ht = {
|
|
43099
43099
|
events: ["load", "change", "error", "propertychange", "update-props"],
|
|
43100
43100
|
tdtTk: "55741f2ad97e4af08eee8576d7ba9b39",
|
|
43101
43101
|
byKey: "ApTJzdkyN1DdFKkRAE6QIDtzihNaf6IWJsT-nQ_2eMoO4PN__0Tzhl2-WgJtXFSp",
|
|
@@ -43310,7 +43310,10 @@ const zl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAA
|
|
|
43310
43310
|
2e6,
|
|
43311
43311
|
0.92
|
|
43312
43312
|
]
|
|
43313
|
-
}
|
|
43313
|
+
},
|
|
43314
|
+
customLayerTypes: [
|
|
43315
|
+
// { type: 'custom-1', handler }
|
|
43316
|
+
]
|
|
43314
43317
|
}, zx = Symbol(), lh = "el", MA = "is-", ys = (i, t, e, n, s) => {
|
|
43315
43318
|
let r = `${i}-${t}`;
|
|
43316
43319
|
return e && (r += `-${e}`), n && (r += `__${n}`), s && (r += `--${s}`), r;
|
|
@@ -49836,7 +49839,7 @@ async function NN(i, t) {
|
|
|
49836
49839
|
function xl(i, t = []) {
|
|
49837
49840
|
const e = Ms();
|
|
49838
49841
|
yo(() => {
|
|
49839
|
-
Array.from(/* @__PURE__ */ new Set([...
|
|
49842
|
+
Array.from(/* @__PURE__ */ new Set([...ht.events, ...t])).forEach((s) => {
|
|
49840
49843
|
let r;
|
|
49841
49844
|
_p(i) ? r = typeof i.value == "function" ? i.value() : i.value : r = i, r.on(s, (...o) => {
|
|
49842
49845
|
e == null || e.emit(s, ...o);
|
|
@@ -51241,7 +51244,7 @@ function zN(i, t, e) {
|
|
|
51241
51244
|
function c(w) {
|
|
51242
51245
|
s = w.getStyle(), w.set("editing", !0);
|
|
51243
51246
|
const T = w.get("type") || w.getGeometry().getType(), S = [];
|
|
51244
|
-
T === "Point" ? S.push(qt(
|
|
51247
|
+
T === "Point" ? S.push(qt(ht.editStyle.point(w))) : T.toLocaleLowerCase().indexOf("line") !== -1 ? (S.push(qt(ht.editStyle.line(w))), S.push(Nd(S[0].stroke_.color_))) : (S.push(qt(ht.editStyle.face(w))), S.push(Nd(S[0].stroke_.color_))), w.setStyle(S), a = w;
|
|
51245
51248
|
}
|
|
51246
51249
|
function u(w) {
|
|
51247
51250
|
const T = w.clone();
|
|
@@ -52260,7 +52263,7 @@ function KN(i) {
|
|
|
52260
52263
|
const o = {
|
|
52261
52264
|
freehand: !1,
|
|
52262
52265
|
zIndex: 1e3,
|
|
52263
|
-
airParams:
|
|
52266
|
+
airParams: ht.defaultAirParams,
|
|
52264
52267
|
onDrawFinish: null
|
|
52265
52268
|
};
|
|
52266
52269
|
function a(d, f) {
|
|
@@ -52268,12 +52271,12 @@ function KN(i) {
|
|
|
52268
52271
|
s = Object.assign({}, o, f), e = new en({ wrapX: !1 }), n = new bn({
|
|
52269
52272
|
source: e,
|
|
52270
52273
|
zIndex: s.zIndex,
|
|
52271
|
-
style:
|
|
52274
|
+
style: ht.drawStyle[g]
|
|
52272
52275
|
}), r = [], i.value.addLayer(n), t = new HE({
|
|
52273
52276
|
source: e,
|
|
52274
52277
|
type: d === "Rect" ? "Circle" : d,
|
|
52275
52278
|
freehand: s.freehand,
|
|
52276
|
-
style:
|
|
52279
|
+
style: ht.drawStyle[g],
|
|
52277
52280
|
geometryFunction: d === "Rect" ? VN() : null
|
|
52278
52281
|
}), t.on("drawend", ({ feature: _ }) => {
|
|
52279
52282
|
d.startsWith("Multi") ? r.push(_) : (s.onDrawFinish && s.onDrawFinish(_), l());
|
|
@@ -52376,8 +52379,8 @@ var ZN = class extends wi {
|
|
|
52376
52379
|
constructor(t) {
|
|
52377
52380
|
t = t || {}, super(t), this.element.className = ("ol-ext-check ol-ext-radio " + (t.className || "")).trim();
|
|
52378
52381
|
}
|
|
52379
|
-
},
|
|
52380
|
-
|
|
52382
|
+
}, ct = {};
|
|
52383
|
+
ct.create = function(i, t) {
|
|
52381
52384
|
t = t || {};
|
|
52382
52385
|
var e;
|
|
52383
52386
|
if (i === "TEXT")
|
|
@@ -52405,7 +52408,7 @@ ht.create = function(i, t) {
|
|
|
52405
52408
|
case "options": {
|
|
52406
52409
|
if (/select/i.test(i))
|
|
52407
52410
|
for (var s in t.options)
|
|
52408
|
-
|
|
52411
|
+
ct.create("OPTION", {
|
|
52409
52412
|
html: s,
|
|
52410
52413
|
value: t.options[s],
|
|
52411
52414
|
parent: e
|
|
@@ -52413,17 +52416,17 @@ ht.create = function(i, t) {
|
|
|
52413
52416
|
break;
|
|
52414
52417
|
}
|
|
52415
52418
|
case "style": {
|
|
52416
|
-
|
|
52419
|
+
ct.setStyle(e, t.style);
|
|
52417
52420
|
break;
|
|
52418
52421
|
}
|
|
52419
52422
|
case "change":
|
|
52420
52423
|
case "click": {
|
|
52421
|
-
|
|
52424
|
+
ct.addListener(e, n, t[n]);
|
|
52422
52425
|
break;
|
|
52423
52426
|
}
|
|
52424
52427
|
case "on": {
|
|
52425
52428
|
for (var r in t.on)
|
|
52426
|
-
|
|
52429
|
+
ct.addListener(e, r, t.on[r]);
|
|
52427
52430
|
break;
|
|
52428
52431
|
}
|
|
52429
52432
|
case "checked": {
|
|
@@ -52438,8 +52441,8 @@ ht.create = function(i, t) {
|
|
|
52438
52441
|
}
|
|
52439
52442
|
return e;
|
|
52440
52443
|
};
|
|
52441
|
-
|
|
52442
|
-
var t =
|
|
52444
|
+
ct.createSwitch = function(i) {
|
|
52445
|
+
var t = ct.create("INPUT", {
|
|
52443
52446
|
type: "checkbox",
|
|
52444
52447
|
on: i.on,
|
|
52445
52448
|
click: i.click,
|
|
@@ -52448,8 +52451,8 @@ ht.createSwitch = function(i) {
|
|
|
52448
52451
|
}), e = Object.assign({ input: t }, i || {});
|
|
52449
52452
|
return new qN(e), t;
|
|
52450
52453
|
};
|
|
52451
|
-
|
|
52452
|
-
var t =
|
|
52454
|
+
ct.createCheck = function(i) {
|
|
52455
|
+
var t = ct.create("INPUT", {
|
|
52453
52456
|
name: i.name,
|
|
52454
52457
|
type: i.type === "radio" ? "radio" : "checkbox",
|
|
52455
52458
|
on: i.on,
|
|
@@ -52457,35 +52460,35 @@ ht.createCheck = function(i) {
|
|
|
52457
52460
|
}), e = Object.assign({ input: t }, i || {});
|
|
52458
52461
|
return i.type === "radio" ? new JN(e) : new v0(e), t;
|
|
52459
52462
|
};
|
|
52460
|
-
|
|
52463
|
+
ct.setHTML = function(i, t) {
|
|
52461
52464
|
t instanceof Element ? i.appendChild(t) : t !== void 0 && (i.innerHTML = t);
|
|
52462
52465
|
};
|
|
52463
|
-
|
|
52466
|
+
ct.appendText = function(i, t) {
|
|
52464
52467
|
i.appendChild(document.createTextNode(t || ""));
|
|
52465
52468
|
};
|
|
52466
|
-
|
|
52469
|
+
ct.addListener = function(i, t, e, n) {
|
|
52467
52470
|
typeof t == "string" && (t = t.split(" ")), t.forEach(function(s) {
|
|
52468
52471
|
i.addEventListener(s, e, n);
|
|
52469
52472
|
});
|
|
52470
52473
|
};
|
|
52471
|
-
|
|
52474
|
+
ct.removeListener = function(i, t, e) {
|
|
52472
52475
|
typeof t == "string" && (t = t.split(" ")), t.forEach(function(n) {
|
|
52473
52476
|
i.removeEventListener(n, e);
|
|
52474
52477
|
});
|
|
52475
52478
|
};
|
|
52476
|
-
|
|
52479
|
+
ct.show = function(i) {
|
|
52477
52480
|
i.style.display = "";
|
|
52478
52481
|
};
|
|
52479
|
-
|
|
52482
|
+
ct.hide = function(i) {
|
|
52480
52483
|
i.style.display = "none";
|
|
52481
52484
|
};
|
|
52482
|
-
|
|
52483
|
-
return
|
|
52485
|
+
ct.hidden = function(i) {
|
|
52486
|
+
return ct.getStyle(i, "display") === "none";
|
|
52484
52487
|
};
|
|
52485
|
-
|
|
52488
|
+
ct.toggle = function(i) {
|
|
52486
52489
|
i.style.display = i.style.display === "none" ? "" : "none";
|
|
52487
52490
|
};
|
|
52488
|
-
|
|
52491
|
+
ct.setStyle = function(i, t) {
|
|
52489
52492
|
for (var e in t)
|
|
52490
52493
|
switch (e) {
|
|
52491
52494
|
case "top":
|
|
@@ -52503,7 +52506,7 @@ ht.setStyle = function(i, t) {
|
|
|
52503
52506
|
i.style[e] = t[e];
|
|
52504
52507
|
}
|
|
52505
52508
|
};
|
|
52506
|
-
|
|
52509
|
+
ct.getStyle = function(i, t) {
|
|
52507
52510
|
var e, n = (i.ownerDocument || document).defaultView;
|
|
52508
52511
|
if (n && n.getComputedStyle)
|
|
52509
52512
|
t = t.replace(/([A-Z])/g, "-$1").toLowerCase(), e = n.getComputedStyle(i, null).getPropertyValue(t);
|
|
@@ -52516,13 +52519,13 @@ ht.getStyle = function(i, t) {
|
|
|
52516
52519
|
}(e);
|
|
52517
52520
|
return /px$/.test(e) ? parseInt(e) : e;
|
|
52518
52521
|
};
|
|
52519
|
-
|
|
52520
|
-
return i.offsetHeight +
|
|
52522
|
+
ct.outerHeight = function(i) {
|
|
52523
|
+
return i.offsetHeight + ct.getStyle(i, "marginBottom");
|
|
52521
52524
|
};
|
|
52522
|
-
|
|
52523
|
-
return i.offsetWidth +
|
|
52525
|
+
ct.outerWidth = function(i) {
|
|
52526
|
+
return i.offsetWidth + ct.getStyle(i, "marginLeft");
|
|
52524
52527
|
};
|
|
52525
|
-
|
|
52528
|
+
ct.offsetRect = function(i) {
|
|
52526
52529
|
var t = i.getBoundingClientRect();
|
|
52527
52530
|
return {
|
|
52528
52531
|
top: t.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),
|
|
@@ -52531,14 +52534,14 @@ ht.offsetRect = function(i) {
|
|
|
52531
52534
|
width: t.width || t.right - t.left
|
|
52532
52535
|
};
|
|
52533
52536
|
};
|
|
52534
|
-
|
|
52537
|
+
ct.getFixedOffset = function(i) {
|
|
52535
52538
|
var t = {
|
|
52536
52539
|
left: 0,
|
|
52537
52540
|
top: 0
|
|
52538
52541
|
}, e = function(n) {
|
|
52539
52542
|
if (!n)
|
|
52540
52543
|
return t;
|
|
52541
|
-
if (
|
|
52544
|
+
if (ct.getStyle(n, "position") === "absolute" && ct.getStyle(n, "transform") !== "none") {
|
|
52542
52545
|
var s = n.getBoundingClientRect();
|
|
52543
52546
|
return t.left += s.left, t.top += s.top, t;
|
|
52544
52547
|
}
|
|
@@ -52546,7 +52549,7 @@ ht.getFixedOffset = function(i) {
|
|
|
52546
52549
|
};
|
|
52547
52550
|
return e(i.offsetParent);
|
|
52548
52551
|
};
|
|
52549
|
-
|
|
52552
|
+
ct.positionRect = function(i, t) {
|
|
52550
52553
|
var e = 0, n = 0, s = function(r) {
|
|
52551
52554
|
if (r)
|
|
52552
52555
|
return e += r.offsetLeft, n += r.offsetTop, s(r.offsetParent);
|
|
@@ -52558,7 +52561,7 @@ ht.positionRect = function(i, t) {
|
|
|
52558
52561
|
};
|
|
52559
52562
|
return s(i.offsetParent);
|
|
52560
52563
|
};
|
|
52561
|
-
|
|
52564
|
+
ct.scrollDiv = function(i, t) {
|
|
52562
52565
|
t = t || {};
|
|
52563
52566
|
var e = !1, n = 0, s, r = 0, o = typeof t.onmove == "function" ? t.onmove : function() {
|
|
52564
52567
|
}, a = t.vertical ? "screenY" : "screenX", l = t.vertical ? "scrollTop" : "scrollLeft", h = !1, c, u, d = 0, f = function() {
|
|
@@ -52571,7 +52574,7 @@ ht.scrollDiv = function(i, t) {
|
|
|
52571
52574
|
c = I / y, w.style.height = c * 100 + "%", w.style.top = i.scrollTop / y * 100 + "%", p.style.height = I + "px", I > y - 0.5 ? p.classList.add("ol-100pc") : p.classList.remove("ol-100pc");
|
|
52572
52575
|
}
|
|
52573
52576
|
}, _ = function(I) {
|
|
52574
|
-
I.target.classList.contains("ol-noscroll") || (h = !1, e = I[a], r = /* @__PURE__ */ new Date(), i.classList.add("ol-move"), I.preventDefault(), window.addEventListener("pointermove", m),
|
|
52577
|
+
I.target.classList.contains("ol-noscroll") || (h = !1, e = I[a], r = /* @__PURE__ */ new Date(), i.classList.add("ol-move"), I.preventDefault(), window.addEventListener("pointermove", m), ct.addListener(window, ["pointerup", "pointercancel"], S));
|
|
52575
52578
|
}, m = function(I) {
|
|
52576
52579
|
if (e !== !1) {
|
|
52577
52580
|
var y = (u ? -1 / c : 1) * (e - I[a]);
|
|
@@ -52588,18 +52591,18 @@ ht.scrollDiv = function(i, t) {
|
|
|
52588
52591
|
}, p, w;
|
|
52589
52592
|
if (t.vertical && t.minibar) {
|
|
52590
52593
|
var T = function(I) {
|
|
52591
|
-
i.removeEventListener("pointermove", T), i.parentNode.classList.add("ol-miniscroll"), w =
|
|
52594
|
+
i.removeEventListener("pointermove", T), i.parentNode.classList.add("ol-miniscroll"), w = ct.create("DIV"), p = ct.create("DIV", {
|
|
52592
52595
|
className: "ol-scroll",
|
|
52593
52596
|
html: w
|
|
52594
52597
|
}), i.parentNode.insertBefore(p, i), w.addEventListener("pointerdown", function(y) {
|
|
52595
52598
|
u = !0, _(y);
|
|
52596
|
-
}), t.mousewheel && (
|
|
52599
|
+
}), t.mousewheel && (ct.addListener(
|
|
52597
52600
|
p,
|
|
52598
52601
|
["mousewheel", "DOMMouseScroll", "onmousewheel"],
|
|
52599
52602
|
function(y) {
|
|
52600
52603
|
b(y);
|
|
52601
52604
|
}
|
|
52602
|
-
),
|
|
52605
|
+
), ct.addListener(
|
|
52603
52606
|
w,
|
|
52604
52607
|
["mousewheel", "DOMMouseScroll", "onmousewheel"],
|
|
52605
52608
|
function(y) {
|
|
@@ -52611,7 +52614,7 @@ ht.scrollDiv = function(i, t) {
|
|
|
52611
52614
|
f();
|
|
52612
52615
|
});
|
|
52613
52616
|
}
|
|
52614
|
-
i.style["touch-action"] = "none", i.style.overflow = "hidden", i.classList.add("ol-scrolldiv"),
|
|
52617
|
+
i.style["touch-action"] = "none", i.style.overflow = "hidden", i.classList.add("ol-scrolldiv"), ct.addListener(i, ["pointerdown"], function(I) {
|
|
52615
52618
|
u = !1, _(I);
|
|
52616
52619
|
}), i.addEventListener("click", function(I) {
|
|
52617
52620
|
i.classList.contains("ol-move") && (I.preventDefault(), I.stopPropagation());
|
|
@@ -52619,12 +52622,12 @@ ht.scrollDiv = function(i, t) {
|
|
|
52619
52622
|
var S = function(I) {
|
|
52620
52623
|
r = /* @__PURE__ */ new Date() - r, r > 100 || u ? n = 0 : r > 0 && (n = ((n || 0) + (e - I[a]) / r) / 2), x(t.animate === !1 ? 0 : n * 200), e = !1, n = 0, r = 0, i.classList.contains("ol-move") ? i.classList.remove("ol-hasClick") : (i.classList.add("ol-hasClick"), setTimeout(function() {
|
|
52621
52624
|
i.classList.remove("ol-hasClick");
|
|
52622
|
-
}, 500)), u = !1, window.removeEventListener("pointermove", m),
|
|
52625
|
+
}, 500)), u = !1, window.removeEventListener("pointermove", m), ct.removeListener(window, ["pointerup", "pointercancel"], S);
|
|
52623
52626
|
}, b = function(I) {
|
|
52624
52627
|
var y = Math.max(-1, Math.min(1, I.wheelDelta || -I.detail));
|
|
52625
52628
|
return i.classList.add("ol-move"), i[l] -= y * 30, i.classList.remove("ol-move"), !1;
|
|
52626
52629
|
};
|
|
52627
|
-
return t.mousewheel &&
|
|
52630
|
+
return t.mousewheel && ct.addListener(
|
|
52628
52631
|
i,
|
|
52629
52632
|
["mousewheel", "DOMMouseScroll", "onmousewheel"],
|
|
52630
52633
|
b
|
|
@@ -52632,7 +52635,7 @@ ht.scrollDiv = function(i, t) {
|
|
|
52632
52635
|
refresh: f
|
|
52633
52636
|
};
|
|
52634
52637
|
};
|
|
52635
|
-
|
|
52638
|
+
ct.dispatchEvent = function(i, t) {
|
|
52636
52639
|
var e;
|
|
52637
52640
|
try {
|
|
52638
52641
|
e = new CustomEvent(i);
|
|
@@ -52641,28 +52644,28 @@ ht.dispatchEvent = function(i, t) {
|
|
|
52641
52644
|
}
|
|
52642
52645
|
t.dispatchEvent(e);
|
|
52643
52646
|
};
|
|
52644
|
-
|
|
52647
|
+
ct.setCursor = function(i, t) {
|
|
52645
52648
|
i instanceof Gc && (i = i.getTargetElement()), !("ontouchstart" in window) && i instanceof Element && (i.style.cursor = t);
|
|
52646
52649
|
};
|
|
52647
52650
|
var Uc = class extends Qg {
|
|
52648
52651
|
constructor(t) {
|
|
52649
52652
|
t = t || {};
|
|
52650
52653
|
var e = document.createElement("div");
|
|
52651
|
-
t.element = e, super(t), typeof t.offsetBox == "number" ? this.offsetBox = [t.offsetBox, t.offsetBox, t.offsetBox, t.offsetBox] : this.offsetBox = t.offsetBox, this.closeBox = t.closeBox, this.onclose = t.onclose, this.onshow = t.onshow,
|
|
52654
|
+
t.element = e, super(t), typeof t.offsetBox == "number" ? this.offsetBox = [t.offsetBox, t.offsetBox, t.offsetBox, t.offsetBox] : this.offsetBox = t.offsetBox, this.closeBox = t.closeBox, this.onclose = t.onclose, this.onshow = t.onshow, ct.create("BUTTON", {
|
|
52652
52655
|
className: "closeBox" + (t.closeBox ? " hasclosebox" : ""),
|
|
52653
52656
|
type: "button",
|
|
52654
52657
|
click: (function() {
|
|
52655
52658
|
this.hide();
|
|
52656
52659
|
}).bind(this),
|
|
52657
52660
|
parent: e
|
|
52658
|
-
}), t.anchor !== !1 &&
|
|
52661
|
+
}), t.anchor !== !1 && ct.create("DIV", {
|
|
52659
52662
|
className: "anchor",
|
|
52660
52663
|
parent: e
|
|
52661
|
-
}), this.content =
|
|
52664
|
+
}), this.content = ct.create("DIV", {
|
|
52662
52665
|
html: t.html || "",
|
|
52663
52666
|
className: "ol-popup-content",
|
|
52664
52667
|
parent: e
|
|
52665
|
-
}), t.minibar &&
|
|
52668
|
+
}), t.minibar && ct.scrollDiv(this.content, {
|
|
52666
52669
|
vertical: !0,
|
|
52667
52670
|
mousewheel: !0,
|
|
52668
52671
|
minibar: !0
|
|
@@ -52769,7 +52772,7 @@ var Uc = class extends Qg {
|
|
|
52769
52772
|
show(t, e) {
|
|
52770
52773
|
!e && typeof t == "string" && (e = t, t = null), t === !0 && (t = this.getPosition());
|
|
52771
52774
|
var n = this, s = this.getMap();
|
|
52772
|
-
if (s && (e && e !== this.prevHTML && (this.prevHTML = e, this.content.innerHTML = "", e instanceof Element ? this.content.appendChild(e) :
|
|
52775
|
+
if (s && (e && e !== this.prevHTML && (this.prevHTML = e, this.content.innerHTML = "", e instanceof Element ? this.content.appendChild(e) : ct.create("DIV", {
|
|
52773
52776
|
html: e,
|
|
52774
52777
|
parent: this.content
|
|
52775
52778
|
}), Array.prototype.slice.call(this.content.querySelectorAll("img")).forEach(function(l) {
|
|
@@ -52806,7 +52809,7 @@ function QN(i, { onMeasureFinish: t, zIndex: e = 1e3 }) {
|
|
|
52806
52809
|
a || (o = new en({}), a = new bn({
|
|
52807
52810
|
source: o,
|
|
52808
52811
|
zIndex: e,
|
|
52809
|
-
style:
|
|
52812
|
+
style: ht.measureFinishStyle
|
|
52810
52813
|
}), i.value.addLayer(a), i.value.on("pointermove", g), i.value.getViewport().addEventListener("mouseout", () => {
|
|
52811
52814
|
h == null || h.classList.add("hidden");
|
|
52812
52815
|
}));
|
|
@@ -52814,10 +52817,10 @@ function QN(i, { onMeasureFinish: t, zIndex: e = 1e3 }) {
|
|
|
52814
52817
|
function g(y) {
|
|
52815
52818
|
if (y.dragging)
|
|
52816
52819
|
return;
|
|
52817
|
-
let E =
|
|
52820
|
+
let E = ht.measureTips.start;
|
|
52818
52821
|
if (l && r) {
|
|
52819
52822
|
const v = l.getGeometry();
|
|
52820
|
-
v instanceof Ei ? E =
|
|
52823
|
+
v instanceof Ei ? E = ht.measureTips.polygonContinue : v instanceof ze && (E = ht.measureTips.lineContinue);
|
|
52821
52824
|
}
|
|
52822
52825
|
c && c.setPosition(y.coordinate), h && r && (h.innerHTML = E, h.classList.remove("hidden"));
|
|
52823
52826
|
}
|
|
@@ -52825,7 +52828,7 @@ function QN(i, { onMeasureFinish: t, zIndex: e = 1e3 }) {
|
|
|
52825
52828
|
n = new HE({
|
|
52826
52829
|
source: o,
|
|
52827
52830
|
type: y,
|
|
52828
|
-
style: qt(
|
|
52831
|
+
style: qt(ht.measureDrawStyle)
|
|
52829
52832
|
}), i.value.addInteraction(n), Vu++, x(Vu), m();
|
|
52830
52833
|
let E;
|
|
52831
52834
|
n.on("drawstart", (v) => {
|
|
@@ -52873,7 +52876,7 @@ function QN(i, { onMeasureFinish: t, zIndex: e = 1e3 }) {
|
|
|
52873
52876
|
}), d.push(u), i.value.addOverlay(u);
|
|
52874
52877
|
}
|
|
52875
52878
|
function p(y) {
|
|
52876
|
-
return jp(y, { projection:
|
|
52879
|
+
return jp(y, { projection: ht.projection });
|
|
52877
52880
|
}
|
|
52878
52881
|
function w(y) {
|
|
52879
52882
|
const E = p(y);
|
|
@@ -52881,7 +52884,7 @@ function QN(i, { onMeasureFinish: t, zIndex: e = 1e3 }) {
|
|
|
52881
52884
|
return E > 100 ? v = Math.round(E / 1e3 * 100) / 100 + " km" : v = Math.round(E * 100) / 100 + " m", v;
|
|
52882
52885
|
}
|
|
52883
52886
|
function T(y) {
|
|
52884
|
-
return zp(y, { projection:
|
|
52887
|
+
return zp(y, { projection: ht.projection });
|
|
52885
52888
|
}
|
|
52886
52889
|
function S(y) {
|
|
52887
52890
|
const E = T(y);
|
|
@@ -52940,12 +52943,12 @@ function YE() {
|
|
|
52940
52943
|
}
|
|
52941
52944
|
function r(l) {
|
|
52942
52945
|
const h = l.get("type");
|
|
52943
|
-
return h === "Point" ? qt(
|
|
52946
|
+
return h === "Point" ? qt(ht.activeStyle.point(l)) : h.toLocaleLowerCase().indexOf("line") !== -1 ? qt(ht.activeStyle.line(l)) : qt(ht.activeStyle.face(l));
|
|
52944
52947
|
}
|
|
52945
52948
|
function o(l) {
|
|
52946
52949
|
const h = l.get("type");
|
|
52947
52950
|
if (h)
|
|
52948
|
-
return h === "Point" ? qt(
|
|
52951
|
+
return h === "Point" ? qt(ht.hoverStyle.point(l)) : h.toLocaleLowerCase().indexOf("line") !== -1 ? qt(ht.hoverStyle.line(l)) : qt(ht.hoverStyle.face(l));
|
|
52949
52952
|
}
|
|
52950
52953
|
function a(l) {
|
|
52951
52954
|
if (l) {
|
|
@@ -52999,25 +53002,25 @@ function an(i, t = !0) {
|
|
|
52999
53002
|
function jc(i) {
|
|
53000
53003
|
return KE.readFeature(i, {
|
|
53001
53004
|
dataProjection: "EPSG:4326",
|
|
53002
|
-
featureProjection:
|
|
53005
|
+
featureProjection: ht.projection
|
|
53003
53006
|
});
|
|
53004
53007
|
}
|
|
53005
53008
|
function C0(i) {
|
|
53006
53009
|
return ZE.readFeature(i, {
|
|
53007
53010
|
dataProjection: "EPSG:4326",
|
|
53008
|
-
featureProjection:
|
|
53011
|
+
featureProjection: ht.projection
|
|
53009
53012
|
});
|
|
53010
53013
|
}
|
|
53011
53014
|
function fh(i) {
|
|
53012
53015
|
return KE.writeFeatureObject(i, {
|
|
53013
53016
|
dataProjection: "EPSG:4326",
|
|
53014
|
-
featureProjection:
|
|
53017
|
+
featureProjection: ht.projection
|
|
53015
53018
|
});
|
|
53016
53019
|
}
|
|
53017
53020
|
function e5(i) {
|
|
53018
53021
|
return ZE.writeFeatureText(i, {
|
|
53019
53022
|
dataProjection: "EPSG:4326",
|
|
53020
|
-
featureProjection:
|
|
53023
|
+
featureProjection: ht.projection
|
|
53021
53024
|
});
|
|
53022
53025
|
}
|
|
53023
53026
|
function qE(i) {
|
|
@@ -53025,7 +53028,7 @@ function qE(i) {
|
|
|
53025
53028
|
if (e === "tianditu") {
|
|
53026
53029
|
const n = [];
|
|
53027
53030
|
for (let s = 0; s < 5; s++) {
|
|
53028
|
-
const r = "https://t" + s + ".tianditu.gov.cn/" + i.bklayerTiandituType + "/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=" + i.bklayerTiandituType.split("_")[0] + "&STYLE=default&TILEMATRIXSET=c&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=" +
|
|
53031
|
+
const r = "https://t" + s + ".tianditu.gov.cn/" + i.bklayerTiandituType + "/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=" + i.bklayerTiandituType.split("_")[0] + "&STYLE=default&TILEMATRIXSET=c&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=" + ht.tdtTk;
|
|
53029
53032
|
n.push(r);
|
|
53030
53033
|
}
|
|
53031
53034
|
t.push(new He({
|
|
@@ -53041,7 +53044,7 @@ function qE(i) {
|
|
|
53041
53044
|
preload: 1 / 0,
|
|
53042
53045
|
source: new M1({
|
|
53043
53046
|
crossOrigin: "anonymous",
|
|
53044
|
-
key:
|
|
53047
|
+
key: ht.byKey,
|
|
53045
53048
|
imagerySet: "Aerial"
|
|
53046
53049
|
}),
|
|
53047
53050
|
visible: i.visible
|
|
@@ -53230,8 +53233,8 @@ function qE(i) {
|
|
|
53230
53233
|
}),
|
|
53231
53234
|
visible: i.visible
|
|
53232
53235
|
}));
|
|
53233
|
-
} else
|
|
53234
|
-
|
|
53236
|
+
} else if (e === "supermapwmts")
|
|
53237
|
+
t.push(new He({
|
|
53235
53238
|
source: new Cd({
|
|
53236
53239
|
crossOrigin: "anonymous",
|
|
53237
53240
|
url: i.layerUrl + "?k=" + (i.serverKey || "BPAFgxSWrHkDo05+cZFXmA==") + "&REQUESTENCODING=" + (i.requestEncoding || "KVP") + "&urls=" + i.urls,
|
|
@@ -53270,6 +53273,10 @@ function qE(i) {
|
|
|
53270
53273
|
}),
|
|
53271
53274
|
visible: i.visible
|
|
53272
53275
|
}));
|
|
53276
|
+
else {
|
|
53277
|
+
const n = ht.customLayerTypes.find((s) => s.type === e);
|
|
53278
|
+
n && t.push(...n.handler(i));
|
|
53279
|
+
}
|
|
53273
53280
|
if (!t.length)
|
|
53274
53281
|
return console.log("未知类型:", e), [];
|
|
53275
53282
|
for (const n of t) {
|
|
@@ -53332,7 +53339,7 @@ function JE(i) {
|
|
|
53332
53339
|
function h5(i, {
|
|
53333
53340
|
points: t,
|
|
53334
53341
|
json: e,
|
|
53335
|
-
style: n =
|
|
53342
|
+
style: n = ht.webGLVector
|
|
53336
53343
|
}, s) {
|
|
53337
53344
|
const r = new en({ wrapX: !0 });
|
|
53338
53345
|
if (t)
|
|
@@ -53818,12 +53825,12 @@ const m5 = {
|
|
|
53818
53825
|
default: window.olConfig.globalCfg.projection
|
|
53819
53826
|
}
|
|
53820
53827
|
},
|
|
53821
|
-
emits:
|
|
53828
|
+
emits: ht.events,
|
|
53822
53829
|
setup(i, { expose: t }) {
|
|
53823
53830
|
const e = i, n = new ui(e), s = an((Y) => {
|
|
53824
53831
|
Y.setView(n);
|
|
53825
53832
|
});
|
|
53826
|
-
return xl(n,
|
|
53833
|
+
return xl(n, ht.events), Jt(e, (Y) => {
|
|
53827
53834
|
n.setProperties(Y), n.applyOptions_(Y);
|
|
53828
53835
|
}), e.resetOnActivated && uc(() => {
|
|
53829
53836
|
s.value.setView(n), n.setProperties(e), n.applyOptions_(e);
|
|
@@ -53949,9 +53956,9 @@ const m5 = {
|
|
|
53949
53956
|
default: null
|
|
53950
53957
|
}
|
|
53951
53958
|
},
|
|
53952
|
-
emits: ["clusterClick", ...
|
|
53959
|
+
emits: ["clusterClick", ...ht.events],
|
|
53953
53960
|
setup(i, { expose: t, emit: e }) {
|
|
53954
|
-
const n = e, s = i, r = w0(s), { layer: o } = UE(dR[r.value.type], r, n, ["clusterClick", ...
|
|
53961
|
+
const n = e, s = i, r = w0(s), { layer: o } = UE(dR[r.value.type], r, n, ["clusterClick", ...ht.events], h);
|
|
53955
53962
|
let a = he(nr, null);
|
|
53956
53963
|
const l = an(() => {
|
|
53957
53964
|
a = a || di;
|
|
@@ -54052,13 +54059,13 @@ const m5 = {
|
|
|
54052
54059
|
default: null
|
|
54053
54060
|
}
|
|
54054
54061
|
},
|
|
54055
|
-
emits:
|
|
54062
|
+
emits: ht.events,
|
|
54056
54063
|
setup(i, { expose: t, emit: e }) {
|
|
54057
54064
|
const n = i, s = e, r = w0(n), o = he(_o, null), l = he(Ya, null) || o, { source: h, position: c, popupFeature: u, updateSource: d, registerEvent: f } = zE(
|
|
54058
54065
|
rL[r.value.type],
|
|
54059
54066
|
l,
|
|
54060
54067
|
r,
|
|
54061
|
-
|
|
54068
|
+
ht.events,
|
|
54062
54069
|
s
|
|
54063
54070
|
);
|
|
54064
54071
|
r.value.type === "Vector" && Jt(() => r.value.features, async (_, m) => {
|
|
@@ -54128,7 +54135,7 @@ const E5 = /* @__PURE__ */ Object.assign({
|
|
|
54128
54135
|
default: ""
|
|
54129
54136
|
}
|
|
54130
54137
|
},
|
|
54131
|
-
emits: ["hover", "unhover", "click", "dblclick", ...
|
|
54138
|
+
emits: ["hover", "unhover", "click", "dblclick", ...ht.events],
|
|
54132
54139
|
setup(i, { expose: t, emit: e }) {
|
|
54133
54140
|
const n = e, s = he(_o, null), r = i, o = he(Ya, null), a = he(_o, null), l = Ka(new le());
|
|
54134
54141
|
let h = he(nr, null), c = null, u = null;
|
|
@@ -54138,7 +54145,7 @@ const E5 = /* @__PURE__ */ Object.assign({
|
|
|
54138
54145
|
(E) => {
|
|
54139
54146
|
let v = r.styles ? qt(r.styles) : null;
|
|
54140
54147
|
const R = !v || r.isVectorStyle;
|
|
54141
|
-
["geojson", "wkt"].includes(E.type) ? (v || (v = qt(
|
|
54148
|
+
["geojson", "wkt"].includes(E.type) ? (v || (v = qt(ht.defaultStyle.line(r))), o.value.removeFeature(l.value), l.value = E.type === "wkt" ? C0(r.geometry) : jc(r.geometry), l.value.setStyle(v), l.value.set("style", v), l.value.setProperties({ name: r.name, type: r.type, data: r.data }), o.value.addFeature(l.value)) : (v || (r.type === "Point" ? v = qt(ht.defaultStyle.point(r)) : r.type.toLocaleLowerCase().indexOf("line") !== -1 ? v = qt(ht.defaultStyle.line(r)) : v = qt(ht.defaultStyle.face(r))), l.value.setProperties({
|
|
54142
54149
|
...r,
|
|
54143
54150
|
style: v,
|
|
54144
54151
|
geometry: new oy[r.type](Rs(r.geometry))
|
|
@@ -54400,7 +54407,7 @@ const w5 = {
|
|
|
54400
54407
|
y[E] !== void 0 && y[E] !== null && (a.value.set(E, y[E]), E === "position" && (y.position.length ? g() : _()));
|
|
54401
54408
|
},
|
|
54402
54409
|
{ deep: !0 }
|
|
54403
|
-
), xl(a, ["close", "show", ...
|
|
54410
|
+
), xl(a, ["close", "show", ...ht.events]);
|
|
54404
54411
|
const c = () => a.value.getOffset(), u = () => a.value.getPosition(), d = () => a.value.getPositioning(), f = (y) => a.value.panIntoView(y), g = () => a.value.show(Rs(s.position), o.value), _ = () => a.value.hide(), m = (y) => a.value.setOffset(y), x = (y) => a.value.setPosition(Rs(y)), p = (y) => a.value.setPositioning(y);
|
|
54405
54412
|
function w() {
|
|
54406
54413
|
const y = a.value.getElement().querySelector(".ol-popup-content");
|
|
@@ -54509,7 +54516,7 @@ const w5 = {
|
|
|
54509
54516
|
})
|
|
54510
54517
|
}
|
|
54511
54518
|
},
|
|
54512
|
-
emits: ["clusterClick", "pointClick", ...
|
|
54519
|
+
emits: ["clusterClick", "pointClick", ...ht.events],
|
|
54513
54520
|
setup(i, { emit: t }) {
|
|
54514
54521
|
const e = t, n = i, s = an();
|
|
54515
54522
|
function r(h, c, u) {
|
|
@@ -54898,7 +54905,7 @@ const b5 = {
|
|
|
54898
54905
|
for (const e in t)
|
|
54899
54906
|
if (Object.hasOwnProperty.call(t, e)) {
|
|
54900
54907
|
const n = t[e];
|
|
54901
|
-
Array.isArray(n) ?
|
|
54908
|
+
Array.isArray(n) ? ht[e] = [...ht[e], ...n] : typeof n == "object" ? ht[e] = Object.assign({}, ht[e], n) : ht[e] = n;
|
|
54902
54909
|
}
|
|
54903
54910
|
}
|
|
54904
54911
|
for (const [e, n] of Object.entries(b5))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as oA } from "./pako.esm-a24ba4ed.js";
|
|
2
|
-
import { g as sA, L as DA, a as gA } from "./index-
|
|
2
|
+
import { g as sA, L as DA, a as gA } from "./index-e1744484.js";
|
|
3
3
|
import { B as nA } from "./basedecoder-11034ec6.js";
|
|
4
4
|
import "vue";
|
|
5
5
|
var iA = { exports: {} };
|
package/dist/ol-spirit.js
CHANGED