gis-map-szdp 0.1.6 → 0.1.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.
- package/dist/gismap.es.js +394 -391
- package/dist/gismap.umd.js +5 -5
- package/package.json +1 -1
package/dist/gismap.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElementBlock as sr, openBlock as je, createElementVNode as re, Fragment as fs, renderList as ds, normalizeClass as Sr, toDisplayString as ps, ref as H, normalizeStyle as di, computed as Ye, watch as sn, onMounted as ko, withDirectives as gs, createBlock as vs, resolveDynamicComponent as ys, unref as Ui, vShow as ms } from "vue";
|
|
2
|
-
import { Feature as
|
|
3
|
-
import { Tianditu as Wr, TileSuperMapRest as
|
|
2
|
+
import { Feature as Ln, Map as As, View as Is } from "ol";
|
|
3
|
+
import { Tianditu as Wr, TileSuperMapRest as Dn, GetFeaturesBySQLParameters as Ar, FeatureService as Ir } from "@supermap/iclient-ol";
|
|
4
4
|
import "@turf/turf";
|
|
5
5
|
import Hi from "ol-echarts";
|
|
6
6
|
var hr = (
|
|
@@ -238,7 +238,7 @@ function Ct(i, r, t, e, n) {
|
|
|
238
238
|
function ln(i, r, t, e) {
|
|
239
239
|
return Ct(i, r, t, e, !0);
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Dt(i) {
|
|
242
242
|
i && i.target && (i.target.removeEventListener(i.type, i.listener), An(i));
|
|
243
243
|
}
|
|
244
244
|
var Os = /* @__PURE__ */ function() {
|
|
@@ -321,9 +321,9 @@ zr.prototype.un;
|
|
|
321
321
|
function Ps(i) {
|
|
322
322
|
if (Array.isArray(i))
|
|
323
323
|
for (var r = 0, t = i.length; r < t; ++r)
|
|
324
|
-
|
|
324
|
+
Dt(i[r]);
|
|
325
325
|
else
|
|
326
|
-
|
|
326
|
+
Dt(
|
|
327
327
|
/** @type {import("./events.js").EventsKey} */
|
|
328
328
|
i
|
|
329
329
|
);
|
|
@@ -340,7 +340,7 @@ var Rs = 0;
|
|
|
340
340
|
function J(i) {
|
|
341
341
|
return i.ol_uid || (i.ol_uid = String(++Rs));
|
|
342
342
|
}
|
|
343
|
-
var
|
|
343
|
+
var Ls = "6.14.1", Wo = /* @__PURE__ */ function() {
|
|
344
344
|
var i = function(r, t) {
|
|
345
345
|
return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
|
|
346
346
|
e.__proto__ = n;
|
|
@@ -422,7 +422,7 @@ const Uo = {
|
|
|
422
422
|
};
|
|
423
423
|
var _e = typeof navigator < "u" && typeof navigator.userAgent < "u" ? navigator.userAgent.toLowerCase() : "";
|
|
424
424
|
_e.indexOf("firefox");
|
|
425
|
-
var
|
|
425
|
+
var Ds = _e.indexOf("safari") !== -1 && _e.indexOf("chrom") == -1, Ns = Ds && !!(_e.indexOf("version/15.4") >= 0 || _e.match(/cpu (os|iphone os) 15_4 like mac os x/));
|
|
426
426
|
_e.indexOf("webkit") !== -1 && _e.indexOf("edge") == -1;
|
|
427
427
|
_e.indexOf("macintosh");
|
|
428
428
|
var In = typeof WorkerGlobalScope < "u" && typeof OffscreenCanvas < "u" && self instanceof WorkerGlobalScope, Gs = typeof Image < "u" && Image.prototype.decode;
|
|
@@ -495,7 +495,7 @@ var zs = /* @__PURE__ */ function() {
|
|
|
495
495
|
}, r.prototype.setMap = function(t) {
|
|
496
496
|
this.map_ && Kn(this.element);
|
|
497
497
|
for (var e = 0, n = this.listenerKeys.length; e < n; ++e)
|
|
498
|
-
|
|
498
|
+
Dt(this.listenerKeys[e]);
|
|
499
499
|
if (this.listenerKeys.length = 0, this.map_ = t, t) {
|
|
500
500
|
var o = this.target_ ? this.target_ : t.getOverlayContainerStopEvent();
|
|
501
501
|
o.appendChild(this.element), this.render !== Or && this.listenerKeys.push(Ct(t, Uo.POSTRENDER, this.render, this)), t.render();
|
|
@@ -542,7 +542,7 @@ var zs = /* @__PURE__ */ function() {
|
|
|
542
542
|
function Jo(i) {
|
|
543
543
|
return i === 1 ? "" : String(Math.round(i * 100) / 100);
|
|
544
544
|
}
|
|
545
|
-
const
|
|
545
|
+
const $ = {
|
|
546
546
|
OPACITY: "opacity",
|
|
547
547
|
VISIBLE: "visible",
|
|
548
548
|
EXTENT: "extent",
|
|
@@ -576,7 +576,7 @@ var Ys = /* @__PURE__ */ function() {
|
|
|
576
576
|
function(i) {
|
|
577
577
|
Ys(r, i);
|
|
578
578
|
function r(t) {
|
|
579
|
-
var e = this, n = "v" +
|
|
579
|
+
var e = this, n = "v" + Ls.split("-")[0], o = "Assertion failed. See https://openlayers.org/en/" + n + "/doc/errors/#" + t + " for details.";
|
|
580
580
|
return e = i.call(this, o) || this, e.code = t, e.name = "AssertionError", e.message = o, e;
|
|
581
581
|
}
|
|
582
582
|
return r;
|
|
@@ -682,7 +682,7 @@ var Us = /* @__PURE__ */ function() {
|
|
|
682
682
|
var e = i.call(this) || this;
|
|
683
683
|
e.on, e.once, e.un, e.background_ = t.background;
|
|
684
684
|
var n = Nt({}, t);
|
|
685
|
-
return typeof t.properties == "object" && (delete n.properties, Nt(n, t.properties)), n[
|
|
685
|
+
return typeof t.properties == "object" && (delete n.properties, Nt(n, t.properties)), n[$.OPACITY] = t.opacity !== void 0 ? t.opacity : 1, nt(typeof n[$.OPACITY] == "number", 64), n[$.VISIBLE] = t.visible !== void 0 ? t.visible : !0, n[$.Z_INDEX] = t.zIndex, n[$.MAX_RESOLUTION] = t.maxResolution !== void 0 ? t.maxResolution : 1 / 0, n[$.MIN_RESOLUTION] = t.minResolution !== void 0 ? t.minResolution : 0, n[$.MIN_ZOOM] = t.minZoom !== void 0 ? t.minZoom : -1 / 0, n[$.MAX_ZOOM] = t.maxZoom !== void 0 ? t.maxZoom : 1 / 0, e.className_ = n.className !== void 0 ? n.className : "ol-layer", delete n.className, e.setProperties(n), e.state_ = null, e;
|
|
686
686
|
}
|
|
687
687
|
return r.prototype.getBackground = function() {
|
|
688
688
|
return this.background_;
|
|
@@ -702,63 +702,63 @@ var Us = /* @__PURE__ */ function() {
|
|
|
702
702
|
}, r.prototype.getExtent = function() {
|
|
703
703
|
return (
|
|
704
704
|
/** @type {import("../extent.js").Extent|undefined} */
|
|
705
|
-
this.get(
|
|
705
|
+
this.get($.EXTENT)
|
|
706
706
|
);
|
|
707
707
|
}, r.prototype.getMaxResolution = function() {
|
|
708
708
|
return (
|
|
709
709
|
/** @type {number} */
|
|
710
|
-
this.get(
|
|
710
|
+
this.get($.MAX_RESOLUTION)
|
|
711
711
|
);
|
|
712
712
|
}, r.prototype.getMinResolution = function() {
|
|
713
713
|
return (
|
|
714
714
|
/** @type {number} */
|
|
715
|
-
this.get(
|
|
715
|
+
this.get($.MIN_RESOLUTION)
|
|
716
716
|
);
|
|
717
717
|
}, r.prototype.getMinZoom = function() {
|
|
718
718
|
return (
|
|
719
719
|
/** @type {number} */
|
|
720
|
-
this.get(
|
|
720
|
+
this.get($.MIN_ZOOM)
|
|
721
721
|
);
|
|
722
722
|
}, r.prototype.getMaxZoom = function() {
|
|
723
723
|
return (
|
|
724
724
|
/** @type {number} */
|
|
725
|
-
this.get(
|
|
725
|
+
this.get($.MAX_ZOOM)
|
|
726
726
|
);
|
|
727
727
|
}, r.prototype.getOpacity = function() {
|
|
728
728
|
return (
|
|
729
729
|
/** @type {number} */
|
|
730
|
-
this.get(
|
|
730
|
+
this.get($.OPACITY)
|
|
731
731
|
);
|
|
732
732
|
}, r.prototype.getSourceState = function() {
|
|
733
733
|
return W();
|
|
734
734
|
}, r.prototype.getVisible = function() {
|
|
735
735
|
return (
|
|
736
736
|
/** @type {boolean} */
|
|
737
|
-
this.get(
|
|
737
|
+
this.get($.VISIBLE)
|
|
738
738
|
);
|
|
739
739
|
}, r.prototype.getZIndex = function() {
|
|
740
740
|
return (
|
|
741
741
|
/** @type {number} */
|
|
742
|
-
this.get(
|
|
742
|
+
this.get($.Z_INDEX)
|
|
743
743
|
);
|
|
744
744
|
}, r.prototype.setBackground = function(t) {
|
|
745
745
|
this.background_ = t, this.changed();
|
|
746
746
|
}, r.prototype.setExtent = function(t) {
|
|
747
|
-
this.set(
|
|
747
|
+
this.set($.EXTENT, t);
|
|
748
748
|
}, r.prototype.setMaxResolution = function(t) {
|
|
749
|
-
this.set(
|
|
749
|
+
this.set($.MAX_RESOLUTION, t);
|
|
750
750
|
}, r.prototype.setMinResolution = function(t) {
|
|
751
|
-
this.set(
|
|
751
|
+
this.set($.MIN_RESOLUTION, t);
|
|
752
752
|
}, r.prototype.setMaxZoom = function(t) {
|
|
753
|
-
this.set(
|
|
753
|
+
this.set($.MAX_ZOOM, t);
|
|
754
754
|
}, r.prototype.setMinZoom = function(t) {
|
|
755
|
-
this.set(
|
|
755
|
+
this.set($.MIN_ZOOM, t);
|
|
756
756
|
}, r.prototype.setOpacity = function(t) {
|
|
757
|
-
nt(typeof t == "number", 64), this.set(
|
|
757
|
+
nt(typeof t == "number", 64), this.set($.OPACITY, t);
|
|
758
758
|
}, r.prototype.setVisible = function(t) {
|
|
759
|
-
this.set(
|
|
759
|
+
this.set($.VISIBLE, t);
|
|
760
760
|
}, r.prototype.setZIndex = function(t) {
|
|
761
|
-
this.set(
|
|
761
|
+
this.set($.Z_INDEX, t);
|
|
762
762
|
}, r.prototype.disposeInternal = function() {
|
|
763
763
|
this.state_ && (this.state_.layer = null, this.state_ = null), i.prototype.disposeInternal.call(this);
|
|
764
764
|
}, r;
|
|
@@ -820,7 +820,7 @@ var Vs = /* @__PURE__ */ function() {
|
|
|
820
820
|
Vs(r, i);
|
|
821
821
|
function r(t) {
|
|
822
822
|
var e = this, n = Nt({}, t);
|
|
823
|
-
delete n.source, e = i.call(this, n) || this, e.on, e.once, e.un, e.mapPrecomposeKey_ = null, e.mapRenderKey_ = null, e.sourceChangeKey_ = null, e.renderer_ = null, e.rendered = !1, t.render && (e.render = t.render), t.map && e.setMap(t.map), e.addChangeListener(
|
|
823
|
+
delete n.source, e = i.call(this, n) || this, e.on, e.once, e.un, e.mapPrecomposeKey_ = null, e.mapRenderKey_ = null, e.sourceChangeKey_ = null, e.renderer_ = null, e.rendered = !1, t.render && (e.render = t.render), t.map && e.setMap(t.map), e.addChangeListener($.SOURCE, e.handleSourcePropertyChange_);
|
|
824
824
|
var o = t.source ? (
|
|
825
825
|
/** @type {SourceType} */
|
|
826
826
|
t.source
|
|
@@ -836,7 +836,7 @@ var Vs = /* @__PURE__ */ function() {
|
|
|
836
836
|
}, r.prototype.getSource = function() {
|
|
837
837
|
return (
|
|
838
838
|
/** @type {SourceType} */
|
|
839
|
-
this.get(
|
|
839
|
+
this.get($.SOURCE) || null
|
|
840
840
|
);
|
|
841
841
|
}, r.prototype.getRenderSource = function() {
|
|
842
842
|
return this.getSource();
|
|
@@ -846,7 +846,7 @@ var Vs = /* @__PURE__ */ function() {
|
|
|
846
846
|
}, r.prototype.handleSourceChange_ = function() {
|
|
847
847
|
this.changed();
|
|
848
848
|
}, r.prototype.handleSourcePropertyChange_ = function() {
|
|
849
|
-
this.sourceChangeKey_ && (
|
|
849
|
+
this.sourceChangeKey_ && (Dt(this.sourceChangeKey_), this.sourceChangeKey_ = null);
|
|
850
850
|
var t = this.getSource();
|
|
851
851
|
t && (this.sourceChangeKey_ = Ct(t, dt.CHANGE, this.handleSourceChange_, this)), this.changed();
|
|
852
852
|
}, r.prototype.getFeatures = function(t) {
|
|
@@ -862,11 +862,11 @@ var Vs = /* @__PURE__ */ function() {
|
|
|
862
862
|
}, r.prototype.unrender = function() {
|
|
863
863
|
this.rendered = !1;
|
|
864
864
|
}, r.prototype.setMapInternal = function(t) {
|
|
865
|
-
t || this.unrender(), this.set(
|
|
865
|
+
t || this.unrender(), this.set($.MAP, t);
|
|
866
866
|
}, r.prototype.getMapInternal = function() {
|
|
867
|
-
return this.get(
|
|
867
|
+
return this.get($.MAP);
|
|
868
868
|
}, r.prototype.setMap = function(t) {
|
|
869
|
-
this.mapPrecomposeKey_ && (
|
|
869
|
+
this.mapPrecomposeKey_ && (Dt(this.mapPrecomposeKey_), this.mapPrecomposeKey_ = null), t || this.changed(), this.mapRenderKey_ && (Dt(this.mapRenderKey_), this.mapRenderKey_ = null), t && (this.mapPrecomposeKey_ = Ct(t, ue.PRECOMPOSE, function(e) {
|
|
870
870
|
var n = (
|
|
871
871
|
/** @type {import("../render/Event.js").default} */
|
|
872
872
|
e
|
|
@@ -876,7 +876,7 @@ var Vs = /* @__PURE__ */ function() {
|
|
|
876
876
|
}), 67), o.push(a);
|
|
877
877
|
}, this), this.mapRenderKey_ = Ct(this, dt.CHANGE, t.render, t), this.changed());
|
|
878
878
|
}, r.prototype.setSource = function(t) {
|
|
879
|
-
this.set(
|
|
879
|
+
this.set($.SOURCE, t);
|
|
880
880
|
}, r.prototype.getRenderer = function() {
|
|
881
881
|
return this.renderer_ || (this.renderer_ = this.createRenderer()), this.renderer_;
|
|
882
882
|
}, r.prototype.hasRenderer = function() {
|
|
@@ -1667,7 +1667,7 @@ function Ml(i, r, t, e) {
|
|
|
1667
1667
|
});
|
|
1668
1668
|
});
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1670
|
+
function De(i, r) {
|
|
1671
1671
|
if (i === r)
|
|
1672
1672
|
return !0;
|
|
1673
1673
|
var t = i.getUnits() === r.getUnits();
|
|
@@ -1699,7 +1699,7 @@ function Pl() {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
Pl();
|
|
1701
1701
|
var ca = new Array(6);
|
|
1702
|
-
function
|
|
1702
|
+
function Lt() {
|
|
1703
1703
|
return [1, 0, 0, 1, 0, 0];
|
|
1704
1704
|
}
|
|
1705
1705
|
function Gn(i) {
|
|
@@ -1719,11 +1719,11 @@ function ft(i, r) {
|
|
|
1719
1719
|
var t = r[0], e = r[1];
|
|
1720
1720
|
return r[0] = i[0] * t + i[2] * e + i[4], r[1] = i[1] * t + i[3] * e + i[5], r;
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function Ll(i, r) {
|
|
1723
1723
|
var t = Math.cos(r), e = Math.sin(r);
|
|
1724
1724
|
return Ti(i, Cn(ca, t, e, -e, t, 0, 0));
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1726
|
+
function Dl(i, r, t) {
|
|
1727
1727
|
return Ti(i, Cn(ca, r, 0, 0, t, 0, 0));
|
|
1728
1728
|
}
|
|
1729
1729
|
function Nl(i, r, t) {
|
|
@@ -1875,7 +1875,7 @@ var uo = new Yl(), kl = /* @__PURE__ */ function() {
|
|
|
1875
1875
|
}
|
|
1876
1876
|
return r;
|
|
1877
1877
|
}(hr)
|
|
1878
|
-
), pa = "10px sans-serif", fe = "#000", fn = "round", Pr = [], Rr = 0, cr = "round",
|
|
1878
|
+
), pa = "10px sans-serif", fe = "#000", fn = "round", Pr = [], Rr = 0, cr = "round", Lr = 10, Dr = "#000", Nr = "center", dn = "middle", be = [0, 0, 0, 0], Gr = 1, ve = new Pe(), Zl = new br();
|
|
1879
1879
|
Zl.setSize = function() {
|
|
1880
1880
|
console.warn("labelCache is deprecated.");
|
|
1881
1881
|
};
|
|
@@ -2071,7 +2071,7 @@ var Jl = /* @__PURE__ */ function() {
|
|
|
2071
2071
|
var t = this.getElement();
|
|
2072
2072
|
t && this.element.appendChild(t);
|
|
2073
2073
|
}, r.prototype.handleMapChanged = function() {
|
|
2074
|
-
this.mapPostrenderListenerKey && (Kn(this.element),
|
|
2074
|
+
this.mapPostrenderListenerKey && (Kn(this.element), Dt(this.mapPostrenderListenerKey), this.mapPostrenderListenerKey = null);
|
|
2075
2075
|
var t = this.getMap();
|
|
2076
2076
|
if (t) {
|
|
2077
2077
|
this.mapPostrenderListenerKey = Ct(t, Uo.POSTRENDER, this.render, this), this.updatePixelPosition();
|
|
@@ -2219,7 +2219,7 @@ var tu = /* @__PURE__ */ function() {
|
|
|
2219
2219
|
}
|
|
2220
2220
|
r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
2221
2221
|
};
|
|
2222
|
-
}(), ho =
|
|
2222
|
+
}(), ho = Lt(), ma = (
|
|
2223
2223
|
/** @class */
|
|
2224
2224
|
function(i) {
|
|
2225
2225
|
tu(r, i);
|
|
@@ -2521,21 +2521,21 @@ function lu(i, r, t, e, n, o, a, s) {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
return a;
|
|
2523
2523
|
}
|
|
2524
|
-
function
|
|
2524
|
+
function Le(i, r) {
|
|
2525
2525
|
return r * Math.round(i / r);
|
|
2526
2526
|
}
|
|
2527
2527
|
function uu(i, r, t, e, n, o, a) {
|
|
2528
2528
|
if (r == t)
|
|
2529
2529
|
return a;
|
|
2530
|
-
var s =
|
|
2530
|
+
var s = Le(i[r], n), l = Le(i[r + 1], n);
|
|
2531
2531
|
r += e, o[a++] = s, o[a++] = l;
|
|
2532
2532
|
var u, c;
|
|
2533
2533
|
do
|
|
2534
|
-
if (u =
|
|
2534
|
+
if (u = Le(i[r], n), c = Le(i[r + 1], n), r += e, r == t)
|
|
2535
2535
|
return o[a++] = u, o[a++] = c, a;
|
|
2536
2536
|
while (u == s && c == l);
|
|
2537
2537
|
for (; r < t; ) {
|
|
2538
|
-
var h =
|
|
2538
|
+
var h = Le(i[r], n), f = Le(i[r + 1], n);
|
|
2539
2539
|
if (r += e, !(h == u && f == c)) {
|
|
2540
2540
|
var d = u - s, p = c - l, g = h - s, v = f - l;
|
|
2541
2541
|
if (d * v == p * g && (d < 0 && g < d || d == g || d > 0 && g > d) && (p < 0 && v < p || p == v || p > 0 && v > p)) {
|
|
@@ -2984,7 +2984,7 @@ var _u = /* @__PURE__ */ function() {
|
|
|
2984
2984
|
}
|
|
2985
2985
|
r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
2986
2986
|
};
|
|
2987
|
-
}(),
|
|
2987
|
+
}(), Li = (
|
|
2988
2988
|
/** @class */
|
|
2989
2989
|
function(i) {
|
|
2990
2990
|
_u(r, i);
|
|
@@ -3033,7 +3033,7 @@ var _u = /* @__PURE__ */ function() {
|
|
|
3033
3033
|
}, r.prototype.handleGeometryChange_ = function() {
|
|
3034
3034
|
this.changed();
|
|
3035
3035
|
}, r.prototype.handleGeometryChanged_ = function() {
|
|
3036
|
-
this.geometryChangeKey_ && (
|
|
3036
|
+
this.geometryChangeKey_ && (Dt(this.geometryChangeKey_), this.geometryChangeKey_ = null);
|
|
3037
3037
|
var t = this.getGeometry();
|
|
3038
3038
|
t && (this.geometryChangeKey_ = Ct(t, dt.CHANGE, this.handleGeometryChange_, this)), this.changed();
|
|
3039
3039
|
}, r.prototype.setGeometry = function(t) {
|
|
@@ -3438,15 +3438,15 @@ var Ou = /* @__PURE__ */ function() {
|
|
|
3438
3438
|
var g = e / 2 / p, v = e / 2 * (f / d), m = Math.sqrt((o + g) * (o + g) + v * v), E = m - o;
|
|
3439
3439
|
if (this.radius2_ === void 0 || t === "bevel")
|
|
3440
3440
|
return E * 2;
|
|
3441
|
-
var y = o * Math.sin(u), A = Math.sqrt(o * o - y * y), S = a - A,
|
|
3442
|
-
if (
|
|
3443
|
-
var x =
|
|
3441
|
+
var y = o * Math.sin(u), A = Math.sqrt(o * o - y * y), S = a - A, D = Math.sqrt(y * y + S * S), L = D / y;
|
|
3442
|
+
if (L <= n) {
|
|
3443
|
+
var x = L * e / 2 - a - o;
|
|
3444
3444
|
return 2 * Math.max(E, x);
|
|
3445
3445
|
}
|
|
3446
3446
|
return E * 2;
|
|
3447
3447
|
}, r.prototype.createRenderOptions = function() {
|
|
3448
3448
|
var t = cr, e = 0, n = null, o = 0, a, s = 0;
|
|
3449
|
-
this.stroke_ && (a = this.stroke_.getColor(), a === null && (a =
|
|
3449
|
+
this.stroke_ && (a = this.stroke_.getColor(), a === null && (a = Dr), a = ie(a), s = this.stroke_.getWidth(), s === void 0 && (s = Gr), n = this.stroke_.getLineDash(), o = this.stroke_.getLineDashOffset(), t = this.stroke_.getLineJoin(), t === void 0 && (t = cr), e = this.stroke_.getMiterLimit(), e === void 0 && (e = Lr));
|
|
3450
3450
|
var l = this.calculateLineJoinSize_(t, s, e), u = Math.max(this.radius_, this.radius2_ || 0), c = Math.ceil(2 * u + l);
|
|
3451
3451
|
return {
|
|
3452
3452
|
strokeStyle: a,
|
|
@@ -3608,7 +3608,7 @@ var Ou = /* @__PURE__ */ function() {
|
|
|
3608
3608
|
}, i;
|
|
3609
3609
|
}()
|
|
3610
3610
|
);
|
|
3611
|
-
function
|
|
3611
|
+
function Lu(i) {
|
|
3612
3612
|
var r;
|
|
3613
3613
|
if (typeof i == "function")
|
|
3614
3614
|
r = i;
|
|
@@ -3632,7 +3632,7 @@ function Du(i) {
|
|
|
3632
3632
|
return r;
|
|
3633
3633
|
}
|
|
3634
3634
|
var Fn = null;
|
|
3635
|
-
function
|
|
3635
|
+
function Du(i, r) {
|
|
3636
3636
|
if (!Fn) {
|
|
3637
3637
|
var t = new Yt({
|
|
3638
3638
|
color: "rgba(255,255,255,0.4)"
|
|
@@ -3763,13 +3763,13 @@ var Nu = "#333", Ne = (
|
|
|
3763
3763
|
}()
|
|
3764
3764
|
);
|
|
3765
3765
|
function Gu(i, r, t, e, n) {
|
|
3766
|
-
|
|
3766
|
+
La(i, r, t || 0, e || i.length - 1, n || Fu);
|
|
3767
3767
|
}
|
|
3768
|
-
function
|
|
3768
|
+
function La(i, r, t, e, n) {
|
|
3769
3769
|
for (; e > t; ) {
|
|
3770
3770
|
if (e - t > 600) {
|
|
3771
3771
|
var o = e - t + 1, a = r - t + 1, s = Math.log(o), l = 0.5 * Math.exp(2 * s / 3), u = 0.5 * Math.sqrt(s * l * (o - l) / o) * (a - o / 2 < 0 ? -1 : 1), c = Math.max(t, Math.floor(r - a * l / o + u)), h = Math.min(e, Math.floor(r + (o - a) * l / o + u));
|
|
3772
|
-
|
|
3772
|
+
La(i, r, c, h, n);
|
|
3773
3773
|
}
|
|
3774
3774
|
var f = i[r], d = t, p = e;
|
|
3775
3775
|
for (Er(i, t, r), n(i[e], f) > 0 && Er(i, t, e); d < p; ) {
|
|
@@ -3786,7 +3786,7 @@ function Er(i, r, t) {
|
|
|
3786
3786
|
function Fu(i, r) {
|
|
3787
3787
|
return i < r ? -1 : i > r ? 1 : 0;
|
|
3788
3788
|
}
|
|
3789
|
-
let
|
|
3789
|
+
let Da = class {
|
|
3790
3790
|
constructor(r = 9) {
|
|
3791
3791
|
this._maxEntries = Math.max(4, r), this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4)), this.clear();
|
|
3792
3792
|
}
|
|
@@ -4051,7 +4051,7 @@ var ku = /* @__PURE__ */ function() {
|
|
|
4051
4051
|
};
|
|
4052
4052
|
}(), Ao = {
|
|
4053
4053
|
RENDER_ORDER: "renderOrder"
|
|
4054
|
-
},
|
|
4054
|
+
}, Di = (
|
|
4055
4055
|
/** @class */
|
|
4056
4056
|
function(i) {
|
|
4057
4057
|
ku(r, i);
|
|
@@ -4079,11 +4079,11 @@ var ku = /* @__PURE__ */ function() {
|
|
|
4079
4079
|
}, r.prototype.getUpdateWhileInteracting = function() {
|
|
4080
4080
|
return this.updateWhileInteracting_;
|
|
4081
4081
|
}, r.prototype.renderDeclutter = function(t) {
|
|
4082
|
-
t.declutterTree || (t.declutterTree = new
|
|
4082
|
+
t.declutterTree || (t.declutterTree = new Da(9)), this.getRenderer().renderDeclutter(t);
|
|
4083
4083
|
}, r.prototype.setRenderOrder = function(t) {
|
|
4084
4084
|
this.set(Ao.RENDER_ORDER, t);
|
|
4085
4085
|
}, r.prototype.setStyle = function(t) {
|
|
4086
|
-
this.style_ = t !== void 0 ? t :
|
|
4086
|
+
this.style_ = t !== void 0 ? t : Du, this.styleFunction_ = t === null ? void 0 : Lu(this.style_), this.changed();
|
|
4087
4087
|
}, r;
|
|
4088
4088
|
}(qo)
|
|
4089
4089
|
), X = {
|
|
@@ -4317,7 +4317,7 @@ var ku = /* @__PURE__ */ function() {
|
|
|
4317
4317
|
n.fillStyle = void 0;
|
|
4318
4318
|
if (e) {
|
|
4319
4319
|
var a = e.getColor();
|
|
4320
|
-
n.strokeStyle = ie(a ||
|
|
4320
|
+
n.strokeStyle = ie(a || Dr);
|
|
4321
4321
|
var s = e.getLineCap();
|
|
4322
4322
|
n.lineCap = s !== void 0 ? s : fn;
|
|
4323
4323
|
var l = e.getLineDash();
|
|
@@ -4329,7 +4329,7 @@ var ku = /* @__PURE__ */ function() {
|
|
|
4329
4329
|
var h = e.getWidth();
|
|
4330
4330
|
n.lineWidth = h !== void 0 ? h : Gr;
|
|
4331
4331
|
var f = e.getMiterLimit();
|
|
4332
|
-
n.miterLimit = f !== void 0 ? f :
|
|
4332
|
+
n.miterLimit = f !== void 0 ? f : Lr, n.lineWidth > this.maxLineWidth && (this.maxLineWidth = n.lineWidth, this.bufferedMaxExtent_ = null);
|
|
4333
4333
|
} else
|
|
4334
4334
|
n.strokeStyle = void 0, n.lineCap = void 0, n.lineDash = null, n.lineDashOffset = void 0, n.lineJoin = void 0, n.lineWidth = void 0, n.miterLimit = void 0;
|
|
4335
4335
|
}, r.prototype.createFill = function(t) {
|
|
@@ -4668,7 +4668,7 @@ var ku = /* @__PURE__ */ function() {
|
|
|
4668
4668
|
var t = this.tolerance;
|
|
4669
4669
|
if (t !== 0)
|
|
4670
4670
|
for (var e = this.coordinates, n = 0, o = e.length; n < o; ++n)
|
|
4671
|
-
e[n] =
|
|
4671
|
+
e[n] = Le(e[n], t);
|
|
4672
4672
|
return i.prototype.finish.call(this);
|
|
4673
4673
|
}, r.prototype.setFillStrokeStyles_ = function() {
|
|
4674
4674
|
var t = this.state, e = t.fillStyle;
|
|
@@ -4759,12 +4759,12 @@ var Qu = /* @__PURE__ */ function() {
|
|
|
4759
4759
|
E = f[y];
|
|
4760
4760
|
for (var p = m; p < E; p += h)
|
|
4761
4761
|
s.push(c[p], c[p + 1]);
|
|
4762
|
-
var
|
|
4763
|
-
m = f[y], this.drawChars_(l,
|
|
4762
|
+
var D = s.length;
|
|
4763
|
+
m = f[y], this.drawChars_(l, D), l = D;
|
|
4764
4764
|
}
|
|
4765
4765
|
this.endGeometry(e);
|
|
4766
4766
|
} else {
|
|
4767
|
-
var
|
|
4767
|
+
var L = a.overflow ? null : [];
|
|
4768
4768
|
switch (u) {
|
|
4769
4769
|
case k.POINT:
|
|
4770
4770
|
case k.MULTI_POINT:
|
|
@@ -4785,7 +4785,7 @@ var Qu = /* @__PURE__ */ function() {
|
|
|
4785
4785
|
break;
|
|
4786
4786
|
case k.POLYGON:
|
|
4787
4787
|
c = /** @type {import("../../geom/Polygon.js").default} */
|
|
4788
|
-
t.getFlatInteriorPoint(), a.overflow ||
|
|
4788
|
+
t.getFlatInteriorPoint(), a.overflow || L.push(c[2] / this.resolution), h = 3;
|
|
4789
4789
|
break;
|
|
4790
4790
|
case k.MULTI_POLYGON:
|
|
4791
4791
|
var x = (
|
|
@@ -4794,18 +4794,18 @@ var Qu = /* @__PURE__ */ function() {
|
|
|
4794
4794
|
);
|
|
4795
4795
|
c = [];
|
|
4796
4796
|
for (var p = 0, g = x.length; p < g; p += 3)
|
|
4797
|
-
a.overflow ||
|
|
4797
|
+
a.overflow || L.push(x[p + 2] / this.resolution), c.push(x[p], x[p + 1]);
|
|
4798
4798
|
if (c.length === 0)
|
|
4799
4799
|
return;
|
|
4800
4800
|
h = 2;
|
|
4801
4801
|
break;
|
|
4802
4802
|
}
|
|
4803
|
-
var
|
|
4804
|
-
if (
|
|
4803
|
+
var D = this.appendFlatPointCoordinates(c, h);
|
|
4804
|
+
if (D === l)
|
|
4805
4805
|
return;
|
|
4806
|
-
if (
|
|
4806
|
+
if (L && (D - l) / 2 !== c.length / h) {
|
|
4807
4807
|
var T = l / 2;
|
|
4808
|
-
|
|
4808
|
+
L = L.filter(function(B, G) {
|
|
4809
4809
|
var b = s[(T + G) * 2] === c[G * h] && s[(T + G) * 2 + 1] === c[G * h + 1];
|
|
4810
4810
|
return b || --T, b;
|
|
4811
4811
|
});
|
|
@@ -4820,7 +4820,7 @@ var Qu = /* @__PURE__ */ function() {
|
|
|
4820
4820
|
this.instructions.push([
|
|
4821
4821
|
X.DRAW_IMAGE,
|
|
4822
4822
|
l,
|
|
4823
|
-
|
|
4823
|
+
D,
|
|
4824
4824
|
null,
|
|
4825
4825
|
NaN,
|
|
4826
4826
|
NaN,
|
|
@@ -4833,8 +4833,8 @@ var Qu = /* @__PURE__ */ function() {
|
|
|
4833
4833
|
[1, 1],
|
|
4834
4834
|
NaN,
|
|
4835
4835
|
this.declutterImageWithText_,
|
|
4836
|
-
C == be ? be : C.map(function(
|
|
4837
|
-
return
|
|
4836
|
+
C == be ? be : C.map(function(B) {
|
|
4837
|
+
return B * z;
|
|
4838
4838
|
}),
|
|
4839
4839
|
!!a.backgroundFill,
|
|
4840
4840
|
!!a.backgroundStroke,
|
|
@@ -4844,13 +4844,13 @@ var Qu = /* @__PURE__ */ function() {
|
|
|
4844
4844
|
this.fillKey_,
|
|
4845
4845
|
this.textOffsetX_,
|
|
4846
4846
|
this.textOffsetY_,
|
|
4847
|
-
|
|
4847
|
+
L
|
|
4848
4848
|
]);
|
|
4849
4849
|
var w = 1 / z;
|
|
4850
4850
|
this.hitDetectionInstructions.push([
|
|
4851
4851
|
X.DRAW_IMAGE,
|
|
4852
4852
|
l,
|
|
4853
|
-
|
|
4853
|
+
D,
|
|
4854
4854
|
null,
|
|
4855
4855
|
NaN,
|
|
4856
4856
|
NaN,
|
|
@@ -4872,7 +4872,7 @@ var Qu = /* @__PURE__ */ function() {
|
|
|
4872
4872
|
this.fillKey_,
|
|
4873
4873
|
this.textOffsetX_,
|
|
4874
4874
|
this.textOffsetY_,
|
|
4875
|
-
|
|
4875
|
+
L
|
|
4876
4876
|
]), this.endGeometry(e);
|
|
4877
4877
|
}
|
|
4878
4878
|
}
|
|
@@ -4948,7 +4948,7 @@ var Qu = /* @__PURE__ */ function() {
|
|
|
4948
4948
|
a = this.textStrokeState_, a || (a = /** @type {import("../canvas.js").StrokeState} */
|
|
4949
4949
|
{}, this.textStrokeState_ = a);
|
|
4950
4950
|
var u = l.getLineDash(), c = l.getLineDashOffset(), h = l.getWidth(), f = l.getMiterLimit();
|
|
4951
|
-
a.lineCap = l.getLineCap() || fn, a.lineDash = u ? u.slice() : Pr, a.lineDashOffset = c === void 0 ? Rr : c, a.lineJoin = l.getLineJoin() || cr, a.lineWidth = h === void 0 ? Gr : h, a.miterLimit = f === void 0 ?
|
|
4951
|
+
a.lineCap = l.getLineCap() || fn, a.lineDash = u ? u.slice() : Pr, a.lineDashOffset = c === void 0 ? Rr : c, a.lineJoin = l.getLineJoin() || cr, a.lineWidth = h === void 0 ? Gr : h, a.miterLimit = f === void 0 ? Lr : f, a.strokeStyle = ie(l.getColor() || Dr);
|
|
4952
4952
|
}
|
|
4953
4953
|
n = this.textState_;
|
|
4954
4954
|
var d = t.getFont() || pa;
|
|
@@ -5094,7 +5094,7 @@ var Fa = (
|
|
|
5094
5094
|
tc(r, i);
|
|
5095
5095
|
function r(t) {
|
|
5096
5096
|
var e = i.call(this, t) || this;
|
|
5097
|
-
return e.container = null, e.renderedResolution, e.tempTransform =
|
|
5097
|
+
return e.container = null, e.renderedResolution, e.tempTransform = Lt(), e.pixelTransform = Lt(), e.inversePixelTransform = Lt(), e.context = null, e.containerReused = !1, e.pixelContext_ = null, e.frameState = null, e;
|
|
5098
5098
|
}
|
|
5099
5099
|
return r.prototype.getImageData = function(t, e, n) {
|
|
5100
5100
|
wr || ec(), wr.clearRect(0, 0, 1, 1);
|
|
@@ -5180,7 +5180,7 @@ function rc(i, r, t, e, n, o, a, s, l, u, c, h) {
|
|
|
5180
5180
|
do
|
|
5181
5181
|
E();
|
|
5182
5182
|
while (r < t - e && m + v < o);
|
|
5183
|
-
for (var y = v === 0 ? 0 : (o - m) / v, A = le(p, f, y), S = le(g, d, y),
|
|
5183
|
+
for (var y = v === 0 ? 0 : (o - m) / v, A = le(p, f, y), S = le(g, d, y), D = r - e, L = m, x = o + s * l(u, n, c); r < t - e && m + v < x; )
|
|
5184
5184
|
E();
|
|
5185
5185
|
y = v === 0 ? 0 : (x - m) / v;
|
|
5186
5186
|
var T = le(p, f, y), C = le(g, d, y), R;
|
|
@@ -5189,13 +5189,13 @@ function rc(i, r, t, e, n, o, a, s, l, u, c, h) {
|
|
|
5189
5189
|
ya(O, 0, 4, 2, h, O, O), R = O[0] > O[2];
|
|
5190
5190
|
} else
|
|
5191
5191
|
R = A > T;
|
|
5192
|
-
var N = Math.PI, F = [], z =
|
|
5193
|
-
r =
|
|
5192
|
+
var N = Math.PI, F = [], z = D + e === r;
|
|
5193
|
+
r = D, v = 0, m = L, f = i[r], d = i[r + 1];
|
|
5194
5194
|
var w;
|
|
5195
5195
|
if (z) {
|
|
5196
5196
|
E(), w = Math.atan2(d - g, f - p), R && (w += w > 0 ? -N : N);
|
|
5197
|
-
var _ = (T + A) / 2,
|
|
5198
|
-
return F[0] = [_,
|
|
5197
|
+
var _ = (T + A) / 2, B = (C + S) / 2;
|
|
5198
|
+
return F[0] = [_, B, (x - o) / 2, w, n], F;
|
|
5199
5199
|
}
|
|
5200
5200
|
for (var G = 0, b = n.length; G < b; ) {
|
|
5201
5201
|
E();
|
|
@@ -5207,7 +5207,7 @@ function rc(i, r, t, e, n, o, a, s, l, u, c, h) {
|
|
|
5207
5207
|
}
|
|
5208
5208
|
w = Z;
|
|
5209
5209
|
for (var M = G, I = 0; G < b; ++G) {
|
|
5210
|
-
var
|
|
5210
|
+
var j = R ? b - G - 1 : G, Y = s * l(u, n[j], c);
|
|
5211
5211
|
if (r + e < t && m + v < o + I + Y / 2)
|
|
5212
5212
|
break;
|
|
5213
5213
|
I += Y;
|
|
@@ -5215,8 +5215,8 @@ function rc(i, r, t, e, n, o, a, s, l, u, c, h) {
|
|
|
5215
5215
|
if (G !== M) {
|
|
5216
5216
|
var V = R ? n.substring(b - M, b - G) : n.substring(M, G);
|
|
5217
5217
|
y = v === 0 ? 0 : (o + I / 2 - m) / v;
|
|
5218
|
-
var _ = le(p, f, y),
|
|
5219
|
-
F.push([_,
|
|
5218
|
+
var _ = le(p, f, y), B = le(g, d, y);
|
|
5219
|
+
F.push([_, B, I / 2, Z, V]), o += I;
|
|
5220
5220
|
}
|
|
5221
5221
|
}
|
|
5222
5222
|
return F;
|
|
@@ -5241,7 +5241,7 @@ var oc = (
|
|
|
5241
5241
|
/** @class */
|
|
5242
5242
|
function() {
|
|
5243
5243
|
function i(r, t, e, n) {
|
|
5244
|
-
this.overlaps = e, this.pixelRatio = t, this.resolution = r, this.alignFill_, this.instructions = n.instructions, this.coordinates = n.coordinates, this.coordinateCache_ = {}, this.renderedTransform_ =
|
|
5244
|
+
this.overlaps = e, this.pixelRatio = t, this.resolution = r, this.alignFill_, this.instructions = n.instructions, this.coordinates = n.coordinates, this.coordinateCache_ = {}, this.renderedTransform_ = Lt(), this.hitDetectionInstructions = n.hitDetectionInstructions, this.pixelCoordinates_ = null, this.viewRotation_ = 0, this.fillStates = n.fillStates || {}, this.strokeStates = n.strokeStates || {}, this.textStates = n.textStates || {}, this.widths_ = {}, this.labels_ = {};
|
|
5245
5245
|
}
|
|
5246
5246
|
return i.prototype.createLabel = function(r, t, e, n) {
|
|
5247
5247
|
var o = r + t + e + n;
|
|
@@ -5251,34 +5251,34 @@ var oc = (
|
|
|
5251
5251
|
l.scale[0] * u,
|
|
5252
5252
|
l.scale[1] * u
|
|
5253
5253
|
], h = Array.isArray(r), f = Co(h ? r[0] : r, l.textAlign || Nr), d = n && a.lineWidth ? a.lineWidth : 0, p = h ? r : r.split(`
|
|
5254
|
-
`).reduce(ic, []), g = Ul(l, p), v = g.width, m = g.height, E = g.widths, y = g.heights, A = g.lineWidths, S = v + d,
|
|
5255
|
-
width:
|
|
5254
|
+
`).reduce(ic, []), g = Ul(l, p), v = g.width, m = g.height, E = g.widths, y = g.heights, A = g.lineWidths, S = v + d, D = [], L = (S + 2) * c[0], x = (m + d) * c[1], T = {
|
|
5255
|
+
width: L < 0 ? Math.floor(L) : Math.ceil(L),
|
|
5256
5256
|
height: x < 0 ? Math.floor(x) : Math.ceil(x),
|
|
5257
|
-
contextInstructions:
|
|
5257
|
+
contextInstructions: D
|
|
5258
5258
|
};
|
|
5259
|
-
if ((c[0] != 1 || c[1] != 1) &&
|
|
5260
|
-
|
|
5259
|
+
if ((c[0] != 1 || c[1] != 1) && D.push("scale", c), n) {
|
|
5260
|
+
D.push("strokeStyle", a.strokeStyle), D.push("lineWidth", d), D.push("lineCap", a.lineCap), D.push("lineJoin", a.lineJoin), D.push("miterLimit", a.miterLimit);
|
|
5261
5261
|
var C = In ? OffscreenCanvasRenderingContext2D : CanvasRenderingContext2D;
|
|
5262
|
-
C.prototype.setLineDash && (
|
|
5262
|
+
C.prototype.setLineDash && (D.push("setLineDash", [a.lineDash]), D.push("lineDashOffset", a.lineDashOffset));
|
|
5263
5263
|
}
|
|
5264
|
-
e &&
|
|
5265
|
-
for (var R = 0.5 - f, O = f * S + R * d, N = [], F = [], z = 0, w = 0, _ = 0,
|
|
5264
|
+
e && D.push("fillStyle", s.fillStyle), D.push("textBaseline", "middle"), D.push("textAlign", "center");
|
|
5265
|
+
for (var R = 0.5 - f, O = f * S + R * d, N = [], F = [], z = 0, w = 0, _ = 0, B = 0, G, b = 0, Z = p.length; b < Z; b += 2) {
|
|
5266
5266
|
var P = p[b];
|
|
5267
5267
|
if (P === `
|
|
5268
5268
|
`) {
|
|
5269
|
-
w += z, z = 0, O = f * S + R * d, ++
|
|
5269
|
+
w += z, z = 0, O = f * S + R * d, ++B;
|
|
5270
5270
|
continue;
|
|
5271
5271
|
}
|
|
5272
5272
|
var M = p[b + 1] || l.font;
|
|
5273
5273
|
M !== G && (n && N.push("font", M), e && F.push("font", M), G = M), z = Math.max(z, y[_]);
|
|
5274
5274
|
var I = [
|
|
5275
5275
|
P,
|
|
5276
|
-
O + R * E[_] + f * (E[_] - A[
|
|
5276
|
+
O + R * E[_] + f * (E[_] - A[B]),
|
|
5277
5277
|
0.5 * (d + z) + w
|
|
5278
5278
|
];
|
|
5279
5279
|
O += E[_], n && N.push("strokeText", I), e && F.push("fillText", I), ++_;
|
|
5280
5280
|
}
|
|
5281
|
-
return Array.prototype.push.apply(
|
|
5281
|
+
return Array.prototype.push.apply(D, N), Array.prototype.push.apply(D, F), this.labels_[o] = T, T;
|
|
5282
5282
|
}, i.prototype.replayTextBackground_ = function(r, t, e, n, o, a, s) {
|
|
5283
5283
|
r.beginPath(), r.moveTo.apply(r, t), r.lineTo.apply(r, e), r.lineTo.apply(r, n), r.lineTo.apply(r, o), r.lineTo.apply(r, t), a && (this.alignFill_ = /** @type {boolean} */
|
|
5284
5284
|
a[2], this.fill_(r)), s && (this.setStrokeStyle_(
|
|
@@ -5288,10 +5288,10 @@ var oc = (
|
|
|
5288
5288
|
), r.stroke());
|
|
5289
5289
|
}, i.prototype.calculateImageOrLabelDimensions_ = function(r, t, e, n, o, a, s, l, u, c, h, f, d, p, g, v) {
|
|
5290
5290
|
s *= f[0], l *= f[1];
|
|
5291
|
-
var m = e - s, E = n - l, y = o + u > r ? r - u : o, A = a + c > t ? t - c : a, S = p[3] + y * f[0] + p[1],
|
|
5292
|
-
(g || h !== 0) && (ye[0] =
|
|
5291
|
+
var m = e - s, E = n - l, y = o + u > r ? r - u : o, A = a + c > t ? t - c : a, S = p[3] + y * f[0] + p[1], D = p[0] + A * f[1] + p[2], L = m - p[3], x = E - p[0];
|
|
5292
|
+
(g || h !== 0) && (ye[0] = L, me[0] = L, ye[1] = x, ae[1] = x, ae[0] = L + S, se[0] = ae[0], se[1] = x + D, me[1] = se[1]);
|
|
5293
5293
|
var T;
|
|
5294
|
-
return h !== 0 ? (T = oe(
|
|
5294
|
+
return h !== 0 ? (T = oe(Lt(), e, n, 1, 1, h, -e, -n), ft(T, ye), ft(T, ae), ft(T, se), ft(T, me), we(Math.min(ye[0], ae[0], se[0], me[0]), Math.min(ye[1], ae[1], se[1], me[1]), Math.max(ye[0], ae[0], se[0], me[0]), Math.max(ye[1], ae[1], se[1], me[1]), qe)) : we(Math.min(L, L + S), Math.min(x, x + D), Math.max(L, L + S), Math.max(x, x + D), qe), d && (m = Math.round(m), E = Math.round(E)), {
|
|
5295
5295
|
drawImageX: m,
|
|
5296
5296
|
drawImageY: E,
|
|
5297
5297
|
drawImageW: y,
|
|
@@ -5348,7 +5348,7 @@ var oc = (
|
|
|
5348
5348
|
}, i.prototype.execute_ = function(r, t, e, n, o, a, s, l) {
|
|
5349
5349
|
var u;
|
|
5350
5350
|
this.pixelCoordinates_ && Oe(e, this.renderedTransform_) ? u = this.pixelCoordinates_ : (this.pixelCoordinates_ || (this.pixelCoordinates_ = []), u = Ze(this.coordinates, 0, this.coordinates.length, 2, e, this.pixelCoordinates_), Rl(this.renderedTransform_, e));
|
|
5351
|
-
for (var c = 0, h = n.length, f = 0, d, p, g, v, m, E, y, A, S,
|
|
5351
|
+
for (var c = 0, h = n.length, f = 0, d, p, g, v, m, E, y, A, S, D, L, x, T = 0, C = 0, R = null, O = null, N = this.coordinateCache_, F = this.viewRotation_, z = Math.round(Math.atan2(-e[1], e[0]) * 1e12) / 1e12, w = (
|
|
5352
5352
|
/** @type {import("../../render.js").State} */
|
|
5353
5353
|
{
|
|
5354
5354
|
context: r,
|
|
@@ -5356,15 +5356,15 @@ var oc = (
|
|
|
5356
5356
|
resolution: this.resolution,
|
|
5357
5357
|
rotation: F
|
|
5358
5358
|
}
|
|
5359
|
-
), _ = this.instructions != n || this.overlaps ? 0 : 200,
|
|
5359
|
+
), _ = this.instructions != n || this.overlaps ? 0 : 200, B, G, b, Z; c < h; ) {
|
|
5360
5360
|
var P = n[c], M = (
|
|
5361
5361
|
/** @type {import("./Instruction.js").default} */
|
|
5362
5362
|
P[0]
|
|
5363
5363
|
);
|
|
5364
5364
|
switch (M) {
|
|
5365
5365
|
case X.BEGIN_GEOMETRY:
|
|
5366
|
-
|
|
5367
|
-
P[1], Z = P[3],
|
|
5366
|
+
B = /** @type {import("../../Feature.js").FeatureLike} */
|
|
5367
|
+
P[1], Z = P[3], B.getGeometry() ? s !== void 0 && !bt(s, Z.getExtent()) ? c = /** @type {number} */
|
|
5368
5368
|
P[2] + 1 : ++c : c = /** @type {number} */
|
|
5369
5369
|
P[2];
|
|
5370
5370
|
break;
|
|
@@ -5374,8 +5374,8 @@ var oc = (
|
|
|
5374
5374
|
case X.CIRCLE:
|
|
5375
5375
|
f = /** @type {number} */
|
|
5376
5376
|
P[1];
|
|
5377
|
-
var I = u[f],
|
|
5378
|
-
r.moveTo(I + Ot,
|
|
5377
|
+
var I = u[f], j = u[f + 1], Y = u[f + 2], V = u[f + 3], Q = Y - I, tt = V - j, Ot = Math.sqrt(Q * Q + tt * tt);
|
|
5378
|
+
r.moveTo(I + Ot, j), r.arc(I, j, Ot, 0, 2 * Math.PI, !0), ++c;
|
|
5379
5379
|
break;
|
|
5380
5380
|
case X.CLOSE_PATH:
|
|
5381
5381
|
r.closePath(), ++c;
|
|
@@ -5387,7 +5387,7 @@ var oc = (
|
|
|
5387
5387
|
/** @type {import("../../geom/SimpleGeometry.js").default} */
|
|
5388
5388
|
P[3]
|
|
5389
5389
|
), de = P[4], pe = P.length == 6 ? P[5] : void 0;
|
|
5390
|
-
w.geometry = Gt, w.feature =
|
|
5390
|
+
w.geometry = Gt, w.feature = B, c in N || (N[c] = []);
|
|
5391
5391
|
var Wt = N[c];
|
|
5392
5392
|
pe ? pe(u, f, d, 2, Wt) : (Wt[0] = u[f], Wt[1] = u[f + 1], Wt.length = 2), de(Wt, w), ++c;
|
|
5393
5393
|
break;
|
|
@@ -5416,7 +5416,7 @@ var oc = (
|
|
|
5416
5416
|
), it = (
|
|
5417
5417
|
/** @type {number} */
|
|
5418
5418
|
P[11]
|
|
5419
|
-
),
|
|
5419
|
+
), q = (
|
|
5420
5420
|
/** @type {import("../../size.js").Size} */
|
|
5421
5421
|
P[12]
|
|
5422
5422
|
), lt = (
|
|
@@ -5428,11 +5428,11 @@ var oc = (
|
|
|
5428
5428
|
);
|
|
5429
5429
|
if (!A && P.length >= 19) {
|
|
5430
5430
|
S = /** @type {string} */
|
|
5431
|
-
P[18],
|
|
5432
|
-
P[19],
|
|
5431
|
+
P[18], D = /** @type {string} */
|
|
5432
|
+
P[19], L = /** @type {string} */
|
|
5433
5433
|
P[20], x = /** @type {string} */
|
|
5434
5434
|
P[21];
|
|
5435
|
-
var ot = this.drawLabelWithPointPlacement_(S,
|
|
5435
|
+
var ot = this.drawLabelWithPointPlacement_(S, D, L, x);
|
|
5436
5436
|
A = ot.label, P[3] = A;
|
|
5437
5437
|
var wt = (
|
|
5438
5438
|
/** @type {number} */
|
|
@@ -5455,7 +5455,7 @@ var oc = (
|
|
|
5455
5455
|
P[17]) : (gt = be, It = !1, Pt = !1), et && z ? it += F : !et && !z && (it -= F);
|
|
5456
5456
|
for (var Ut = 0; f < d; f += 2)
|
|
5457
5457
|
if (!(Bt && Bt[Ut++] < lt / this.pixelRatio)) {
|
|
5458
|
-
var pt = this.calculateImageOrLabelDimensions_(A.width, A.height, u[f], u[f + 1], lt, te, p, g, yt, st, it,
|
|
5458
|
+
var pt = this.calculateImageOrLabelDimensions_(A.width, A.height, u[f], u[f + 1], lt, te, p, g, yt, st, it, q, o, gt, It || Pt, B), Je = [
|
|
5459
5459
|
r,
|
|
5460
5460
|
t,
|
|
5461
5461
|
A,
|
|
@@ -5509,36 +5509,36 @@ var oc = (
|
|
|
5509
5509
|
/** @type {number} */
|
|
5510
5510
|
P[8]
|
|
5511
5511
|
);
|
|
5512
|
-
|
|
5512
|
+
L = /** @type {string} */
|
|
5513
5513
|
P[9];
|
|
5514
5514
|
var On = (
|
|
5515
5515
|
/** @type {number} */
|
|
5516
5516
|
P[10]
|
|
5517
5517
|
);
|
|
5518
5518
|
S = /** @type {string} */
|
|
5519
|
-
P[11],
|
|
5519
|
+
P[11], D = /** @type {string} */
|
|
5520
5520
|
P[12];
|
|
5521
5521
|
var ki = [
|
|
5522
5522
|
/** @type {number} */
|
|
5523
5523
|
P[13],
|
|
5524
5524
|
/** @type {number} */
|
|
5525
5525
|
P[13]
|
|
5526
|
-
], Pn = this.textStates[
|
|
5526
|
+
], Pn = this.textStates[D], pr = Pn.font, gr = [
|
|
5527
5527
|
Pn.scale[0] * ji,
|
|
5528
5528
|
Pn.scale[1] * ji
|
|
5529
5529
|
], vr = void 0;
|
|
5530
5530
|
pr in this.widths_ ? vr = this.widths_[pr] : (vr = {}, this.widths_[pr] = vr);
|
|
5531
5531
|
var Zi = Sa(u, kr, Bi, 2), Xi = Math.abs(gr[0]) * co(pr, S, vr);
|
|
5532
5532
|
if (ss || Xi <= Zi) {
|
|
5533
|
-
var us = this.textStates[
|
|
5533
|
+
var us = this.textStates[D].textAlign, cs = (Zi - Xi) * vn[us], yr = rc(u, kr, Bi, 2, S, cs, ls, Math.abs(gr[0]), co, pr, vr, z ? 0 : this.viewRotation_);
|
|
5534
5534
|
t: if (yr) {
|
|
5535
5535
|
var mr = [], ge = void 0, Zr = void 0, Xr = void 0, Ft = void 0, Ht = void 0;
|
|
5536
|
-
if (
|
|
5536
|
+
if (L)
|
|
5537
5537
|
for (ge = 0, Zr = yr.length; ge < Zr; ++ge) {
|
|
5538
5538
|
Ht = yr[ge], Xr = /** @type {string} */
|
|
5539
|
-
Ht[4], Ft = this.createLabel(Xr,
|
|
5539
|
+
Ht[4], Ft = this.createLabel(Xr, D, "", L), p = /** @type {number} */
|
|
5540
5540
|
Ht[2] + (gr[0] < 0 ? -On : On), g = Sn * Ft.height + (0.5 - Sn) * 2 * On * gr[1] / gr[0] - Yi;
|
|
5541
|
-
var pt = this.calculateImageOrLabelDimensions_(Ft.width, Ft.height, Ht[0], Ht[1], Ft.width, Ft.height, p, g, 0, 0, Ht[3], ki, !1, be, !1,
|
|
5541
|
+
var pt = this.calculateImageOrLabelDimensions_(Ft.width, Ft.height, Ht[0], Ht[1], Ft.width, Ft.height, p, g, 0, 0, Ht[3], ki, !1, be, !1, B);
|
|
5542
5542
|
if (l && l.collides(pt.declutterBox))
|
|
5543
5543
|
break t;
|
|
5544
5544
|
mr.push([
|
|
@@ -5554,9 +5554,9 @@ var oc = (
|
|
|
5554
5554
|
if (x)
|
|
5555
5555
|
for (ge = 0, Zr = yr.length; ge < Zr; ++ge) {
|
|
5556
5556
|
Ht = yr[ge], Xr = /** @type {string} */
|
|
5557
|
-
Ht[4], Ft = this.createLabel(Xr,
|
|
5557
|
+
Ht[4], Ft = this.createLabel(Xr, D, x, ""), p = /** @type {number} */
|
|
5558
5558
|
Ht[2], g = Sn * Ft.height - Yi;
|
|
5559
|
-
var pt = this.calculateImageOrLabelDimensions_(Ft.width, Ft.height, Ht[0], Ht[1], Ft.width, Ft.height, p, g, 0, 0, Ht[3], ki, !1, be, !1,
|
|
5559
|
+
var pt = this.calculateImageOrLabelDimensions_(Ft.width, Ft.height, Ht[0], Ht[1], Ft.width, Ft.height, p, g, 0, 0, Ht[3], ki, !1, be, !1, B);
|
|
5560
5560
|
if (l && l.collides(pt.declutterBox))
|
|
5561
5561
|
break t;
|
|
5562
5562
|
mr.push([
|
|
@@ -5578,9 +5578,9 @@ var oc = (
|
|
|
5578
5578
|
break;
|
|
5579
5579
|
case X.END_GEOMETRY:
|
|
5580
5580
|
if (a !== void 0) {
|
|
5581
|
-
|
|
5581
|
+
B = /** @type {import("../../Feature.js").FeatureLike} */
|
|
5582
5582
|
P[1];
|
|
5583
|
-
var Wi = a(
|
|
5583
|
+
var Wi = a(B, Z);
|
|
5584
5584
|
if (Wi)
|
|
5585
5585
|
return Wi;
|
|
5586
5586
|
}
|
|
@@ -5633,7 +5633,7 @@ var oc = (
|
|
|
5633
5633
|
/** @class */
|
|
5634
5634
|
function() {
|
|
5635
5635
|
function i(r, t, e, n, o, a) {
|
|
5636
|
-
this.maxExtent_ = r, this.overlaps_ = n, this.pixelRatio_ = e, this.resolution_ = t, this.renderBuffer_ = a, this.executorsByZIndex_ = {}, this.hitDetectionContext_ = null, this.hitDetectionTransform_ =
|
|
5636
|
+
this.maxExtent_ = r, this.overlaps_ = n, this.pixelRatio_ = e, this.resolution_ = t, this.renderBuffer_ = a, this.executorsByZIndex_ = {}, this.hitDetectionContext_ = null, this.hitDetectionTransform_ = Lt(), this.createExecutors_(o);
|
|
5637
5637
|
}
|
|
5638
5638
|
return i.prototype.clip = function(r, t) {
|
|
5639
5639
|
var e = this.getClipCoords(t);
|
|
@@ -5663,11 +5663,11 @@ var oc = (
|
|
|
5663
5663
|
var h;
|
|
5664
5664
|
this.renderBuffer_ !== void 0 && (h = zt(), Mr(h, r), jr(h, t * (this.renderBuffer_ + n), h));
|
|
5665
5665
|
var f = ac(n), d;
|
|
5666
|
-
function p(
|
|
5666
|
+
function p(D, L) {
|
|
5667
5667
|
for (var x = c.getImageData(0, 0, s, s).data, T = 0, C = f.length; T < C; T++)
|
|
5668
5668
|
if (x[f[T]] > 0) {
|
|
5669
|
-
if (!a || d !== ut.IMAGE && d !== ut.TEXT || a.indexOf(
|
|
5670
|
-
var R = (f[T] - 3) / 4, O = n - R % s, N = n - (R / s | 0), F = o(
|
|
5669
|
+
if (!a || d !== ut.IMAGE && d !== ut.TEXT || a.indexOf(D) !== -1) {
|
|
5670
|
+
var R = (f[T] - 3) / 4, O = n - R % s, N = n - (R / s | 0), F = o(D, L, O * O + N * N);
|
|
5671
5671
|
if (F)
|
|
5672
5672
|
return F;
|
|
5673
5673
|
}
|
|
@@ -5745,7 +5745,7 @@ var sc = /* @__PURE__ */ function() {
|
|
|
5745
5745
|
sc(r, i);
|
|
5746
5746
|
function r(t, e, n, o, a, s, l) {
|
|
5747
5747
|
var u = i.call(this) || this;
|
|
5748
|
-
return u.context_ = t, u.pixelRatio_ = e, u.extent_ = n, u.transform_ = o, u.viewRotation_ = a, u.squaredTolerance_ = s, u.userTransform_ = l, u.contextFillState_ = null, u.contextStrokeState_ = null, u.contextTextState_ = null, u.fillState_ = null, u.strokeState_ = null, u.image_ = null, u.imageAnchorX_ = 0, u.imageAnchorY_ = 0, u.imageHeight_ = 0, u.imageOpacity_ = 0, u.imageOriginX_ = 0, u.imageOriginY_ = 0, u.imageRotateWithView_ = !1, u.imageRotation_ = 0, u.imageScale_ = [0, 0], u.imageWidth_ = 0, u.text_ = "", u.textOffsetX_ = 0, u.textOffsetY_ = 0, u.textRotateWithView_ = !1, u.textRotation_ = 0, u.textScale_ = [0, 0], u.textFillState_ = null, u.textStrokeState_ = null, u.textState_ = null, u.pixelCoordinates_ = [], u.tmpLocalTransform_ =
|
|
5748
|
+
return u.context_ = t, u.pixelRatio_ = e, u.extent_ = n, u.transform_ = o, u.viewRotation_ = a, u.squaredTolerance_ = s, u.userTransform_ = l, u.contextFillState_ = null, u.contextStrokeState_ = null, u.contextTextState_ = null, u.fillState_ = null, u.strokeState_ = null, u.image_ = null, u.imageAnchorX_ = 0, u.imageAnchorY_ = 0, u.imageHeight_ = 0, u.imageOpacity_ = 0, u.imageOriginX_ = 0, u.imageOriginY_ = 0, u.imageRotateWithView_ = !1, u.imageRotation_ = 0, u.imageScale_ = [0, 0], u.imageWidth_ = 0, u.text_ = "", u.textOffsetX_ = 0, u.textOffsetY_ = 0, u.textRotateWithView_ = !1, u.textRotation_ = 0, u.textScale_ = [0, 0], u.textFillState_ = null, u.textStrokeState_ = null, u.textState_ = null, u.pixelCoordinates_ = [], u.tmpLocalTransform_ = Lt(), u;
|
|
5749
5749
|
}
|
|
5750
5750
|
return r.prototype.drawImages_ = function(t, e, n, o) {
|
|
5751
5751
|
if (this.image_) {
|
|
@@ -5991,8 +5991,8 @@ var sc = /* @__PURE__ */ function() {
|
|
|
5991
5991
|
lineDashOffset: (u || Rr) * this.pixelRatio_,
|
|
5992
5992
|
lineJoin: c !== void 0 ? c : cr,
|
|
5993
5993
|
lineWidth: (h !== void 0 ? h : Gr) * this.pixelRatio_,
|
|
5994
|
-
miterLimit: f !== void 0 ? f :
|
|
5995
|
-
strokeStyle: ie(a ||
|
|
5994
|
+
miterLimit: f !== void 0 ? f : Lr,
|
|
5995
|
+
strokeStyle: ie(a || Dr)
|
|
5996
5996
|
};
|
|
5997
5997
|
}
|
|
5998
5998
|
}, r.prototype.setImageStyle = function(t) {
|
|
@@ -6027,8 +6027,8 @@ var sc = /* @__PURE__ */ function() {
|
|
|
6027
6027
|
lineDashOffset: u || Rr,
|
|
6028
6028
|
lineJoin: c !== void 0 ? c : cr,
|
|
6029
6029
|
lineWidth: h !== void 0 ? h : Gr,
|
|
6030
|
-
miterLimit: f !== void 0 ? f :
|
|
6031
|
-
strokeStyle: ie(a ||
|
|
6030
|
+
miterLimit: f !== void 0 ? f : Lr,
|
|
6031
|
+
strokeStyle: ie(a || Dr)
|
|
6032
6032
|
};
|
|
6033
6033
|
}
|
|
6034
6034
|
var d = t.getFont(), p = t.getOffsetX(), g = t.getOffsetY(), v = t.getRotateWithView(), m = t.getRotation(), E = t.getScaleArray(), y = t.getText(), A = t.getTextAlign(), S = t.getTextBaseline();
|
|
@@ -6036,8 +6036,8 @@ var sc = /* @__PURE__ */ function() {
|
|
|
6036
6036
|
font: d !== void 0 ? d : pa,
|
|
6037
6037
|
textAlign: A !== void 0 ? A : Nr,
|
|
6038
6038
|
textBaseline: S !== void 0 ? S : dn
|
|
6039
|
-
}, this.text_ = y !== void 0 ? Array.isArray(y) ? y.reduce(function(
|
|
6040
|
-
return
|
|
6039
|
+
}, this.text_ = y !== void 0 ? Array.isArray(y) ? y.reduce(function(D, L, x) {
|
|
6040
|
+
return D += x % 2 ? " " : L;
|
|
6041
6041
|
}, "") : y : "", this.textOffsetX_ = p !== void 0 ? this.pixelRatio_ * p : 0, this.textOffsetY_ = g !== void 0 ? this.pixelRatio_ * g : 0, this.textRotateWithView_ = v !== void 0 ? v : !1, this.textRotation_ = m !== void 0 ? m : 0, this.textScale_ = [
|
|
6042
6042
|
this.pixelRatio_ * E[0],
|
|
6043
6043
|
this.pixelRatio_ * E[1]
|
|
@@ -6175,7 +6175,7 @@ function Ni(i, r, t) {
|
|
|
6175
6175
|
}).catch(function(l) {
|
|
6176
6176
|
n && (a ? r() : t());
|
|
6177
6177
|
})) : s.push(ln(e, dt.ERROR, t)), function() {
|
|
6178
|
-
n = !1, s.forEach(
|
|
6178
|
+
n = !1, s.forEach(Dt);
|
|
6179
6179
|
};
|
|
6180
6180
|
}
|
|
6181
6181
|
var fc = /* @__PURE__ */ function() {
|
|
@@ -6400,14 +6400,14 @@ function vc(i, r, t, e, n, o, a) {
|
|
|
6400
6400
|
var E = m(v, o);
|
|
6401
6401
|
if (E) {
|
|
6402
6402
|
Array.isArray(E) || (E = [E]);
|
|
6403
|
-
for (var y = g * d, A = "#" + ("000000" + y.toString(16)).slice(-6), S = 0,
|
|
6404
|
-
var
|
|
6403
|
+
for (var y = g * d, A = "#" + ("000000" + y.toString(16)).slice(-6), S = 0, D = E.length; S < D; ++S) {
|
|
6404
|
+
var L = E[S], x = L.getGeometryFunction()(v);
|
|
6405
6405
|
if (!(!x || !bt(n, x.getExtent()))) {
|
|
6406
|
-
var T =
|
|
6406
|
+
var T = L.clone(), C = T.getFill();
|
|
6407
6407
|
C && C.setColor(A);
|
|
6408
6408
|
var R = T.getStroke();
|
|
6409
6409
|
R && (R.setColor(A), R.setLineDash(null)), T.setText(void 0);
|
|
6410
|
-
var O =
|
|
6410
|
+
var O = L.getImage();
|
|
6411
6411
|
if (O && O.getOpacity() !== 0) {
|
|
6412
6412
|
var N = O.getImageSize();
|
|
6413
6413
|
if (!N)
|
|
@@ -6434,10 +6434,10 @@ function vc(i, r, t, e, n, o, a) {
|
|
|
6434
6434
|
}
|
|
6435
6435
|
}
|
|
6436
6436
|
}
|
|
6437
|
-
for (var
|
|
6438
|
-
var _ = p[
|
|
6437
|
+
for (var B = Object.keys(p).map(Number).sort(Xe), g = 0, G = B.length; g < G; ++g) {
|
|
6438
|
+
var _ = p[B[g]];
|
|
6439
6439
|
for (var b in _)
|
|
6440
|
-
for (var Z = _[b], S = 0,
|
|
6440
|
+
for (var Z = _[b], S = 0, D = Z.length; S < D; S += 2) {
|
|
6441
6441
|
h.setStyle(Z[S + 1]);
|
|
6442
6442
|
for (var P = 0, M = r.length; P < M; ++P)
|
|
6443
6443
|
h.setTransform(r[P]), h.drawGeometry(Z[S]);
|
|
@@ -6630,11 +6630,11 @@ var Pc = /* @__PURE__ */ function() {
|
|
|
6630
6630
|
return e.boundHandleStyleImageChange_ = e.handleStyleImageChange_.bind(e), e.animatingOrInteracting_, e.dirty_ = !1, e.hitDetectionImageData_ = null, e.renderedFeatures_ = null, e.renderedRevision_ = -1, e.renderedResolution_ = NaN, e.renderedExtent_ = zt(), e.wrappedRenderedExtent_ = zt(), e.renderedRotation_, e.renderedCenter_ = null, e.renderedProjection_ = null, e.renderedRenderOrder_ = null, e.replayGroup_ = null, e.replayGroupChanged = !0, e.declutterExecutorGroup = null, e.clipping = !0, e;
|
|
6631
6631
|
}
|
|
6632
6632
|
return r.prototype.renderWorlds = function(t, e, n) {
|
|
6633
|
-
var o = e.extent, a = e.viewState, s = a.center, l = a.resolution, u = a.projection, c = a.rotation, h = u.getExtent(), f = this.getLayer().getSource(), d = e.pixelRatio, p = e.viewHints, g = !(p[ar.ANIMATING] || p[ar.INTERACTING]), v = this.context, m = Math.round(e.size[0] * d), E = Math.round(e.size[1] * d), y = f.getWrapX() && u.canWrapX(), A = y ? xt(h) : null, S = y ? Math.ceil((o[2] - h[2]) / A) + 1 : 1,
|
|
6633
|
+
var o = e.extent, a = e.viewState, s = a.center, l = a.resolution, u = a.projection, c = a.rotation, h = u.getExtent(), f = this.getLayer().getSource(), d = e.pixelRatio, p = e.viewHints, g = !(p[ar.ANIMATING] || p[ar.INTERACTING]), v = this.context, m = Math.round(e.size[0] * d), E = Math.round(e.size[1] * d), y = f.getWrapX() && u.canWrapX(), A = y ? xt(h) : null, S = y ? Math.ceil((o[2] - h[2]) / A) + 1 : 1, D = y ? Math.floor((o[0] - h[0]) / A) : 0;
|
|
6634
6634
|
do {
|
|
6635
|
-
var
|
|
6636
|
-
t.execute(v, 1,
|
|
6637
|
-
} while (++
|
|
6635
|
+
var L = this.getRenderTransform(s, l, c, d, m, E, D * A);
|
|
6636
|
+
t.execute(v, 1, L, c, g, void 0, n);
|
|
6637
|
+
} while (++D < S);
|
|
6638
6638
|
}, r.prototype.renderDeclutter = function(t) {
|
|
6639
6639
|
this.declutterExecutorGroup && this.renderWorlds(this.declutterExecutorGroup, t, t.declutterTree);
|
|
6640
6640
|
}, r.prototype.renderFrame = function(t, e) {
|
|
@@ -6727,18 +6727,18 @@ var Pc = /* @__PURE__ */ function() {
|
|
|
6727
6727
|
v === void 0 && (v = Ac);
|
|
6728
6728
|
var m = c.center.slice(), E = jr(u, g * f), y = E.slice(), A = [E.slice()], S = h.getExtent();
|
|
6729
6729
|
if (n.getWrapX() && h.canWrapX() && !Fe(S, t.extent)) {
|
|
6730
|
-
var
|
|
6731
|
-
E[0] = S[0] -
|
|
6730
|
+
var D = xt(S), L = Math.max(xt(E) / 2, D);
|
|
6731
|
+
E[0] = S[0] - L, E[2] = S[2] + L, xl(m, h);
|
|
6732
6732
|
var x = Al(A[0], h);
|
|
6733
6733
|
x[0] < S[0] && x[2] < S[2] ? A.push([
|
|
6734
|
-
x[0] +
|
|
6734
|
+
x[0] + D,
|
|
6735
6735
|
x[1],
|
|
6736
|
-
x[2] +
|
|
6736
|
+
x[2] + D,
|
|
6737
6737
|
x[3]
|
|
6738
6738
|
]) : x[0] > S[0] && x[2] > S[2] && A.push([
|
|
6739
|
-
x[0] -
|
|
6739
|
+
x[0] - D,
|
|
6740
6740
|
x[1],
|
|
6741
|
-
x[2] -
|
|
6741
|
+
x[2] - D,
|
|
6742
6742
|
x[3]
|
|
6743
6743
|
]);
|
|
6744
6744
|
}
|
|
@@ -6766,7 +6766,7 @@ var Pc = /* @__PURE__ */ function() {
|
|
|
6766
6766
|
for (var O = 0, N = _.length; O < N; ++O)
|
|
6767
6767
|
z(_[O]);
|
|
6768
6768
|
this.renderedFeatures_ = _;
|
|
6769
|
-
var
|
|
6769
|
+
var B = T.finish(), G = new _o(E, f, d, n.getOverlaps(), B, e.getRenderBuffer());
|
|
6770
6770
|
return C && (this.declutterExecutorGroup = new _o(E, f, d, n.getOverlaps(), C.finish(), e.getRenderBuffer())), this.renderedResolution_ = f, this.renderedRevision_ = p, this.renderedRenderOrder_ = v, this.renderedExtent_ = y, this.wrappedRenderedExtent_ = E, this.renderedCenter_ = m, this.renderedProjection_ = h, this.replayGroup_ = G, this.hitDetectionImageData_ = null, this.replayGroupChanged = !0, !0;
|
|
6771
6771
|
}, r.prototype.renderFeature = function(t, e, n, o, a, s) {
|
|
6772
6772
|
if (!n)
|
|
@@ -6780,7 +6780,7 @@ var Pc = /* @__PURE__ */ function() {
|
|
|
6780
6780
|
return l;
|
|
6781
6781
|
}, r;
|
|
6782
6782
|
}(Fa)
|
|
6783
|
-
),
|
|
6783
|
+
), Lc = /* @__PURE__ */ function() {
|
|
6784
6784
|
var i = function(r, t) {
|
|
6785
6785
|
return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
|
|
6786
6786
|
e.__proto__ = n;
|
|
@@ -6800,19 +6800,19 @@ var Pc = /* @__PURE__ */ function() {
|
|
|
6800
6800
|
}(), qt = (
|
|
6801
6801
|
/** @class */
|
|
6802
6802
|
function(i) {
|
|
6803
|
-
|
|
6803
|
+
Lc(r, i);
|
|
6804
6804
|
function r(t) {
|
|
6805
6805
|
return i.call(this, t) || this;
|
|
6806
6806
|
}
|
|
6807
6807
|
return r.prototype.createRenderer = function() {
|
|
6808
6808
|
return new Rc(this);
|
|
6809
6809
|
}, r;
|
|
6810
|
-
}(
|
|
6810
|
+
}(Di)
|
|
6811
6811
|
), Mo = (
|
|
6812
6812
|
/** @class */
|
|
6813
6813
|
function() {
|
|
6814
6814
|
function i(r) {
|
|
6815
|
-
this.rbush_ = new
|
|
6815
|
+
this.rbush_ = new Da(r), this.items_ = {};
|
|
6816
6816
|
}
|
|
6817
6817
|
return i.prototype.insert = function(r, t) {
|
|
6818
6818
|
var e = {
|
|
@@ -6878,7 +6878,7 @@ var Pc = /* @__PURE__ */ function() {
|
|
|
6878
6878
|
this.items_[t] = r.items_[t];
|
|
6879
6879
|
}, i;
|
|
6880
6880
|
}()
|
|
6881
|
-
),
|
|
6881
|
+
), Dc = /* @__PURE__ */ function() {
|
|
6882
6882
|
var i = function(r, t) {
|
|
6883
6883
|
return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
|
|
6884
6884
|
e.__proto__ = n;
|
|
@@ -6898,7 +6898,7 @@ var Pc = /* @__PURE__ */ function() {
|
|
|
6898
6898
|
}(), Ba = (
|
|
6899
6899
|
/** @class */
|
|
6900
6900
|
function(i) {
|
|
6901
|
-
|
|
6901
|
+
Dc(r, i);
|
|
6902
6902
|
function r(t) {
|
|
6903
6903
|
var e = i.call(this) || this;
|
|
6904
6904
|
e.projection = _t(t.projection), e.attributions_ = So(t.attributions), e.attributionsCollapsible_ = t.attributionsCollapsible !== void 0 ? t.attributionsCollapsible : !0, e.loading = !1, e.state_ = t.state !== void 0 ? t.state : En.READY, e.wrapX_ = t.wrapX !== void 0 ? t.wrapX : !1, e.interpolate_ = !!t.interpolate, e.viewResolver = null, e.viewRejector = null;
|
|
@@ -7177,7 +7177,7 @@ var ja = /* @__PURE__ */ function() {
|
|
|
7177
7177
|
if (t) {
|
|
7178
7178
|
for (var e in this.featureChangeKeys_) {
|
|
7179
7179
|
var n = this.featureChangeKeys_[e];
|
|
7180
|
-
n.forEach(
|
|
7180
|
+
n.forEach(Dt);
|
|
7181
7181
|
}
|
|
7182
7182
|
this.featuresCollection_ || (this.featureChangeKeys_ = {}, this.idIndex_ = {}, this.uidIndex_ = {});
|
|
7183
7183
|
} else if (this.featuresRtree_) {
|
|
@@ -7328,7 +7328,7 @@ var ja = /* @__PURE__ */ function() {
|
|
|
7328
7328
|
}, r.prototype.removeFeatureInternal = function(t) {
|
|
7329
7329
|
var e = J(t), n = this.featureChangeKeys_[e];
|
|
7330
7330
|
if (n) {
|
|
7331
|
-
n.forEach(
|
|
7331
|
+
n.forEach(Dt), delete this.featureChangeKeys_[e];
|
|
7332
7332
|
var o = t.getId();
|
|
7333
7333
|
return o !== void 0 && delete this.idIndex_[o.toString()], delete this.uidIndex_[e], this.dispatchEvent(new Ae(Rt.REMOVEFEATURE, t)), t;
|
|
7334
7334
|
}
|
|
@@ -7534,13 +7534,13 @@ var Wc = /* @__PURE__ */ function() {
|
|
|
7534
7534
|
UNSIGNED_INT: jc,
|
|
7535
7535
|
FLOAT: Ya
|
|
7536
7536
|
}, mn = {};
|
|
7537
|
-
function
|
|
7537
|
+
function Lo(i) {
|
|
7538
7538
|
return "shared/" + i;
|
|
7539
7539
|
}
|
|
7540
|
-
var
|
|
7540
|
+
var Do = 0;
|
|
7541
7541
|
function Uc() {
|
|
7542
|
-
var i = "unique/" +
|
|
7543
|
-
return
|
|
7542
|
+
var i = "unique/" + Do;
|
|
7543
|
+
return Do += 1, i;
|
|
7544
7544
|
}
|
|
7545
7545
|
function Hc(i) {
|
|
7546
7546
|
var r = mn[i];
|
|
@@ -7563,7 +7563,7 @@ var Jc = (
|
|
|
7563
7563
|
Wc(r, i);
|
|
7564
7564
|
function r(t) {
|
|
7565
7565
|
var e = i.call(this) || this, n = t || {};
|
|
7566
|
-
e.boundHandleWebGLContextLost_ = e.handleWebGLContextLost.bind(e), e.boundHandleWebGLContextRestored_ = e.handleWebGLContextRestored.bind(e), e.canvasCacheKey_ = n.canvasCacheKey ?
|
|
7566
|
+
e.boundHandleWebGLContextLost_ = e.handleWebGLContextLost.bind(e), e.boundHandleWebGLContextRestored_ = e.handleWebGLContextRestored.bind(e), e.canvasCacheKey_ = n.canvasCacheKey ? Lo(n.canvasCacheKey) : Uc(), e.canvas_ = Hc(e.canvasCacheKey_), e.gl_ = ka(e.canvas_), e.bufferCache_ = {}, e.extensionCache_ = {}, e.currentProgram_ = null, e.canvas_.addEventListener(tn.LOST, e.boundHandleWebGLContextLost_), e.canvas_.addEventListener(tn.RESTORED, e.boundHandleWebGLContextRestored_), e.offsetRotateMatrix_ = Lt(), e.offsetScaleMatrix_ = Lt(), e.tmpMat4_ = Xc(), e.uniformLocations_ = {}, e.attribLocations_ = {}, e.uniforms_ = [], n.uniforms && e.setUniforms(n.uniforms);
|
|
7567
7567
|
var o = e.getGL();
|
|
7568
7568
|
return e.postProcessPasses_ = n.postProcesses ? n.postProcesses.map(function(a) {
|
|
7569
7569
|
return new Ro({
|
|
@@ -7584,7 +7584,7 @@ var Jc = (
|
|
|
7584
7584
|
});
|
|
7585
7585
|
this.uniformLocations_ = {};
|
|
7586
7586
|
}, r.prototype.canvasCacheKeyMatches = function(t) {
|
|
7587
|
-
return this.canvasCacheKey_ ===
|
|
7587
|
+
return this.canvasCacheKey_ === Lo(t);
|
|
7588
7588
|
}, r.prototype.getExtension = function(t) {
|
|
7589
7589
|
if (t in this.extensionCache_)
|
|
7590
7590
|
return this.extensionCache_[t];
|
|
@@ -7631,9 +7631,9 @@ var Jc = (
|
|
|
7631
7631
|
return this.gl_;
|
|
7632
7632
|
}, r.prototype.applyFrameState = function(t) {
|
|
7633
7633
|
var e = t.size, n = t.viewState.rotation, o = Gn(this.offsetScaleMatrix_);
|
|
7634
|
-
|
|
7634
|
+
Dl(o, 2 / e[0], 2 / e[1]);
|
|
7635
7635
|
var a = Gn(this.offsetRotateMatrix_);
|
|
7636
|
-
n !== 0 &&
|
|
7636
|
+
n !== 0 && Ll(a, -n), this.setUniformMatrixValue(nr.OFFSET_SCALE_MATRIX, Xn(this.tmpMat4_, o)), this.setUniformMatrixValue(nr.OFFSET_ROTATION_MATRIX, Xn(this.tmpMat4_, a)), this.setUniformFloatValue(nr.TIME, (Date.now() - this.startTime_) * 1e-3), this.setUniformFloatValue(nr.ZOOM, t.viewState.zoom), this.setUniformFloatValue(nr.RESOLUTION, t.viewState.resolution);
|
|
7637
7637
|
}, r.prototype.applyUniforms = function(t) {
|
|
7638
7638
|
var e = this.getGL(), n, o = 0;
|
|
7639
7639
|
this.uniforms_.forEach((function(a) {
|
|
@@ -7758,7 +7758,7 @@ var Kc = /* @__PURE__ */ function() {
|
|
|
7758
7758
|
Kc(r, i);
|
|
7759
7759
|
function r(t, e) {
|
|
7760
7760
|
var n = i.call(this, t) || this, o = e || {};
|
|
7761
|
-
return n.inversePixelTransform_ =
|
|
7761
|
+
return n.inversePixelTransform_ = Lt(), n.pixelContext_ = null, n.postProcesses_ = o.postProcesses, n.uniforms_ = o.uniforms, n.helper, t.addChangeListener($.MAP, n.removeHelper.bind(n)), n.dispatchPreComposeEvent = n.dispatchPreComposeEvent.bind(n), n.dispatchPostComposeEvent = n.dispatchPostComposeEvent.bind(n), n;
|
|
7762
7762
|
}
|
|
7763
7763
|
return r.prototype.dispatchPreComposeEvent = function(t, e) {
|
|
7764
7764
|
var n = this.getLayer();
|
|
@@ -7911,7 +7911,7 @@ var nh = /* @__PURE__ */ function() {
|
|
|
7911
7911
|
function(i) {
|
|
7912
7912
|
nh(r, i);
|
|
7913
7913
|
function r(t, e) {
|
|
7914
|
-
var n = this, o = e.uniforms || {}, a =
|
|
7914
|
+
var n = this, o = e.uniforms || {}, a = Lt();
|
|
7915
7915
|
o[nr.PROJECTION_MATRIX] = a, n = i.call(this, t, {
|
|
7916
7916
|
uniforms: o,
|
|
7917
7917
|
postProcesses: e.postProcesses
|
|
@@ -7955,7 +7955,7 @@ var nh = /* @__PURE__ */ function() {
|
|
|
7955
7955
|
size: 1,
|
|
7956
7956
|
type: Kt.FLOAT
|
|
7957
7957
|
}
|
|
7958
|
-
].concat(s), n.customAttributes = e.attributes ? e.attributes : [], n.previousExtent_ = zt(), n.currentTransform_ = a, n.renderTransform_ =
|
|
7958
|
+
].concat(s), n.customAttributes = e.attributes ? e.attributes : [], n.previousExtent_ = zt(), n.currentTransform_ = a, n.renderTransform_ = Lt(), n.invertRenderTransform_ = Lt(), n.renderInstructions_ = new Float32Array(0), n.hitRenderInstructions_ = new Float32Array(0), n.hitRenderTarget_, n.generateBuffersRun_ = 0, n.worker_ = rh(), n.worker_.addEventListener(
|
|
7959
7959
|
"message",
|
|
7960
7960
|
/**
|
|
7961
7961
|
* @param {*} event Event.
|
|
@@ -8014,12 +8014,12 @@ var nh = /* @__PURE__ */ function() {
|
|
|
8014
8014
|
}, r.prototype.prepareFrameInternal = function(t) {
|
|
8015
8015
|
var e = this.getLayer(), n = e.getSource(), o = t.viewState, a = !t.viewHints[ar.ANIMATING] && !t.viewHints[ar.INTERACTING], s = !Tn(this.previousExtent_, t.extent), l = this.sourceRevision_ < n.getRevision();
|
|
8016
8016
|
if (l && (this.sourceRevision_ = n.getRevision()), a && (s || l)) {
|
|
8017
|
-
var u = o.projection, c = o.resolution, h = e instanceof
|
|
8017
|
+
var u = o.projection, c = o.resolution, h = e instanceof Di ? e.getRenderBuffer() : 0, f = jr(t.extent, h * c);
|
|
8018
8018
|
n.loadFeatures(f, c, u), this.rebuildBuffers_(t), this.previousExtent_ = t.extent.slice();
|
|
8019
8019
|
}
|
|
8020
8020
|
return this.helper.makeProjectionTransform(t, this.currentTransform_), Ti(this.currentTransform_, this.invertRenderTransform_), this.helper.useProgram(this.program_), this.helper.prepareDraw(t), this.helper.bindBuffer(this.verticesBuffer_), this.helper.bindBuffer(this.indicesBuffer_), this.helper.enableAttributes(this.attributes), !0;
|
|
8021
8021
|
}, r.prototype.rebuildBuffers_ = function(t) {
|
|
8022
|
-
var e =
|
|
8022
|
+
var e = Lt();
|
|
8023
8023
|
this.helper.makeProjectionTransform(t, e);
|
|
8024
8024
|
var n = (2 + this.customAttributes.length) * this.featureCount_;
|
|
8025
8025
|
if ((!this.renderInstructions_ || this.renderInstructions_.length !== n) && (this.renderInstructions_ = new Float32Array(n)), this.hitDetectionEnabled_) {
|
|
@@ -8066,7 +8066,7 @@ var nh = /* @__PURE__ */ function() {
|
|
|
8066
8066
|
}
|
|
8067
8067
|
}, r.prototype.disposeInternal = function() {
|
|
8068
8068
|
this.worker_.terminate(), this.layer_ = null, this.sourceListenKeys_.forEach(function(t) {
|
|
8069
|
-
|
|
8069
|
+
Dt(t);
|
|
8070
8070
|
}), this.sourceListenKeys_ = null, i.prototype.disposeInternal.call(this);
|
|
8071
8071
|
}, r;
|
|
8072
8072
|
}(qc)
|
|
@@ -8258,7 +8258,7 @@ var nh = /* @__PURE__ */ function() {
|
|
|
8258
8258
|
});
|
|
8259
8259
|
}, r.prototype.renderDeclutter = function() {
|
|
8260
8260
|
}, r;
|
|
8261
|
-
}(
|
|
8261
|
+
}(Di)
|
|
8262
8262
|
);
|
|
8263
8263
|
function lh(i) {
|
|
8264
8264
|
for (var r = 1, t = 256, e = Xt(r, t), n = e.createLinearGradient(0, 0, r, t), o = 1 / (i.length - 1), a = 0, s = i.length; a < s; ++a)
|
|
@@ -8313,7 +8313,7 @@ var uh = 0.5, ui = {
|
|
|
8313
8313
|
);
|
|
8314
8314
|
function Xa(i, r, t) {
|
|
8315
8315
|
var e = t ? _t(t.featureProjection) : null, n = t ? _t(t.dataProjection) : null, o;
|
|
8316
|
-
if (e && n && !
|
|
8316
|
+
if (e && n && !De(e, n) ? o = (r ? i.clone() : i).transform(r ? e : n, r ? n : e) : o = i, r && t && /** @type {WriteOptions} */
|
|
8317
8317
|
t.decimals !== void 0) {
|
|
8318
8318
|
var a = Math.pow(
|
|
8319
8319
|
10,
|
|
@@ -8658,7 +8658,7 @@ var vh = /* @__PURE__ */ function() {
|
|
|
8658
8658
|
return e.geometries_ = t || null, e.changeEventsKeys_ = [], e.listenGeometriesChange_(), e;
|
|
8659
8659
|
}
|
|
8660
8660
|
return r.prototype.unlistenGeometriesChange_ = function() {
|
|
8661
|
-
this.changeEventsKeys_.forEach(
|
|
8661
|
+
this.changeEventsKeys_.forEach(Dt), this.changeEventsKeys_.length = 0;
|
|
8662
8662
|
}, r.prototype.listenGeometriesChange_ = function() {
|
|
8663
8663
|
if (this.geometries_)
|
|
8664
8664
|
for (var t = 0, e = this.geometries_.length; t < e; ++t)
|
|
@@ -8894,8 +8894,8 @@ var Th = 10, Go = 0.25, Ch = (
|
|
|
8894
8894
|
[y.source[2][0], y.source[2][1]]
|
|
8895
8895
|
];
|
|
8896
8896
|
A[0][0] - E > this.sourceWorldWidth_ / 2 && (A[0][0] -= this.sourceWorldWidth_), A[1][0] - E > this.sourceWorldWidth_ / 2 && (A[1][0] -= this.sourceWorldWidth_), A[2][0] - E > this.sourceWorldWidth_ / 2 && (A[2][0] -= this.sourceWorldWidth_);
|
|
8897
|
-
var S = Math.min(A[0][0], A[1][0], A[2][0]),
|
|
8898
|
-
|
|
8897
|
+
var S = Math.min(A[0][0], A[1][0], A[2][0]), D = Math.max(A[0][0], A[1][0], A[2][0]);
|
|
8898
|
+
D - S < this.sourceWorldWidth_ / 2 && (y.source = A);
|
|
8899
8899
|
}
|
|
8900
8900
|
}).bind(this));
|
|
8901
8901
|
}
|
|
@@ -8934,8 +8934,8 @@ var Th = 10, Go = 0.25, Ch = (
|
|
|
8934
8934
|
A = S - nn(y[0], f);
|
|
8935
8935
|
} else
|
|
8936
8936
|
A = (o[0] + s[0]) / 2 - y[0];
|
|
8937
|
-
var
|
|
8938
|
-
p =
|
|
8937
|
+
var D = (o[1] + s[1]) / 2 - y[1], L = A * A + D * D;
|
|
8938
|
+
p = L > this.errorThresholdSquared_;
|
|
8939
8939
|
}
|
|
8940
8940
|
if (p) {
|
|
8941
8941
|
if (Math.abs(r[0] - e[0]) <= Math.abs(r[1] - e[1])) {
|
|
@@ -9009,38 +9009,38 @@ function Mh(i, r, t, e, n, o, a, s, l, u, c, h) {
|
|
|
9009
9009
|
}
|
|
9010
9010
|
f.globalCompositeOperation = "lighter";
|
|
9011
9011
|
var p = zt();
|
|
9012
|
-
l.forEach(function(A, S,
|
|
9012
|
+
l.forEach(function(A, S, D) {
|
|
9013
9013
|
aa(p, A.extent);
|
|
9014
9014
|
});
|
|
9015
9015
|
var g = xt(p), v = Me(p), m = Xt(Math.round(t * g / e), Math.round(t * v / e));
|
|
9016
9016
|
h || Nt(m, ui);
|
|
9017
9017
|
var E = t / e;
|
|
9018
|
-
l.forEach(function(A, S,
|
|
9019
|
-
var
|
|
9020
|
-
A.image.width > 0 && A.image.height > 0 && m.drawImage(A.image, u, u, A.image.width - 2 * u, A.image.height - 2 * u,
|
|
9018
|
+
l.forEach(function(A, S, D) {
|
|
9019
|
+
var L = A.extent[0] - p[0], x = -(A.extent[3] - p[3]), T = xt(A.extent), C = Me(A.extent);
|
|
9020
|
+
A.image.width > 0 && A.image.height > 0 && m.drawImage(A.image, u, u, A.image.width - 2 * u, A.image.height - 2 * u, L * E, x * E, T * E, C * E);
|
|
9021
9021
|
});
|
|
9022
9022
|
var y = He(a);
|
|
9023
|
-
return s.getTriangles().forEach(function(A, S,
|
|
9024
|
-
var
|
|
9023
|
+
return s.getTriangles().forEach(function(A, S, D) {
|
|
9024
|
+
var L = A.source, x = A.target, T = L[0][0], C = L[0][1], R = L[1][0], O = L[1][1], N = L[2][0], F = L[2][1], z = d((x[0][0] - y[0]) / o), w = d(-(x[0][1] - y[1]) / o), _ = d((x[1][0] - y[0]) / o), B = d(-(x[1][1] - y[1]) / o), G = d((x[2][0] - y[0]) / o), b = d(-(x[2][1] - y[1]) / o), Z = T, P = C;
|
|
9025
9025
|
T = 0, C = 0, R -= Z, O -= P, N -= Z, F -= P;
|
|
9026
9026
|
var M = [
|
|
9027
9027
|
[R, O, 0, 0, _ - z],
|
|
9028
9028
|
[N, F, 0, 0, G - z],
|
|
9029
|
-
[0, 0, R, O,
|
|
9029
|
+
[0, 0, R, O, B - w],
|
|
9030
9030
|
[0, 0, N, F, b - w]
|
|
9031
9031
|
], I = Ws(M);
|
|
9032
9032
|
if (I) {
|
|
9033
9033
|
if (f.save(), f.beginPath(), _h() || !h) {
|
|
9034
|
-
f.moveTo(_,
|
|
9035
|
-
for (var
|
|
9036
|
-
f.lineTo(_ + d((Q + 1) * Y /
|
|
9034
|
+
f.moveTo(_, B);
|
|
9035
|
+
for (var j = 4, Y = z - _, V = w - B, Q = 0; Q < j; Q++)
|
|
9036
|
+
f.lineTo(_ + d((Q + 1) * Y / j), B + d(Q * V / (j - 1))), Q != j - 1 && f.lineTo(_ + d((Q + 1) * Y / j), B + d((Q + 1) * V / (j - 1)));
|
|
9037
9037
|
f.lineTo(G, b);
|
|
9038
9038
|
} else
|
|
9039
|
-
f.moveTo(_,
|
|
9039
|
+
f.moveTo(_, B), f.lineTo(z, w), f.lineTo(G, b);
|
|
9040
9040
|
f.clip(), f.transform(I[0], I[2], I[1], I[3], z, w), f.translate(p[0] - Z, p[3] - P), f.scale(e / t, -e / t), f.drawImage(m.canvas, 0, 0), f.restore();
|
|
9041
9041
|
}
|
|
9042
|
-
}), c && (f.save(), f.globalCompositeOperation = "source-over", f.strokeStyle = "black", f.lineWidth = 1, s.getTriangles().forEach(function(A, S,
|
|
9043
|
-
var
|
|
9042
|
+
}), c && (f.save(), f.globalCompositeOperation = "source-over", f.strokeStyle = "black", f.lineWidth = 1, s.getTriangles().forEach(function(A, S, D) {
|
|
9043
|
+
var L = A.target, x = (L[0][0] - y[0]) / o, T = -(L[0][1] - y[1]) / o, C = (L[1][0] - y[0]) / o, R = -(L[1][1] - y[1]) / o, O = (L[2][0] - y[0]) / o, N = -(L[2][1] - y[1]) / o;
|
|
9044
9044
|
f.beginPath(), f.moveTo(C, R), f.lineTo(x, T), f.lineTo(O, N), f.closePath(), f.stroke();
|
|
9045
9045
|
}), f.restore()), f.canvas;
|
|
9046
9046
|
}
|
|
@@ -9076,15 +9076,15 @@ var Sh = /* @__PURE__ */ function() {
|
|
|
9076
9076
|
var A = o.getResolution(p.wrappedTileCoord_[0]), S = wh(t, n, E, A);
|
|
9077
9077
|
if (!isFinite(S) || S <= 0)
|
|
9078
9078
|
return p.state = U.EMPTY, p;
|
|
9079
|
-
var
|
|
9080
|
-
if (p.triangulation_ = new Ch(t, n, E, m, S *
|
|
9079
|
+
var D = h !== void 0 ? h : uh;
|
|
9080
|
+
if (p.triangulation_ = new Ch(t, n, E, m, S * D, A), p.triangulation_.getTriangles().length === 0)
|
|
9081
9081
|
return p.state = U.EMPTY, p;
|
|
9082
9082
|
p.sourceZ_ = e.getZForResolution(S);
|
|
9083
|
-
var
|
|
9084
|
-
if (m && (t.canWrapX() ? (
|
|
9083
|
+
var L = p.triangulation_.calculateSourceExtent();
|
|
9084
|
+
if (m && (t.canWrapX() ? (L[1] = $t(L[1], m[1], m[3]), L[3] = $t(L[3], m[1], m[3])) : L = on(L, m)), !ti(L))
|
|
9085
9085
|
p.state = U.EMPTY;
|
|
9086
9086
|
else {
|
|
9087
|
-
for (var x = e.getTileRangeForExtentAndZ(
|
|
9087
|
+
for (var x = e.getTileRangeForExtentAndZ(L, p.sourceZ_), T = x.minX; T <= x.maxX; T++)
|
|
9088
9088
|
for (var C = x.minY; C <= x.maxY; C++) {
|
|
9089
9089
|
var R = c(p.sourceZ_, T, C, l);
|
|
9090
9090
|
R && p.sourceTiles_.push(R);
|
|
@@ -9119,7 +9119,7 @@ var Sh = /* @__PURE__ */ function() {
|
|
|
9119
9119
|
t++;
|
|
9120
9120
|
var s = Ct(e, dt.CHANGE, function(l) {
|
|
9121
9121
|
var u = e.getState();
|
|
9122
|
-
(u == U.LOADED || u == U.ERROR || u == U.EMPTY) && (
|
|
9122
|
+
(u == U.LOADED || u == U.ERROR || u == U.EMPTY) && (Dt(s), t--, t === 0 && (this.unlistenSources_(), this.reproject_()));
|
|
9123
9123
|
}, this);
|
|
9124
9124
|
this.sourcesListenerKeys_.push(s);
|
|
9125
9125
|
}
|
|
@@ -9129,7 +9129,7 @@ var Sh = /* @__PURE__ */ function() {
|
|
|
9129
9129
|
});
|
|
9130
9130
|
}
|
|
9131
9131
|
}, r.prototype.unlistenSources_ = function() {
|
|
9132
|
-
this.sourcesListenerKeys_.forEach(
|
|
9132
|
+
this.sourcesListenerKeys_.forEach(Dt), this.sourcesListenerKeys_ = null;
|
|
9133
9133
|
}, r;
|
|
9134
9134
|
}(Ua)
|
|
9135
9135
|
), Fi = (
|
|
@@ -9219,13 +9219,13 @@ var Oh = /* @__PURE__ */ function() {
|
|
|
9219
9219
|
E && (m = on(m, ei(n.extent)));
|
|
9220
9220
|
var y = f.getTilePixelRatio(c), A = Math.round(t.size[0] * y), S = Math.round(t.size[1] * y);
|
|
9221
9221
|
if (u) {
|
|
9222
|
-
var
|
|
9223
|
-
A =
|
|
9222
|
+
var D = Math.round(Math.sqrt(A * A + S * S));
|
|
9223
|
+
A = D, S = D;
|
|
9224
9224
|
}
|
|
9225
|
-
var
|
|
9226
|
-
l[0] -
|
|
9225
|
+
var L = v * A / 2 / y, x = v * S / 2 / y, T = [
|
|
9226
|
+
l[0] - L,
|
|
9227
9227
|
l[1] - x,
|
|
9228
|
-
l[0] +
|
|
9228
|
+
l[0] + L,
|
|
9229
9229
|
l[1] + x
|
|
9230
9230
|
], C = p.getTileRangeForExtentAndZ(m, g), R = {};
|
|
9231
9231
|
R[g] = {};
|
|
@@ -9235,13 +9235,13 @@ var Oh = /* @__PURE__ */ function() {
|
|
|
9235
9235
|
for (var w = C.minY; w <= C.maxY; ++w) {
|
|
9236
9236
|
var _ = this.getTile(g, z, w, t);
|
|
9237
9237
|
if (this.isDrawableTile(_)) {
|
|
9238
|
-
var
|
|
9238
|
+
var B = J(this);
|
|
9239
9239
|
if (_.getState() == U.LOADED) {
|
|
9240
9240
|
R[g][_.tileCoord.toString()] = _;
|
|
9241
|
-
var G = _.inTransition(
|
|
9241
|
+
var G = _.inTransition(B);
|
|
9242
9242
|
!this.newTiles_ && (G || this.renderedTiles.indexOf(_) === -1) && (this.newTiles_ = !0);
|
|
9243
9243
|
}
|
|
9244
|
-
if (_.getAlpha(
|
|
9244
|
+
if (_.getAlpha(B, t.time) === 1)
|
|
9245
9245
|
continue;
|
|
9246
9246
|
}
|
|
9247
9247
|
var b = p.getTileCoordChildTileRange(_.tileCoord, F, N), Z = !1;
|
|
@@ -9251,37 +9251,37 @@ var Oh = /* @__PURE__ */ function() {
|
|
|
9251
9251
|
oe(this.pixelTransform, t.size[0] / 2, t.size[1] / 2, 1 / y, 1 / y, u, -A / 2, -S / 2);
|
|
9252
9252
|
var M = ha(this.pixelTransform);
|
|
9253
9253
|
this.useContainer(e, M, n.opacity, this.getBackground(t));
|
|
9254
|
-
var I = this.context,
|
|
9255
|
-
Ci(this.inversePixelTransform, this.pixelTransform), oe(this.tempTransform, A / 2, S / 2, P, P, 0, -A / 2, -S / 2),
|
|
9254
|
+
var I = this.context, j = I.canvas;
|
|
9255
|
+
Ci(this.inversePixelTransform, this.pixelTransform), oe(this.tempTransform, A / 2, S / 2, P, P, 0, -A / 2, -S / 2), j.width != A || j.height != S ? (j.width = A, j.height = S) : this.containerReused || I.clearRect(0, 0, A, S), E && this.clipUnrotated(I, t, E), f.getInterpolate() || Nt(I, ui), this.preRender(I, t), this.renderedTiles.length = 0;
|
|
9256
9256
|
var Y = Object.keys(R).map(Number);
|
|
9257
9257
|
Y.sort(Xe);
|
|
9258
|
-
var V, Q,
|
|
9258
|
+
var V, Q, tt;
|
|
9259
9259
|
n.opacity === 1 && (!this.containerReused || f.getOpaque(t.viewState.projection)) ? Y = Y.reverse() : (V = [], Q = []);
|
|
9260
9260
|
for (var Ot = Y.length - 1; Ot >= 0; --Ot) {
|
|
9261
9261
|
var Gt = Y[Ot], de = f.getTilePixelSize(Gt, c, a), pe = p.getResolution(Gt), Wt = pe / v, te = de[0] * Wt * P, K = de[1] * Wt * P, yt = p.getTileCoordForCoordAndZ(He(T), Gt), st = p.getTileCoordExtent(yt), et = ft(this.tempTransform, [
|
|
9262
9262
|
y * (st[0] - T[0]) / v,
|
|
9263
9263
|
y * (T[3] - st[3]) / v
|
|
9264
|
-
]), it = y * f.getGutterForProjection(a),
|
|
9265
|
-
for (var lt in
|
|
9264
|
+
]), it = y * f.getGutterForProjection(a), q = R[Gt];
|
|
9265
|
+
for (var lt in q) {
|
|
9266
9266
|
var _ = (
|
|
9267
9267
|
/** @type {import("../../ImageTile.js").default} */
|
|
9268
|
-
|
|
9268
|
+
q[lt]
|
|
9269
9269
|
), ct = _.tileCoord, ot = yt[1] - ct[1], wt = Math.round(et[0] - (ot - 1) * te), Tt = yt[2] - ct[2], Bt = Math.round(et[1] - (Tt - 1) * K), z = Math.round(et[0] - ot * te), w = Math.round(et[1] - Tt * K), gt = wt - z, It = Bt - w, Pt = g === Gt, G = Pt && _.getAlpha(J(this), t.time) !== 1, Ut = !1;
|
|
9270
9270
|
if (!G)
|
|
9271
9271
|
if (V) {
|
|
9272
|
-
|
|
9272
|
+
tt = [z, w, z + gt, w, z + gt, w + It, z, w + It];
|
|
9273
9273
|
for (var pt = 0, Je = V.length; pt < Je; ++pt)
|
|
9274
9274
|
if (g !== Gt && Gt < Q[pt]) {
|
|
9275
9275
|
var mt = V[pt];
|
|
9276
|
-
bt([z, w, z + gt, w + It], [mt[0], mt[3], mt[4], mt[7]]) && (Ut || (I.save(), Ut = !0), I.beginPath(), I.moveTo(
|
|
9276
|
+
bt([z, w, z + gt, w + It], [mt[0], mt[3], mt[4], mt[7]]) && (Ut || (I.save(), Ut = !0), I.beginPath(), I.moveTo(tt[0], tt[1]), I.lineTo(tt[2], tt[3]), I.lineTo(tt[4], tt[5]), I.lineTo(tt[6], tt[7]), I.moveTo(mt[6], mt[7]), I.lineTo(mt[4], mt[5]), I.lineTo(mt[2], mt[3]), I.lineTo(mt[0], mt[1]), I.clip());
|
|
9277
9277
|
}
|
|
9278
|
-
V.push(
|
|
9278
|
+
V.push(tt), Q.push(Gt);
|
|
9279
9279
|
} else
|
|
9280
9280
|
I.clearRect(z, w, gt, It);
|
|
9281
9281
|
this.drawTileImage(_, t, z, w, gt, It, it, Pt), V && !G ? (Ut && I.restore(), this.renderedTiles.unshift(_)) : this.renderedTiles.push(_), this.updateUsedTiles(t.usedTiles, f, _);
|
|
9282
9282
|
}
|
|
9283
9283
|
}
|
|
9284
|
-
this.renderedRevision = d, this.renderedResolution = v, this.extentChanged = !this.renderedExtent_ || !Tn(this.renderedExtent_, T), this.renderedExtent_ = T, this.renderedPixelRatio = c, this.renderedProjection = a, this.manageTilePyramid(t, f, p, c, a, m, g, h.getPreload()), this.scheduleExpireCache(t, f), this.postRender(I, t), n.extent && I.restore(), Nt(I, ch), M !==
|
|
9284
|
+
this.renderedRevision = d, this.renderedResolution = v, this.extentChanged = !this.renderedExtent_ || !Tn(this.renderedExtent_, T), this.renderedExtent_ = T, this.renderedPixelRatio = c, this.renderedProjection = a, this.manageTilePyramid(t, f, p, c, a, m, g, h.getPreload()), this.scheduleExpireCache(t, f), this.postRender(I, t), n.extent && I.restore(), Nt(I, ch), M !== j.style.transform && (j.style.transform = M);
|
|
9285
9285
|
var At = Jo(n.opacity), Mt = this.container;
|
|
9286
9286
|
return At !== Mt.style.opacity && (Mt.style.opacity = At), this.container;
|
|
9287
9287
|
}, r.prototype.drawTileImage = function(t, e, n, o, a, s, l, u) {
|
|
@@ -9404,10 +9404,10 @@ function Mn(i, r, t) {
|
|
|
9404
9404
|
function Ja(i) {
|
|
9405
9405
|
return Mn(i[0], i[1], i[2]);
|
|
9406
9406
|
}
|
|
9407
|
-
function
|
|
9407
|
+
function Lh(i) {
|
|
9408
9408
|
return i.split("/").map(Number);
|
|
9409
9409
|
}
|
|
9410
|
-
function
|
|
9410
|
+
function Dh(i) {
|
|
9411
9411
|
return (i[1] << i[0]) + i[2];
|
|
9412
9412
|
}
|
|
9413
9413
|
function Nh(i, r) {
|
|
@@ -9450,7 +9450,7 @@ var Gh = /* @__PURE__ */ function() {
|
|
|
9450
9450
|
}
|
|
9451
9451
|
}, r.prototype.pruneExceptNewestZ = function() {
|
|
9452
9452
|
if (this.getCount() !== 0) {
|
|
9453
|
-
var t = this.peekFirstKey(), e =
|
|
9453
|
+
var t = this.peekFirstKey(), e = Lh(t), n = e[0];
|
|
9454
9454
|
this.forEach((function(o) {
|
|
9455
9455
|
o.tileCoord[0] !== n && (this.remove(Ja(o.tileCoord)), o.release());
|
|
9456
9456
|
}).bind(this));
|
|
@@ -9715,7 +9715,7 @@ var ts = /* @__PURE__ */ function() {
|
|
|
9715
9715
|
return this.tileGrid ? this.tileGrid : qa(t);
|
|
9716
9716
|
}, r.prototype.getTileCacheForProjection = function(t) {
|
|
9717
9717
|
return nt(
|
|
9718
|
-
|
|
9718
|
+
De(this.getProjection(), t),
|
|
9719
9719
|
68
|
|
9720
9720
|
// A VectorTile source can only be rendered if it has a projection compatible with the view projection.
|
|
9721
9721
|
), this.tileCache;
|
|
@@ -9783,7 +9783,7 @@ function Wh(i) {
|
|
|
9783
9783
|
*/
|
|
9784
9784
|
function(r, t, e) {
|
|
9785
9785
|
if (r) {
|
|
9786
|
-
var n =
|
|
9786
|
+
var n = Dh(r), o = nn(n, i.length);
|
|
9787
9787
|
return i[o](r, t, e);
|
|
9788
9788
|
} else
|
|
9789
9789
|
return;
|
|
@@ -9976,7 +9976,7 @@ var Kh = /* @__PURE__ */ function() {
|
|
|
9976
9976
|
),
|
|
9977
9977
|
properties: null
|
|
9978
9978
|
};
|
|
9979
|
-
var o = ci(n.geometry, e), a = new
|
|
9979
|
+
var o = ci(n.geometry, e), a = new Li();
|
|
9980
9980
|
return this.geometryName_ ? a.setGeometryName(this.geometryName_) : this.extractGeometryName_ && "geometry_name" in n !== void 0 && a.setGeometryName(n.geometry_name), a.setGeometry(o), "id" in n && a.setId(n.id), n.properties && a.setProperties(n.properties, !0), a;
|
|
9981
9981
|
}, r.prototype.readFeaturesFromObject = function(t, e) {
|
|
9982
9982
|
var n = (
|
|
@@ -10287,23 +10287,23 @@ var df = /* @__PURE__ */ function() {
|
|
|
10287
10287
|
a.expireCache(a == n ? e : {});
|
|
10288
10288
|
}
|
|
10289
10289
|
}, r.prototype.getGutterForProjection = function(t) {
|
|
10290
|
-
return this.getProjection() && t && !
|
|
10290
|
+
return this.getProjection() && t && !De(this.getProjection(), t) ? 0 : this.getGutter();
|
|
10291
10291
|
}, r.prototype.getGutter = function() {
|
|
10292
10292
|
return 0;
|
|
10293
10293
|
}, r.prototype.getKey = function() {
|
|
10294
10294
|
var t = i.prototype.getKey.call(this);
|
|
10295
10295
|
return this.getInterpolate() || (t += ":disable-interpolation"), t;
|
|
10296
10296
|
}, r.prototype.getOpaque = function(t) {
|
|
10297
|
-
return this.getProjection() && t && !
|
|
10297
|
+
return this.getProjection() && t && !De(this.getProjection(), t) ? !1 : i.prototype.getOpaque.call(this, t);
|
|
10298
10298
|
}, r.prototype.getTileGridForProjection = function(t) {
|
|
10299
10299
|
var e = this.getProjection();
|
|
10300
|
-
if (this.tileGrid && (!e ||
|
|
10300
|
+
if (this.tileGrid && (!e || De(e, t)))
|
|
10301
10301
|
return this.tileGrid;
|
|
10302
10302
|
var n = J(t);
|
|
10303
10303
|
return n in this.tileGridForProjection || (this.tileGridForProjection[n] = qa(t)), this.tileGridForProjection[n];
|
|
10304
10304
|
}, r.prototype.getTileCacheForProjection = function(t) {
|
|
10305
10305
|
var e = this.getProjection();
|
|
10306
|
-
if (!e ||
|
|
10306
|
+
if (!e || De(e, t))
|
|
10307
10307
|
return this.tileCache;
|
|
10308
10308
|
var n = J(t);
|
|
10309
10309
|
return n in this.tileCacheForProjection || (this.tileCacheForProjection[n] = new Qa(this.tileCache.highWaterMark)), this.tileCacheForProjection[n];
|
|
@@ -10312,7 +10312,7 @@ var df = /* @__PURE__ */ function() {
|
|
|
10312
10312
|
return h.key = s, h.addEventListener(dt.CHANGE, this.handleTileChange.bind(this)), h;
|
|
10313
10313
|
}, r.prototype.getTile = function(t, e, n, o, a) {
|
|
10314
10314
|
var s = this.getProjection();
|
|
10315
|
-
if (!s || !a ||
|
|
10315
|
+
if (!s || !a || De(s, a))
|
|
10316
10316
|
return this.getTileInternal(t, e, n, o, s || a);
|
|
10317
10317
|
var l = this.getTileCacheForProjection(a), u = [t, e, n], c = void 0, h = Ja(u);
|
|
10318
10318
|
l.containsKey(h) && (c = l.get(h));
|
|
@@ -10559,7 +10559,7 @@ var vf = /* @__PURE__ */ function() {
|
|
|
10559
10559
|
n[0] * (1 - l) + s[0] * l,
|
|
10560
10560
|
n[1] * (1 - l) + s[1] * l
|
|
10561
10561
|
]);
|
|
10562
|
-
return this.createCustomCluster_ ? this.createCustomCluster_(u, t) : new
|
|
10562
|
+
return this.createCustomCluster_ ? this.createCustomCluster_(u, t) : new Li({
|
|
10563
10563
|
geometry: u,
|
|
10564
10564
|
features: t
|
|
10565
10565
|
});
|
|
@@ -10641,7 +10641,7 @@ const Sf = /* @__PURE__ */ zi(xf, [["render", Mf], ["__scopeId", "data-v-b440b5a
|
|
|
10641
10641
|
function rs(i, r, t, e, n, o, a) {
|
|
10642
10642
|
const l = a || "cb48e2a640a7b1c9b559da93318b633c", u = H(null), c = H(!1), h = H(null), f = H(null), d = H(null), p = H(null), g = H(null), v = H(null), m = H(null), E = H(null), y = H(null), A = H(null);
|
|
10643
10643
|
H(null);
|
|
10644
|
-
const S = H(null),
|
|
10644
|
+
const S = H(null), D = H(null), L = H(null), x = H(null), T = H(null), C = H(null), R = "http://service.sdmap.gov.cn/tileservice/dsfg_asdxb?", O = "https://service.sdmap.gov.cn/tileservice/dsfg_qsb?", N = "https://service.sdmap.gov.cn/tileservice/sdrasterpubmap?", F = "http://10.166.157.209:8090/iserver/services/map-road20/rest/maps/roadData", z = "http://jsgl.sdgsbim.com:8602/iserver/services/map-JiNanGaoSuLuWangv4/rest/maps/dashLine@济南高速路网v4", w = "http://10.166.157.209:8090/iserver/services/map-ZH20/rest/maps/ZHData20", _ = "/china_full.json", B = "#1b2639", G = "#eeeee9", b = "#adb0aa", Z = "#3578E0", P = "#b4b4b1", M = "#d3d3d3", I = Ye(() => ["dark", "light", "yingxiang"].includes(r.value) ? r.value : "dark"), j = () => {
|
|
10645
10645
|
let K;
|
|
10646
10646
|
I.value === "light" ? K = O : I.value === "yingxiang" ? K = N : K = R, d.value = new Ee({
|
|
10647
10647
|
source: new Wr({
|
|
@@ -10688,8 +10688,8 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10688
10688
|
stopEvent: !0,
|
|
10689
10689
|
autoPan: !1
|
|
10690
10690
|
}), i.value.addOverlay(p.value), i.value.on("click", (it) => {
|
|
10691
|
-
let
|
|
10692
|
-
g.value =
|
|
10691
|
+
let q = it.coordinate;
|
|
10692
|
+
g.value = q;
|
|
10693
10693
|
let lt = document.getElementById("popupHeaderTitle"), ct = i.value.forEachFeatureAtPixel(
|
|
10694
10694
|
it.pixel,
|
|
10695
10695
|
(ot, wt) => {
|
|
@@ -10706,11 +10706,11 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10706
10706
|
let wt = Number(
|
|
10707
10707
|
document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]
|
|
10708
10708
|
), Tt = v.value / 153.6 * wt, Bt = m.value / 153.6 * wt;
|
|
10709
|
-
p.value.setPosition(
|
|
10709
|
+
p.value.setPosition(q), p.value.setOffset([
|
|
10710
10710
|
-Bt / 2,
|
|
10711
10711
|
-Tt
|
|
10712
10712
|
]);
|
|
10713
|
-
let gt = i.value.getPixelFromCoordinate(
|
|
10713
|
+
let gt = i.value.getPixelFromCoordinate(q), It = [gt[0], gt[1] - 150], Pt = i.value.getCoordinateFromPixel(It);
|
|
10714
10714
|
i.value.getView().animate({
|
|
10715
10715
|
center: Pt,
|
|
10716
10716
|
duration: 800
|
|
@@ -10726,7 +10726,7 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10726
10726
|
if (ot) {
|
|
10727
10727
|
if (ot.isDrawn) return;
|
|
10728
10728
|
if (ot.popoup === !1) {
|
|
10729
|
-
t("clickPointEvent", ot);
|
|
10729
|
+
t("clickPointEvent", ot, q);
|
|
10730
10730
|
return;
|
|
10731
10731
|
}
|
|
10732
10732
|
const Ut = ot.type;
|
|
@@ -10736,11 +10736,11 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10736
10736
|
let wt = Number(
|
|
10737
10737
|
document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]
|
|
10738
10738
|
), Tt = v.value / 153.6 * wt, Bt = m.value / 153.6 * wt;
|
|
10739
|
-
p.value.setPosition(
|
|
10739
|
+
p.value.setPosition(q), p.value.setOffset([
|
|
10740
10740
|
-Bt / 2,
|
|
10741
10741
|
-Tt
|
|
10742
10742
|
]);
|
|
10743
|
-
let gt = i.value.getPixelFromCoordinate(
|
|
10743
|
+
let gt = i.value.getPixelFromCoordinate(q), It = [gt[0], gt[1] - 150], Pt = i.value.getCoordinateFromPixel(It);
|
|
10744
10744
|
i.value.getView().animate({
|
|
10745
10745
|
center: Pt,
|
|
10746
10746
|
duration: 800
|
|
@@ -10751,7 +10751,7 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10751
10751
|
if (ot) {
|
|
10752
10752
|
if (ot.isDrawn) return;
|
|
10753
10753
|
if (ot.popoup === !1) {
|
|
10754
|
-
t("clickPointEvent", ot);
|
|
10754
|
+
t("clickPointEvent", ot, q);
|
|
10755
10755
|
return;
|
|
10756
10756
|
}
|
|
10757
10757
|
n();
|
|
@@ -10769,11 +10769,11 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10769
10769
|
let wt = Number(
|
|
10770
10770
|
document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]
|
|
10771
10771
|
), Tt = v.value / 192 * wt, Bt = m.value / 192 * wt;
|
|
10772
|
-
p.value.setPosition(
|
|
10772
|
+
p.value.setPosition(q), p.value.setOffset([
|
|
10773
10773
|
-Bt / 2,
|
|
10774
10774
|
-Tt
|
|
10775
10775
|
]);
|
|
10776
|
-
let gt = i.value.getPixelFromCoordinate(
|
|
10776
|
+
let gt = i.value.getPixelFromCoordinate(q), It = [gt[0], gt[1] - 120], Pt = i.value.getCoordinateFromPixel(It);
|
|
10777
10777
|
i.value.getView().animate({
|
|
10778
10778
|
center: Pt,
|
|
10779
10779
|
duration: 800
|
|
@@ -10788,20 +10788,20 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10788
10788
|
et = setTimeout(() => {
|
|
10789
10789
|
et = null;
|
|
10790
10790
|
}, 50);
|
|
10791
|
-
let
|
|
10792
|
-
if (
|
|
10793
|
-
if (u.value && t("pointerOutEvent", u.value.getProperties()),
|
|
10791
|
+
let q = i.value.forEachFeatureAtPixel(it.pixel, (lt) => lt);
|
|
10792
|
+
if (q !== u.value) {
|
|
10793
|
+
if (u.value && t("pointerOutEvent", u.value.getProperties()), q) {
|
|
10794
10794
|
let lt = null;
|
|
10795
|
-
if (
|
|
10795
|
+
if (q.getProperties().longitude && q.getProperties().latitude) {
|
|
10796
10796
|
let ct = [
|
|
10797
|
-
|
|
10798
|
-
|
|
10797
|
+
q.getProperties().longitude,
|
|
10798
|
+
q.getProperties().latitude
|
|
10799
10799
|
];
|
|
10800
10800
|
lt = i.value.getPixelFromCoordinate(ct);
|
|
10801
10801
|
}
|
|
10802
|
-
t("pointerMoveEvent",
|
|
10802
|
+
t("pointerMoveEvent", q.getProperties(), lt);
|
|
10803
10803
|
}
|
|
10804
|
-
u.value =
|
|
10804
|
+
u.value = q;
|
|
10805
10805
|
}
|
|
10806
10806
|
});
|
|
10807
10807
|
}, Y = (K, yt, st) => {
|
|
@@ -10824,7 +10824,7 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10824
10824
|
})
|
|
10825
10825
|
}),
|
|
10826
10826
|
zIndex: 3,
|
|
10827
|
-
style: function(
|
|
10827
|
+
style: function(q) {
|
|
10828
10828
|
return new rt({
|
|
10829
10829
|
fill: new Yt({
|
|
10830
10830
|
color: yt
|
|
@@ -10838,9 +10838,9 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10838
10838
|
}), i.value.addLayer(E.value);
|
|
10839
10839
|
});
|
|
10840
10840
|
}, V = () => {
|
|
10841
|
-
|
|
10841
|
+
L.value && i.value.removeLayer(L.value), L.value = new Ee({
|
|
10842
10842
|
layerName: "baseRoadlayer",
|
|
10843
|
-
source: new
|
|
10843
|
+
source: new Dn({
|
|
10844
10844
|
url: F,
|
|
10845
10845
|
wrapX: !0,
|
|
10846
10846
|
cacheEnabled: !0
|
|
@@ -10849,9 +10849,9 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10849
10849
|
projection: "EPSG:4326",
|
|
10850
10850
|
maxTilesLoading: 8,
|
|
10851
10851
|
preload: 0
|
|
10852
|
-
}), i.value.addLayer(
|
|
10852
|
+
}), i.value.addLayer(L.value), x.value && i.value.removeLayer(x.value), x.value = new Ee({
|
|
10853
10853
|
layerName: "roadLinelayer",
|
|
10854
|
-
source: new
|
|
10854
|
+
source: new Dn({
|
|
10855
10855
|
url: z,
|
|
10856
10856
|
wrapX: !0,
|
|
10857
10857
|
cacheEnabled: !0
|
|
@@ -10865,19 +10865,19 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10865
10865
|
const K = i.value.getView();
|
|
10866
10866
|
let yt = null;
|
|
10867
10867
|
const st = () => {
|
|
10868
|
-
K.getZoom() < 15 ? (
|
|
10868
|
+
K.getZoom() < 15 ? (L.value.getVisible() || L.value.setVisible(!0), x.value.getVisible() && x.value.setVisible(!1)) : (L.value.getVisible() && L.value.setVisible(!1), x.value.getVisible() || x.value.setVisible(!0));
|
|
10869
10869
|
};
|
|
10870
10870
|
return st(), K.on("change:resolution", () => {
|
|
10871
10871
|
yt && clearTimeout(yt), yt = setTimeout(st, 150);
|
|
10872
10872
|
}), {
|
|
10873
|
-
baseRoadlayer:
|
|
10873
|
+
baseRoadlayer: L.value,
|
|
10874
10874
|
roadLinelayer: x.value
|
|
10875
10875
|
};
|
|
10876
10876
|
}, Q = () => {
|
|
10877
|
-
|
|
10878
|
-
},
|
|
10877
|
+
L.value && (i.value.removeLayer(L.value), L.value = null), x.value && (i.value.removeLayer(x.value), x.value = null);
|
|
10878
|
+
}, tt = () => (T.value && i.value.removeLayer(T.value), T.value = new Ee({
|
|
10879
10879
|
layerName: "pileLayer",
|
|
10880
|
-
source: new
|
|
10880
|
+
source: new Dn({
|
|
10881
10881
|
url: w,
|
|
10882
10882
|
wrapX: !0,
|
|
10883
10883
|
cacheEnabled: !0
|
|
@@ -10891,9 +10891,9 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10891
10891
|
}, Gt = () => {
|
|
10892
10892
|
const K = /* @__PURE__ */ new Date(), yt = K.getFullYear();
|
|
10893
10893
|
let st = K.getMonth() + 1, et = K.getDate();
|
|
10894
|
-
const it = K.getHours(),
|
|
10894
|
+
const it = K.getHours(), q = K.getMinutes(), lt = K.getSeconds();
|
|
10895
10895
|
st >= 1 && st <= 9 && (st = "0" + st), et >= 1 && et <= 9 && (et = "0" + et);
|
|
10896
|
-
const ct = yt + "-" + st + "-" + et + " " + it + ":" +
|
|
10896
|
+
const ct = yt + "-" + st + "-" + et + " " + it + ":" + q + ":" + lt;
|
|
10897
10897
|
return new Date(
|
|
10898
10898
|
ct.replace(new RegExp("-", "gm"), "/")
|
|
10899
10899
|
).getTime();
|
|
@@ -10908,8 +10908,8 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10908
10908
|
zIndex: K.zIndex || 9,
|
|
10909
10909
|
minZoom: K.minZoom ?? 13
|
|
10910
10910
|
}), C.value.on("prerender", (st) => {
|
|
10911
|
-
const et = st.context, it = i.value.getView().getZoom(),
|
|
10912
|
-
et.save(), et.translate(
|
|
10911
|
+
const et = st.context, it = i.value.getView().getZoom(), q = yt * (256 * Math.pow(2, it)) / 360, lt = 5e-5 * (256 * Math.pow(2, it)) / 360;
|
|
10912
|
+
et.save(), et.translate(q, lt);
|
|
10913
10913
|
}), C.value.on("postrender", (st) => {
|
|
10914
10914
|
st.context.restore();
|
|
10915
10915
|
}), i.value.addLayer(C.value), C.value;
|
|
@@ -10923,7 +10923,7 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10923
10923
|
zIndex: 1,
|
|
10924
10924
|
maxTilesLoading: 8,
|
|
10925
10925
|
preload: 0
|
|
10926
|
-
}), i.value.addLayer(S.value),
|
|
10926
|
+
}), i.value.addLayer(S.value), D.value && i.value.removeLayer(D.value), D.value = new Ee({
|
|
10927
10927
|
source: new Wr({
|
|
10928
10928
|
layerType: "img",
|
|
10929
10929
|
isLabel: !0,
|
|
@@ -10932,14 +10932,14 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10932
10932
|
zIndex: 2,
|
|
10933
10933
|
maxTilesLoading: 8,
|
|
10934
10934
|
preload: 0
|
|
10935
|
-
}), i.value.addLayer(
|
|
10935
|
+
}), i.value.addLayer(D.value), {
|
|
10936
10936
|
yingxiangLayer: S.value,
|
|
10937
|
-
yingxiangBZLayer:
|
|
10937
|
+
yingxiangBZLayer: D.value
|
|
10938
10938
|
}), te = () => {
|
|
10939
|
-
S.value && (i.value.removeLayer(S.value), S.value = null),
|
|
10939
|
+
S.value && (i.value.removeLayer(S.value), S.value = null), D.value && (i.value.removeLayer(D.value), D.value = null);
|
|
10940
10940
|
};
|
|
10941
10941
|
return sn(r, (K) => {
|
|
10942
|
-
K === "dark" ? Y(R,
|
|
10942
|
+
K === "dark" ? Y(R, B, Z) : K === "light" ? Y(O, G, P) : K === "yingxiang" && Y(N, b, M);
|
|
10943
10943
|
}), {
|
|
10944
10944
|
lastHoverFeature: u,
|
|
10945
10945
|
isCluster: c,
|
|
@@ -10954,18 +10954,18 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10954
10954
|
currentTabComponent: y,
|
|
10955
10955
|
popupAttributes: A,
|
|
10956
10956
|
shandongYingxiangLayer: S,
|
|
10957
|
-
shandongYingxiangBZLayer:
|
|
10958
|
-
baseRoadlayer:
|
|
10957
|
+
shandongYingxiangBZLayer: D,
|
|
10958
|
+
baseRoadlayer: L,
|
|
10959
10959
|
roadLinelayer: x,
|
|
10960
10960
|
pileLayer: T,
|
|
10961
10961
|
gaodeTrafficLayer: C,
|
|
10962
10962
|
normalizedThemeStyle: I,
|
|
10963
|
-
initBaseLayers:
|
|
10963
|
+
initBaseLayers: j,
|
|
10964
10964
|
loadShandongYingxiangLayer: Wt,
|
|
10965
10965
|
removeShandongYingxiangLayer: te,
|
|
10966
10966
|
loadShandongRoadLayer: V,
|
|
10967
10967
|
removeShandongRoadLayer: Q,
|
|
10968
|
-
loadPileLayer:
|
|
10968
|
+
loadPileLayer: tt,
|
|
10969
10969
|
removePileLayer: Ot,
|
|
10970
10970
|
loadGaodeTrafficLayer: de,
|
|
10971
10971
|
removeGaodeTrafficLayer: pe
|
|
@@ -10983,15 +10983,18 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
10983
10983
|
o.value = C.popupHeight, a.value = C.popupWidth, s.value = es, l.value = C, O && (O.innerHTML = C.popupTitle || ""), p(R, 10);
|
|
10984
10984
|
break;
|
|
10985
10985
|
}
|
|
10986
|
+
if (!u.value) return;
|
|
10987
|
+
let N = Number(
|
|
10988
|
+
document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]
|
|
10989
|
+
), F = o.value / 153.6 * N, z = a.value / 153.6 * N;
|
|
10990
|
+
u.value.setPosition(R), u.value.setOffset([-z / 2, -F]);
|
|
10991
|
+
let w = i.value.value.getPixelFromCoordinate(R), _ = [w[0], w[1] - 17], B = i.value.value.getCoordinateFromPixel(_);
|
|
10986
10992
|
setTimeout(() => {
|
|
10987
|
-
|
|
10988
|
-
|
|
10989
|
-
|
|
10990
|
-
)
|
|
10991
|
-
|
|
10992
|
-
u.value && (u.value.setPosition(R), u.value.setOffset([-z / 2.45, -F + 80]));
|
|
10993
|
-
}, 100) : (u.value.setPosition(R), u.value.setOffset([-z / 2, -F]));
|
|
10994
|
-
}, 0);
|
|
10993
|
+
i.value.value.getView().animate({
|
|
10994
|
+
center: B,
|
|
10995
|
+
duration: 1500
|
|
10996
|
+
});
|
|
10997
|
+
}, 10);
|
|
10995
10998
|
}, p = (T, C) => {
|
|
10996
10999
|
if (!i || !i.value || !i.value.value) {
|
|
10997
11000
|
console.error("Map reference is not valid");
|
|
@@ -11017,13 +11020,13 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11017
11020
|
}
|
|
11018
11021
|
let z = new Jt();
|
|
11019
11022
|
if (T.pointList.forEach((w) => {
|
|
11020
|
-
let _ = new
|
|
11023
|
+
let _ = new Ln({
|
|
11021
11024
|
title: "要素点",
|
|
11022
11025
|
// geometry: new Point(fromLonLat([data.longitude, data.latitude])),
|
|
11023
11026
|
geometry: new Se([w.longitude, w.latitude])
|
|
11024
11027
|
});
|
|
11025
11028
|
_.set("type", w.type), _.set("iconUrl", w.iconUrl), _.set("popoup", w.popoup), _.set("popupTitle", w.popupTitle), _.set("popupUrl", w.popupUrl), _.set("popupWidth", w.popupWidth), _.set("popupHeight", w.popupHeight), _.set("otherInfo", w.otherInfo), _.set("longitude", w.longitude), _.set("latitude", w.latitude), _.set("isVisible", !1), _.set("layerId", C);
|
|
11026
|
-
let
|
|
11029
|
+
let B = [
|
|
11027
11030
|
new rt({
|
|
11028
11031
|
image: new ht({
|
|
11029
11032
|
src: w.iconUrl,
|
|
@@ -11061,15 +11064,15 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11061
11064
|
zIndex: 60
|
|
11062
11065
|
})
|
|
11063
11066
|
];
|
|
11064
|
-
_.setStyle(
|
|
11067
|
+
_.setStyle(B), z.addFeature(_);
|
|
11065
11068
|
}), R) {
|
|
11066
11069
|
O.value = new qt({
|
|
11067
11070
|
layerName: C,
|
|
11068
11071
|
zIndex: 999,
|
|
11069
11072
|
style: function(_) {
|
|
11070
|
-
const
|
|
11073
|
+
const B = _.get("features").length;
|
|
11071
11074
|
let G;
|
|
11072
|
-
if (
|
|
11075
|
+
if (B > 1) {
|
|
11073
11076
|
new rt({
|
|
11074
11077
|
image: new Pa({
|
|
11075
11078
|
fill: new Yt({
|
|
@@ -11088,7 +11091,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11088
11091
|
}),
|
|
11089
11092
|
offsetY: 2,
|
|
11090
11093
|
font: "bold 16px sans-serif",
|
|
11091
|
-
text:
|
|
11094
|
+
text: B.toString()
|
|
11092
11095
|
})
|
|
11093
11096
|
});
|
|
11094
11097
|
let b = new rt({
|
|
@@ -11101,7 +11104,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11101
11104
|
}),
|
|
11102
11105
|
offsetY: -2,
|
|
11103
11106
|
font: "14px sans-serif",
|
|
11104
|
-
text:
|
|
11107
|
+
text: B.toString()
|
|
11105
11108
|
})
|
|
11106
11109
|
}), Z = new rt({
|
|
11107
11110
|
image: new ht({
|
|
@@ -11113,7 +11116,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11113
11116
|
}),
|
|
11114
11117
|
offsetY: -2,
|
|
11115
11118
|
font: "14px sans-serif",
|
|
11116
|
-
text:
|
|
11119
|
+
text: B.toString()
|
|
11117
11120
|
})
|
|
11118
11121
|
}), P = new rt({
|
|
11119
11122
|
image: new ht({
|
|
@@ -11126,7 +11129,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11126
11129
|
}),
|
|
11127
11130
|
offsetY: 16,
|
|
11128
11131
|
font: "14px sans-serif",
|
|
11129
|
-
text:
|
|
11132
|
+
text: B.toString()
|
|
11130
11133
|
})
|
|
11131
11134
|
});
|
|
11132
11135
|
if (i.value.value.getView().getZoom() < 18)
|
|
@@ -11160,7 +11163,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11160
11163
|
}
|
|
11161
11164
|
let O = [];
|
|
11162
11165
|
T.forEach((F) => {
|
|
11163
|
-
let z = F.xyArr.map((_) => _), w = new
|
|
11166
|
+
let z = F.xyArr.map((_) => _), w = new Ln({
|
|
11164
11167
|
geometry: new gn(z)
|
|
11165
11168
|
});
|
|
11166
11169
|
w.set("popoup", F.popoup), w.set("otherInfo", F.otherInfo), w.setStyle(
|
|
@@ -11191,7 +11194,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11191
11194
|
let O = [];
|
|
11192
11195
|
T.forEach((F) => {
|
|
11193
11196
|
if (F.longitude !== void 0 && F.latitude !== void 0) {
|
|
11194
|
-
let z = new
|
|
11197
|
+
let z = new Ln({
|
|
11195
11198
|
geometry: new Se([F.longitude, F.latitude]),
|
|
11196
11199
|
weight: F.weight || 1
|
|
11197
11200
|
// 使用数据中的权重值,如果没有则默认为1
|
|
@@ -11259,25 +11262,25 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11259
11262
|
O.appendTo(i.value.value);
|
|
11260
11263
|
let N = function(M) {
|
|
11261
11264
|
let I = [];
|
|
11262
|
-
for (let
|
|
11263
|
-
let Y = M[
|
|
11265
|
+
for (let j = 0; j < M.length; j++) {
|
|
11266
|
+
let Y = M[j].latlng;
|
|
11264
11267
|
if (Y) {
|
|
11265
|
-
let V = M[
|
|
11268
|
+
let V = M[j].bar_data || [0];
|
|
11266
11269
|
Array.isArray(V) || (V = [V]);
|
|
11267
|
-
let Q = M[
|
|
11270
|
+
let Q = M[j].bar_names || ["数据1"];
|
|
11268
11271
|
Array.isArray(Q) || (Q = [Q]);
|
|
11269
|
-
let
|
|
11270
|
-
Array.isArray(
|
|
11271
|
-
name: M[
|
|
11272
|
+
let tt = M[j].bar_units || ["单位"];
|
|
11273
|
+
Array.isArray(tt) || (tt = [tt]), I.push({
|
|
11274
|
+
name: M[j].city,
|
|
11272
11275
|
value: Y,
|
|
11273
11276
|
// 不再使用level字段
|
|
11274
|
-
bar_count: M[
|
|
11277
|
+
bar_count: M[j].bar_count || 1,
|
|
11275
11278
|
// 默认显示一根柱子
|
|
11276
|
-
color: Array.isArray(M[
|
|
11279
|
+
color: Array.isArray(M[j].color) ? M[j].color : M[j].color ? [M[j].color, "#ff7f00"] : ["#efda18", "#ff7f00"],
|
|
11277
11280
|
// 默认颜色
|
|
11278
11281
|
bar_data: V,
|
|
11279
11282
|
bar_names: Q,
|
|
11280
|
-
bar_units:
|
|
11283
|
+
bar_units: tt
|
|
11281
11284
|
});
|
|
11282
11285
|
}
|
|
11283
11286
|
}
|
|
@@ -11286,7 +11289,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11286
11289
|
const F = N(C).reduce((M, I) => M.concat(I.bar_data), []), z = Math.max(...F, 1), w = (M) => {
|
|
11287
11290
|
let I;
|
|
11288
11291
|
if (typeof M == "string" && M.startsWith("#")) {
|
|
11289
|
-
const
|
|
11292
|
+
const j = M.replace("#", ""), Y = parseInt(j.substring(0, 2), 16), V = parseInt(j.substring(2, 4), 16), Q = parseInt(j.substring(4, 6), 16);
|
|
11290
11293
|
I = `rgba(${Y}, ${V}, ${Q}, 1)`;
|
|
11291
11294
|
} else
|
|
11292
11295
|
I = M;
|
|
@@ -11325,13 +11328,13 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11325
11328
|
};
|
|
11326
11329
|
}, _ = N(C).filter(
|
|
11327
11330
|
(M) => M.bar_count === 1
|
|
11328
|
-
),
|
|
11331
|
+
), B = N(C).filter(
|
|
11329
11332
|
(M) => M.bar_count > 1
|
|
11330
|
-
), G =
|
|
11333
|
+
), G = B.map((M) => ({
|
|
11331
11334
|
...M,
|
|
11332
11335
|
value: [M.value[0], M.value[1], M.bar_data[0]]
|
|
11333
11336
|
// 使用第一个数据值
|
|
11334
|
-
})), b =
|
|
11337
|
+
})), b = B.map((M) => ({
|
|
11335
11338
|
...M,
|
|
11336
11339
|
value: [M.value[0], M.value[1], M.bar_data[1] || 0]
|
|
11337
11340
|
// 使用第二个数据值
|
|
@@ -11346,14 +11349,14 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11346
11349
|
trigger: "item",
|
|
11347
11350
|
formatter: function(M) {
|
|
11348
11351
|
if (M.seriesName === "车流量") {
|
|
11349
|
-
const I = M.data.bar_names[0] || "数据",
|
|
11350
|
-
return `${M.data.name}<br/>${I}: ${
|
|
11352
|
+
const I = M.data.bar_names[0] || "数据", j = M.data.bar_data[0] || 0, Y = M.data.bar_units[0] || "";
|
|
11353
|
+
return `${M.data.name}<br/>${I}: ${j}${Y}`;
|
|
11351
11354
|
} else if (M.seriesName === "车流量1") {
|
|
11352
|
-
const I = M.data.bar_names[0] || "数据1",
|
|
11353
|
-
return `${M.data.name}<br/>${I}: ${
|
|
11355
|
+
const I = M.data.bar_names[0] || "数据1", j = M.data.bar_data[0] || 0, Y = M.data.bar_units[0] || "";
|
|
11356
|
+
return `${M.data.name}<br/>${I}: ${j}${Y}`;
|
|
11354
11357
|
} else if (M.seriesName === "车流量2") {
|
|
11355
|
-
const I = M.data.bar_names[1] || "数据2",
|
|
11356
|
-
return `${M.data.name}<br/>${I}: ${
|
|
11358
|
+
const I = M.data.bar_names[1] || "数据2", j = M.data.bar_data[1] || 0, Y = M.data.bar_units[1] || "";
|
|
11359
|
+
return `${M.data.name}<br/>${I}: ${j}${Y}`;
|
|
11357
11360
|
}
|
|
11358
11361
|
return `${M.data.name}<br/>数据: ${M.data.bar_data[0] || 0}${M.data.bar_units[0] || ""}`;
|
|
11359
11362
|
},
|
|
@@ -11371,8 +11374,8 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11371
11374
|
coordinateSystem: "geo",
|
|
11372
11375
|
data: Z,
|
|
11373
11376
|
symbolSize: function(M) {
|
|
11374
|
-
const I = M[2] || 0,
|
|
11375
|
-
return [R.barWidth || 15,
|
|
11377
|
+
const I = M[2] || 0, j = Math.max(10, I / z * 150);
|
|
11378
|
+
return [R.barWidth || 15, j];
|
|
11376
11379
|
},
|
|
11377
11380
|
symbolOffset: [0, "-50%"],
|
|
11378
11381
|
rippleEffect: {
|
|
@@ -11396,8 +11399,8 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11396
11399
|
coordinateSystem: "geo",
|
|
11397
11400
|
data: G,
|
|
11398
11401
|
symbolSize: function(M) {
|
|
11399
|
-
const I = M[2] || 0,
|
|
11400
|
-
return [R.barWidth || 15,
|
|
11402
|
+
const I = M[2] || 0, j = Math.max(10, I / z * 150);
|
|
11403
|
+
return [R.barWidth || 15, j];
|
|
11401
11404
|
},
|
|
11402
11405
|
symbolOffset: [-8, "-50%"],
|
|
11403
11406
|
// 左移第一个柱子
|
|
@@ -11422,8 +11425,8 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11422
11425
|
coordinateSystem: "geo",
|
|
11423
11426
|
data: b,
|
|
11424
11427
|
symbolSize: function(M) {
|
|
11425
|
-
const I = M[2] || 0,
|
|
11426
|
-
return [R.barWidth || 15,
|
|
11428
|
+
const I = M[2] || 0, j = Math.max(10, I / z * 150);
|
|
11429
|
+
return [R.barWidth || 15, j];
|
|
11427
11430
|
},
|
|
11428
11431
|
symbolOffset: [8, "-50%"],
|
|
11429
11432
|
// 右移第二个柱子
|
|
@@ -11447,16 +11450,16 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11447
11450
|
return O && (O.setChartOptions(P), setTimeout(() => {
|
|
11448
11451
|
O.$chart && O.$chart.on("click", function(M) {
|
|
11449
11452
|
if (t && typeof t == "function") {
|
|
11450
|
-
let I = M.data,
|
|
11451
|
-
if (
|
|
11452
|
-
let Q = [
|
|
11453
|
+
let I = M.data, j = I.value[0], Y = I.value[1], V = null;
|
|
11454
|
+
if (j && Y) {
|
|
11455
|
+
let Q = [j, Y];
|
|
11453
11456
|
i && i.value && i.value.value && (V = i.value.value.getPixelFromCoordinate(Q));
|
|
11454
11457
|
}
|
|
11455
11458
|
t("barClick", I, V);
|
|
11456
11459
|
}
|
|
11457
11460
|
});
|
|
11458
11461
|
}, 0)), O;
|
|
11459
|
-
},
|
|
11462
|
+
}, D = (T) => {
|
|
11460
11463
|
if (!i || !i.value || !i.value.value) {
|
|
11461
11464
|
console.error("Map reference is not valid");
|
|
11462
11465
|
return;
|
|
@@ -11468,32 +11471,32 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11468
11471
|
});
|
|
11469
11472
|
O.appendTo(i.value.value);
|
|
11470
11473
|
let N = function(I) {
|
|
11471
|
-
let
|
|
11474
|
+
let j = [];
|
|
11472
11475
|
for (let Y = 0; Y < I.length; Y++) {
|
|
11473
11476
|
let V = I[Y].latlng;
|
|
11474
11477
|
if (V) {
|
|
11475
11478
|
let Q = I[Y].bar_data || [0];
|
|
11476
11479
|
Array.isArray(Q) || (Q = [Q]);
|
|
11477
|
-
let
|
|
11478
|
-
Array.isArray(
|
|
11480
|
+
let tt = I[Y].bar_names || ["数据1"];
|
|
11481
|
+
Array.isArray(tt) || (tt = [tt]);
|
|
11479
11482
|
let Ot = I[Y].bar_units || ["单位"];
|
|
11480
|
-
Array.isArray(Ot) || (Ot = [Ot]),
|
|
11483
|
+
Array.isArray(Ot) || (Ot = [Ot]), j.push({
|
|
11481
11484
|
name: I[Y].city,
|
|
11482
11485
|
value: V,
|
|
11483
11486
|
bar_count: I[Y].bar_count || 1,
|
|
11484
11487
|
color: Array.isArray(I[Y].color) ? I[Y].color : I[Y].color ? [I[Y].color, "#ff7f00"] : ["#0097fb", "#30eca6"],
|
|
11485
11488
|
bar_data: Q,
|
|
11486
|
-
bar_names:
|
|
11489
|
+
bar_names: tt,
|
|
11487
11490
|
bar_units: Ot
|
|
11488
11491
|
});
|
|
11489
11492
|
}
|
|
11490
11493
|
}
|
|
11491
|
-
return
|
|
11494
|
+
return j;
|
|
11492
11495
|
};
|
|
11493
|
-
const F = N(C).reduce((I,
|
|
11494
|
-
const
|
|
11496
|
+
const F = N(C).reduce((I, j) => I.concat(j.bar_data), []), z = Math.max(...F, 1), w = (I) => {
|
|
11497
|
+
const j = I || 0;
|
|
11495
11498
|
let Y = [];
|
|
11496
|
-
return
|
|
11499
|
+
return j < 300 ? Y = [
|
|
11497
11500
|
{
|
|
11498
11501
|
offset: 0,
|
|
11499
11502
|
color: "rgba(44, 104, 226, 1)"
|
|
@@ -11502,7 +11505,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11502
11505
|
offset: 1,
|
|
11503
11506
|
color: "rgba(44, 104, 226, 0.5)"
|
|
11504
11507
|
}
|
|
11505
|
-
] :
|
|
11508
|
+
] : j < 1e3 ? Y = [
|
|
11506
11509
|
{
|
|
11507
11510
|
offset: 0,
|
|
11508
11511
|
color: "rgba(23, 221, 174, 1)"
|
|
@@ -11511,7 +11514,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11511
11514
|
offset: 1,
|
|
11512
11515
|
color: "rgba(44, 104, 226, 0.5)"
|
|
11513
11516
|
}
|
|
11514
|
-
] :
|
|
11517
|
+
] : j < 2e3 ? Y = [
|
|
11515
11518
|
{
|
|
11516
11519
|
offset: 0,
|
|
11517
11520
|
color: "rgba(255, 213, 114, 1)"
|
|
@@ -11552,15 +11555,15 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11552
11555
|
};
|
|
11553
11556
|
}, _ = N(C).filter(
|
|
11554
11557
|
(I) => I.bar_count === 1
|
|
11555
|
-
),
|
|
11558
|
+
), B = N(C).filter(
|
|
11556
11559
|
(I) => I.bar_count > 1
|
|
11557
11560
|
), G = _.map((I) => ({
|
|
11558
11561
|
...I,
|
|
11559
11562
|
value: [I.value[0], I.value[1], I.bar_data[0]]
|
|
11560
|
-
})), b =
|
|
11563
|
+
})), b = B.map((I) => ({
|
|
11561
11564
|
...I,
|
|
11562
11565
|
value: [I.value[0], I.value[1], I.bar_data[0]]
|
|
11563
|
-
})), Z =
|
|
11566
|
+
})), Z = B.map((I) => ({
|
|
11564
11567
|
...I,
|
|
11565
11568
|
value: [I.value[0], I.value[1], I.bar_data[1] || 0]
|
|
11566
11569
|
})), P = "path://M12.000,-0.000 C12.000,-0.000 16.074,60.121 22.731,60.121 C26.173,60.121 -3.234,60.121 0.511,60.121 C7.072,60.121 12.000,-0.000 12.000,-0.000 Z";
|
|
@@ -11571,14 +11574,14 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11571
11574
|
trigger: "item",
|
|
11572
11575
|
formatter: function(I) {
|
|
11573
11576
|
if (I.seriesName === "singleBar") {
|
|
11574
|
-
const
|
|
11575
|
-
return `${I.data.name}<br/>${
|
|
11577
|
+
const j = I.data.bar_names[0] || "数据", Y = I.data.bar_data[0] || 0, V = I.data.bar_units[0] || "";
|
|
11578
|
+
return `${I.data.name}<br/>${j}: ${Y}${V}`;
|
|
11576
11579
|
} else if (I.seriesName === "doubleBar1") {
|
|
11577
|
-
const
|
|
11578
|
-
return `${I.data.name}<br/>${
|
|
11580
|
+
const j = I.data.bar_names[0] || "数据1", Y = I.data.bar_data[0] || 0, V = I.data.bar_units[0] || "";
|
|
11581
|
+
return `${I.data.name}<br/>${j}: ${Y}${V}`;
|
|
11579
11582
|
} else if (I.seriesName === "doubleBar2") {
|
|
11580
|
-
const
|
|
11581
|
-
return `${I.data.name}<br/>${
|
|
11583
|
+
const j = I.data.bar_names[1] || "数据2", Y = I.data.bar_data[1] || 0, V = I.data.bar_units[1] || "";
|
|
11584
|
+
return `${I.data.name}<br/>${j}: ${Y}${V}`;
|
|
11582
11585
|
}
|
|
11583
11586
|
return `${I.data.name}`;
|
|
11584
11587
|
},
|
|
@@ -11599,7 +11602,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11599
11602
|
coordinateSystem: "geo",
|
|
11600
11603
|
data: G,
|
|
11601
11604
|
symbolSize: function(I) {
|
|
11602
|
-
const
|
|
11605
|
+
const j = I[2] || 0, Y = Math.max(10, j / z * 150);
|
|
11603
11606
|
return [R.barWidth || 15, Y];
|
|
11604
11607
|
},
|
|
11605
11608
|
symbolOffset: [0, "-50%"],
|
|
@@ -11619,7 +11622,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11619
11622
|
coordinateSystem: "geo",
|
|
11620
11623
|
data: b,
|
|
11621
11624
|
symbolSize: function(I) {
|
|
11622
|
-
const
|
|
11625
|
+
const j = I[2] || 0, Y = Math.max(10, j / z * 150);
|
|
11623
11626
|
return [R.barWidth || 15, Y];
|
|
11624
11627
|
},
|
|
11625
11628
|
symbolOffset: [-8, "-50%"],
|
|
@@ -11639,7 +11642,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11639
11642
|
coordinateSystem: "geo",
|
|
11640
11643
|
data: Z,
|
|
11641
11644
|
symbolSize: function(I) {
|
|
11642
|
-
const
|
|
11645
|
+
const j = I[2] || 0, Y = Math.max(10, j / z * 150);
|
|
11643
11646
|
return [R.barWidth || 15, Y];
|
|
11644
11647
|
},
|
|
11645
11648
|
symbolOffset: [8, "-50%"],
|
|
@@ -11658,16 +11661,16 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11658
11661
|
return O && (O.setChartOptions(M), setTimeout(() => {
|
|
11659
11662
|
O.$chart && O.$chart.on("click", function(I) {
|
|
11660
11663
|
if (t && typeof t == "function") {
|
|
11661
|
-
let
|
|
11664
|
+
let j = I.data, Y = j.value[0], V = j.value[1], Q = null;
|
|
11662
11665
|
if (Y && V) {
|
|
11663
|
-
let
|
|
11664
|
-
i && i.value && i.value.value && (Q = i.value.value.getPixelFromCoordinate(
|
|
11666
|
+
let tt = [Y, V];
|
|
11667
|
+
i && i.value && i.value.value && (Q = i.value.value.getPixelFromCoordinate(tt));
|
|
11665
11668
|
}
|
|
11666
|
-
t("barClick",
|
|
11669
|
+
t("barClick", j, Q);
|
|
11667
11670
|
}
|
|
11668
11671
|
});
|
|
11669
11672
|
}, 0)), O;
|
|
11670
|
-
},
|
|
11673
|
+
}, L = (T) => {
|
|
11671
11674
|
if (!i || !i.value || !i.value.value) {
|
|
11672
11675
|
console.error("Map reference is not valid");
|
|
11673
11676
|
return;
|
|
@@ -11683,11 +11686,11 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11683
11686
|
}
|
|
11684
11687
|
}, x = (T) => {
|
|
11685
11688
|
const C = 3.141592653589793, R = 6378245, O = 0.006693421622965943, N = (w, _) => !(w > 73.66 && w < 135.05 && _ > 3.86 && _ < 53.55), F = (w, _) => {
|
|
11686
|
-
let
|
|
11687
|
-
return
|
|
11689
|
+
let B = -100 + 2 * w + 3 * _ + 0.2 * _ * _ + 0.1 * w * _ + 0.2 * Math.sqrt(Math.abs(w));
|
|
11690
|
+
return B += (20 * Math.sin(6 * w * C) + 20 * Math.sin(2 * w * C)) * 2 / 3, B += (20 * Math.sin(_ * C) + 40 * Math.sin(_ / 3 * C)) * 2 / 3, B += (160 * Math.sin(_ / 12 * C) + 320 * Math.sin(_ * C / 30)) * 2 / 3, B;
|
|
11688
11691
|
}, z = (w, _) => {
|
|
11689
|
-
let
|
|
11690
|
-
return
|
|
11692
|
+
let B = 300 + w + 2 * _ + 0.1 * w * w + 0.1 * w * _ + 0.1 * Math.sqrt(Math.abs(w));
|
|
11693
|
+
return B += (20 * Math.sin(6 * w * C) + 20 * Math.sin(2 * w * C)) * 2 / 3, B += (20 * Math.sin(w * C) + 40 * Math.sin(w / 3 * C)) * 2 / 3, B += (150 * Math.sin(w / 12 * C) + 300 * Math.sin(w / 30 * C)) * 2 / 3, B;
|
|
11691
11694
|
};
|
|
11692
11695
|
if (!Array.isArray(T) || T.length === 0)
|
|
11693
11696
|
throw new Error("Invalid coordinates: must be a non-empty array");
|
|
@@ -11695,13 +11698,13 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11695
11698
|
const [w, _] = T;
|
|
11696
11699
|
if (N(w, _))
|
|
11697
11700
|
return [w, _];
|
|
11698
|
-
let
|
|
11701
|
+
let B = F(w - 105, _ - 35), G = z(w - 105, _ - 35);
|
|
11699
11702
|
const b = _ / 180 * C;
|
|
11700
11703
|
let Z = Math.sin(b);
|
|
11701
11704
|
Z = 1 - O * Z * Z;
|
|
11702
11705
|
const P = Math.sqrt(Z);
|
|
11703
|
-
|
|
11704
|
-
const M = _ +
|
|
11706
|
+
B = B * 180 / (R * (1 - O) / (Z * P) * C), G = G * 180 / (R / P * Math.cos(b) * C);
|
|
11707
|
+
const M = _ + B, I = w + G;
|
|
11705
11708
|
return [w * 2 - I, _ * 2 - M];
|
|
11706
11709
|
} else {
|
|
11707
11710
|
if (Array.isArray(T[0]))
|
|
@@ -11726,8 +11729,8 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11726
11729
|
findLayerByName: y,
|
|
11727
11730
|
isLayerInMap: A,
|
|
11728
11731
|
initEchartsLayer: S,
|
|
11729
|
-
initPictorialBarLayer:
|
|
11730
|
-
removeEchartsLayer:
|
|
11732
|
+
initPictorialBarLayer: D,
|
|
11733
|
+
removeEchartsLayer: L,
|
|
11731
11734
|
gcj02towgs84: x
|
|
11732
11735
|
};
|
|
11733
11736
|
}
|
|
@@ -11850,7 +11853,7 @@ function Pf(i) {
|
|
|
11850
11853
|
});
|
|
11851
11854
|
let _ = "1=1";
|
|
11852
11855
|
x.devStatus !== void 0 && x.devStatus !== null && x.devStatus !== "" && (_ = `DEV_STATUS='${x.devStatus}'`);
|
|
11853
|
-
const
|
|
11856
|
+
const B = new Ar({
|
|
11854
11857
|
queryParameter: {
|
|
11855
11858
|
name: "sde_point_toll_station@ceshi",
|
|
11856
11859
|
attributeFilter: _,
|
|
@@ -11861,7 +11864,7 @@ function Pf(i) {
|
|
|
11861
11864
|
datasetNames: ["ceshi:sde_point_toll_station"],
|
|
11862
11865
|
returnContent: !0
|
|
11863
11866
|
});
|
|
11864
|
-
new Ir(s).getFeaturesBySQL(
|
|
11867
|
+
new Ir(s).getFeaturesBySQL(B).then(function(b) {
|
|
11865
11868
|
new Ge().readFeatures(b.result.features, {
|
|
11866
11869
|
dataProjection: "EPSG:4326",
|
|
11867
11870
|
featureProjection: "EPSG:4326"
|
|
@@ -12067,10 +12070,10 @@ function Pf(i) {
|
|
|
12067
12070
|
opacity: 1
|
|
12068
12071
|
})
|
|
12069
12072
|
}), z = {}, w = function(_) {
|
|
12070
|
-
const
|
|
12071
|
-
if (
|
|
12073
|
+
const B = _.get("features") ? _.get("features").length : 1;
|
|
12074
|
+
if (B === 1)
|
|
12072
12075
|
return _.get("features")[0].getStyle();
|
|
12073
|
-
let G = z[
|
|
12076
|
+
let G = z[B];
|
|
12074
12077
|
return G || (G = new rt({
|
|
12075
12078
|
image: new ht({
|
|
12076
12079
|
src: Qn.cameraNormal,
|
|
@@ -12079,7 +12082,7 @@ function Pf(i) {
|
|
|
12079
12082
|
opacity: 1
|
|
12080
12083
|
}),
|
|
12081
12084
|
text: new Ne({
|
|
12082
|
-
text:
|
|
12085
|
+
text: B.toString(),
|
|
12083
12086
|
fill: new Yt({
|
|
12084
12087
|
color: "#ff0000"
|
|
12085
12088
|
}),
|
|
@@ -12091,7 +12094,7 @@ function Pf(i) {
|
|
|
12091
12094
|
offsetY: -35,
|
|
12092
12095
|
offsetX: 15
|
|
12093
12096
|
})
|
|
12094
|
-
}), z[
|
|
12097
|
+
}), z[B] = G), G;
|
|
12095
12098
|
};
|
|
12096
12099
|
a.value = new qt({
|
|
12097
12100
|
layerName: "cameraLayer",
|
|
@@ -12106,14 +12109,14 @@ function Pf(i) {
|
|
|
12106
12109
|
},
|
|
12107
12110
|
body: JSON.stringify({ devStatus: "" })
|
|
12108
12111
|
}).then((_) => _.json()).then((_) => {
|
|
12109
|
-
const
|
|
12112
|
+
const B = [];
|
|
12110
12113
|
_ && _.data && Array.isArray(_.data) && _.data.forEach((G) => {
|
|
12111
|
-
const b = new
|
|
12114
|
+
const b = new Li({
|
|
12112
12115
|
geometry: new Se([parseFloat(G.x), parseFloat(G.y)]),
|
|
12113
12116
|
...G
|
|
12114
12117
|
}), Z = G.devStatus;
|
|
12115
|
-
Z === 1 || Z === "1" ? b.setStyle(N) : Z === 2 || Z === "2" ? b.setStyle(F) : b.setStyle(N), b.set("popoup", !1), b.set("type", "camera"),
|
|
12116
|
-
}), R.addFeatures(
|
|
12118
|
+
Z === 1 || Z === "1" ? b.setStyle(N) : Z === 2 || Z === "2" ? b.setStyle(F) : b.setStyle(N), b.set("popoup", !1), b.set("type", "camera"), B.push(b);
|
|
12119
|
+
}), R.addFeatures(B), i.value.addLayer(a.value), T(a.value);
|
|
12117
12120
|
}).catch(function(_) {
|
|
12118
12121
|
console.error("加载摄像机数据失败:", _), C(_);
|
|
12119
12122
|
});
|
|
@@ -12164,7 +12167,7 @@ function Pf(i) {
|
|
|
12164
12167
|
}
|
|
12165
12168
|
};
|
|
12166
12169
|
}
|
|
12167
|
-
const Rf = { id: "popupContent" },
|
|
12170
|
+
const Rf = { id: "popupContent" }, Lf = {
|
|
12168
12171
|
__name: "index",
|
|
12169
12172
|
props: {
|
|
12170
12173
|
mapBoxHeight: {
|
|
@@ -12234,8 +12237,8 @@ const Rf = { id: "popupContent" }, Df = {
|
|
|
12234
12237
|
overlayPopup: y,
|
|
12235
12238
|
currentTabComponent: A,
|
|
12236
12239
|
popupAttributes: S,
|
|
12237
|
-
popupHeight:
|
|
12238
|
-
popupWidth:
|
|
12240
|
+
popupHeight: D,
|
|
12241
|
+
popupWidth: L,
|
|
12239
12242
|
loadShandongYingxiangLayer: x,
|
|
12240
12243
|
removeShandongYingxiangLayer: T,
|
|
12241
12244
|
loadShandongRoadLayer: C,
|
|
@@ -12254,18 +12257,18 @@ const Rf = { id: "popupContent" }, Df = {
|
|
|
12254
12257
|
e.tiandituKey
|
|
12255
12258
|
), w = H([]), {
|
|
12256
12259
|
fwqLayer: _,
|
|
12257
|
-
loadFWQLayer:
|
|
12260
|
+
loadFWQLayer: B,
|
|
12258
12261
|
removeFWQLayer: G,
|
|
12259
12262
|
sfzLayer: b,
|
|
12260
12263
|
loadSFZLayer: Z,
|
|
12261
12264
|
removeSFZLayer: P,
|
|
12262
12265
|
qbbLayer: M,
|
|
12263
12266
|
loadQBBLayer: I,
|
|
12264
|
-
removeQBBLayer:
|
|
12267
|
+
removeQBBLayer: j,
|
|
12265
12268
|
lgzxLayer: Y,
|
|
12266
12269
|
loadLGZXLayer: V,
|
|
12267
12270
|
removeLGZXLayer: Q,
|
|
12268
|
-
qzzdLayer:
|
|
12271
|
+
qzzdLayer: tt,
|
|
12269
12272
|
loadQZZDLayer: Ot,
|
|
12270
12273
|
removeQZZDLayer: Gt,
|
|
12271
12274
|
cameraLayer: de,
|
|
@@ -12280,7 +12283,7 @@ const Rf = { id: "popupContent" }, Df = {
|
|
|
12280
12283
|
gongganTextLayerList: et,
|
|
12281
12284
|
sourceWithTextList: it,
|
|
12282
12285
|
// 方法
|
|
12283
|
-
openPopupByattr:
|
|
12286
|
+
openPopupByattr: q,
|
|
12284
12287
|
zoomInBylatlon: lt,
|
|
12285
12288
|
addPointByArr: ct,
|
|
12286
12289
|
addLineByArr: ot,
|
|
@@ -12298,8 +12301,8 @@ const Rf = { id: "popupContent" }, Df = {
|
|
|
12298
12301
|
n,
|
|
12299
12302
|
g,
|
|
12300
12303
|
v,
|
|
12301
|
-
L,
|
|
12302
12304
|
D,
|
|
12305
|
+
L,
|
|
12303
12306
|
A,
|
|
12304
12307
|
S,
|
|
12305
12308
|
y
|
|
@@ -12334,7 +12337,7 @@ const Rf = { id: "popupContent" }, Df = {
|
|
|
12334
12337
|
Je();
|
|
12335
12338
|
}), r({
|
|
12336
12339
|
map: o,
|
|
12337
|
-
openPopupByattr:
|
|
12340
|
+
openPopupByattr: q,
|
|
12338
12341
|
zoomInBylatlon: lt,
|
|
12339
12342
|
initEchartsLayer: It,
|
|
12340
12343
|
initPictorialBarLayer: Pt,
|
|
@@ -12357,18 +12360,18 @@ const Rf = { id: "popupContent" }, Df = {
|
|
|
12357
12360
|
loadGaodeTrafficLayer: F,
|
|
12358
12361
|
removeGaodeTrafficLayer: z,
|
|
12359
12362
|
fwqLayer: _,
|
|
12360
|
-
loadFWQLayer:
|
|
12363
|
+
loadFWQLayer: B,
|
|
12361
12364
|
removeFWQLayer: G,
|
|
12362
12365
|
sfzLayer: b,
|
|
12363
12366
|
loadSFZLayer: Z,
|
|
12364
12367
|
removeSFZLayer: P,
|
|
12365
12368
|
qbbLayer: M,
|
|
12366
12369
|
loadQBBLayer: I,
|
|
12367
|
-
removeQBBLayer:
|
|
12370
|
+
removeQBBLayer: j,
|
|
12368
12371
|
lgzxLayer: Y,
|
|
12369
12372
|
loadLGZXLayer: V,
|
|
12370
12373
|
removeLGZXLayer: Q,
|
|
12371
|
-
qzzdLayer:
|
|
12374
|
+
qzzdLayer: tt,
|
|
12372
12375
|
loadQZZDLayer: Ot,
|
|
12373
12376
|
removeQZZDLayer: Gt,
|
|
12374
12377
|
cameraLayer: de,
|
|
@@ -12412,7 +12415,7 @@ const Rf = { id: "popupContent" }, Df = {
|
|
|
12412
12415
|
])
|
|
12413
12416
|
], 2));
|
|
12414
12417
|
}
|
|
12415
|
-
}, is = /* @__PURE__ */ zi(
|
|
12418
|
+
}, is = /* @__PURE__ */ zi(Lf, [["__scopeId", "data-v-410c6e81"]]);
|
|
12416
12419
|
function os(i, r, t, e, n) {
|
|
12417
12420
|
let o = null;
|
|
12418
12421
|
return {
|
|
@@ -12498,8 +12501,8 @@ function os(i, r, t, e, n) {
|
|
|
12498
12501
|
});
|
|
12499
12502
|
}, l.ScreenSpaceEventType.LEFT_CLICK);
|
|
12500
12503
|
const g = () => {
|
|
12501
|
-
const A = u.camera,
|
|
12502
|
-
console.log("=== 当前相机位置 ==="), console.log(`center: [${
|
|
12504
|
+
const A = u.camera, D = l.Ellipsoid.WGS84.cartesianToCartographic(A.position), L = l.Math.toDegrees(D.longitude), x = l.Math.toDegrees(D.latitude), T = D.height, C = l.Math.toDegrees(A.heading), R = l.Math.toDegrees(A.pitch), O = l.Math.toDegrees(A.roll);
|
|
12505
|
+
console.log("=== 当前相机位置 ==="), console.log(`center: [${L.toFixed(6)}, ${x.toFixed(6)}, ${T.toFixed(2)}]`), console.log(`heading: ${C.toFixed(6)}, pitch: ${R.toFixed(6)}, roll: ${O.toFixed(6)}`), console.log(""), console.log("初始化代码示例:"), console.log("viewer.camera.setView({"), console.log(` destination: Cesium.Cartesian3.fromDegrees(${L.toFixed(6)}, ${x.toFixed(6)}, ${T.toFixed(2)}),`), console.log(" orientation: {"), console.log(` heading: Cesium.Math.toRadians(${C.toFixed(6)}),`), console.log(` pitch: Cesium.Math.toRadians(${R.toFixed(6)}),`), console.log(` roll: Cesium.Math.toRadians(${O.toFixed(6)})`), console.log(" }"), console.log("});");
|
|
12503
12506
|
};
|
|
12504
12507
|
window.printCameraPosition = g, document.addEventListener("keydown", (A) => {
|
|
12505
12508
|
A.key.toLowerCase() === "p" && g();
|
|
@@ -12571,7 +12574,7 @@ function os(i, r, t, e, n) {
|
|
|
12571
12574
|
}
|
|
12572
12575
|
};
|
|
12573
12576
|
}
|
|
12574
|
-
const
|
|
12577
|
+
const Df = {
|
|
12575
12578
|
__name: "index",
|
|
12576
12579
|
props: {
|
|
12577
12580
|
mapBoxHeight: {
|
|
@@ -12660,7 +12663,7 @@ const Lf = {
|
|
|
12660
12663
|
}, null, 6)
|
|
12661
12664
|
], 2));
|
|
12662
12665
|
}
|
|
12663
|
-
}, as = /* @__PURE__ */ zi(
|
|
12666
|
+
}, as = /* @__PURE__ */ zi(Df, [["__scopeId", "data-v-6f6bf221"]]), Nf = (i) => {
|
|
12664
12667
|
i.component("GisMap2D", is), i.component("GisMap3D", as);
|
|
12665
12668
|
}, Yf = {
|
|
12666
12669
|
install: Nf,
|