gis-map-szdp 0.1.7 → 0.1.9
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 +186 -193
- package/dist/gismap.umd.js +5 -5
- package/package.json +1 -1
package/dist/gismap.es.js
CHANGED
|
@@ -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",
|
|
@@ -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();
|
|
@@ -862,9 +862,9 @@ 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
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 = (
|
|
@@ -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() {
|
|
@@ -4805,7 +4805,7 @@ var Qu = /* @__PURE__ */ function() {
|
|
|
4805
4805
|
return;
|
|
4806
4806
|
if (L && (D - l) / 2 !== c.length / h) {
|
|
4807
4807
|
var T = l / 2;
|
|
4808
|
-
L = L.filter(function(
|
|
4808
|
+
L = L.filter(function(j, 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
|
});
|
|
@@ -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(j) {
|
|
4837
|
+
return j * z;
|
|
4838
4838
|
}),
|
|
4839
4839
|
!!a.backgroundFill,
|
|
4840
4840
|
!!a.backgroundStroke,
|
|
@@ -5194,8 +5194,8 @@ function rc(i, r, t, e, n, o, a, s, l, u, c, h) {
|
|
|
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, j = (C + S) / 2;
|
|
5198
|
+
return F[0] = [_, j, (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 B = R ? b - G - 1 : G, Y = s * l(u, n[B], 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), j = le(g, d, y);
|
|
5219
|
+
F.push([_, j, I / 2, Z, V]), o += I;
|
|
5220
5220
|
}
|
|
5221
5221
|
}
|
|
5222
5222
|
return F;
|
|
@@ -5262,18 +5262,18 @@ var oc = (
|
|
|
5262
5262
|
C.prototype.setLineDash && (D.push("setLineDash", [a.lineDash]), D.push("lineDashOffset", a.lineDashOffset));
|
|
5263
5263
|
}
|
|
5264
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,
|
|
5265
|
+
for (var R = 0.5 - f, O = f * S + R * d, N = [], F = [], z = 0, w = 0, _ = 0, j = 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, ++j;
|
|
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[j]),
|
|
5277
5277
|
0.5 * (d + z) + w
|
|
5278
5278
|
];
|
|
5279
5279
|
O += E[_], n && N.push("strokeText", I), e && F.push("fillText", I), ++_;
|
|
@@ -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, j, 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
|
+
j = /** @type {import("../../Feature.js").FeatureLike} */
|
|
5367
|
+
P[1], Z = P[3], j.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], B = u[f + 1], Y = u[f + 2], V = u[f + 3], Q = Y - I, tt = V - B, Ot = Math.sqrt(Q * Q + tt * tt);
|
|
5378
|
+
r.moveTo(I + Ot, B), r.arc(I, B, 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 = j, 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 = (
|
|
@@ -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, j), Je = [
|
|
5459
5459
|
r,
|
|
5460
5460
|
t,
|
|
5461
5461
|
A,
|
|
@@ -5538,7 +5538,7 @@ var oc = (
|
|
|
5538
5538
|
Ht = yr[ge], Xr = /** @type {string} */
|
|
5539
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, j);
|
|
5542
5542
|
if (l && l.collides(pt.declutterBox))
|
|
5543
5543
|
break t;
|
|
5544
5544
|
mr.push([
|
|
@@ -5556,7 +5556,7 @@ var oc = (
|
|
|
5556
5556
|
Ht = yr[ge], Xr = /** @type {string} */
|
|
5557
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, j);
|
|
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
|
+
j = /** @type {import("../../Feature.js").FeatureLike} */
|
|
5582
5582
|
P[1];
|
|
5583
|
-
var Wi = a(
|
|
5583
|
+
var Wi = a(j, Z);
|
|
5584
5584
|
if (Wi)
|
|
5585
5585
|
return Wi;
|
|
5586
5586
|
}
|
|
@@ -6434,8 +6434,8 @@ function vc(i, r, t, e, n, o, a) {
|
|
|
6434
6434
|
}
|
|
6435
6435
|
}
|
|
6436
6436
|
}
|
|
6437
|
-
for (var
|
|
6438
|
-
var _ = p[
|
|
6437
|
+
for (var j = Object.keys(p).map(Number).sort(Xe), g = 0, G = j.length; g < G; ++g) {
|
|
6438
|
+
var _ = p[j[g]];
|
|
6439
6439
|
for (var b in _)
|
|
6440
6440
|
for (var Z = _[b], S = 0, D = Z.length; S < D; S += 2) {
|
|
6441
6441
|
h.setStyle(Z[S + 1]);
|
|
@@ -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 j = T.finish(), G = new _o(E, f, d, n.getOverlaps(), j, 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)
|
|
@@ -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_ = Lt(), n.pixelContext_ = null, n.postProcesses_ = o.postProcesses, n.uniforms_ = o.uniforms, n.helper, t.addChangeListener(
|
|
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();
|
|
@@ -9021,22 +9021,22 @@ function Mh(i, r, t, e, n, o, a, s, l, u, c, h) {
|
|
|
9021
9021
|
});
|
|
9022
9022
|
var y = He(a);
|
|
9023
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),
|
|
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), j = 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, j - 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(_, j);
|
|
9035
|
+
for (var B = 4, Y = z - _, V = w - j, Q = 0; Q < B; Q++)
|
|
9036
|
+
f.lineTo(_ + d((Q + 1) * Y / B), j + d(Q * V / (B - 1))), Q != B - 1 && f.lineTo(_ + d((Q + 1) * Y / B), j + d((Q + 1) * V / (B - 1)));
|
|
9037
9037
|
f.lineTo(G, b);
|
|
9038
9038
|
} else
|
|
9039
|
-
f.moveTo(_,
|
|
9039
|
+
f.moveTo(_, j), 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
9042
|
}), c && (f.save(), f.globalCompositeOperation = "source-over", f.strokeStyle = "black", f.lineWidth = 1, s.getTriangles().forEach(function(A, S, D) {
|
|
@@ -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 j = J(this);
|
|
9239
9239
|
if (_.getState() == U.LOADED) {
|
|
9240
9240
|
R[g][_.tileCoord.toString()] = _;
|
|
9241
|
-
var G = _.inTransition(
|
|
9241
|
+
var G = _.inTransition(j);
|
|
9242
9242
|
!this.newTiles_ && (G || this.renderedTiles.indexOf(_) === -1) && (this.newTiles_ = !0);
|
|
9243
9243
|
}
|
|
9244
|
-
if (_.getAlpha(
|
|
9244
|
+
if (_.getAlpha(j, 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, B = I.canvas;
|
|
9255
|
+
Ci(this.inversePixelTransform, this.pixelTransform), oe(this.tempTransform, A / 2, S / 2, P, P, 0, -A / 2, -S / 2), B.width != A || B.height != S ? (B.width = A, B.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 !== B.style.transform && (B.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) {
|
|
@@ -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), 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",
|
|
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", j = "#1b2639", G = "#eeeee9", b = "#adb0aa", Z = "#3578E0", P = "#b4b4b1", M = "#d3d3d3", I = Ye(() => ["dark", "light", "yingxiang"].includes(r.value) ? r.value : "dark"), B = () => {
|
|
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
|
|
@@ -10875,7 +10875,7 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10875
10875
|
};
|
|
10876
10876
|
}, Q = () => {
|
|
10877
10877
|
L.value && (i.value.removeLayer(L.value), L.value = null), x.value && (i.value.removeLayer(x.value), x.value = null);
|
|
10878
|
-
},
|
|
10878
|
+
}, tt = () => (T.value && i.value.removeLayer(T.value), T.value = new Ee({
|
|
10879
10879
|
layerName: "pileLayer",
|
|
10880
10880
|
source: new Dn({
|
|
10881
10881
|
url: w,
|
|
@@ -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;
|
|
@@ -10939,7 +10939,7 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10939
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, j, Z) : K === "light" ? Y(O, G, P) : K === "yingxiang" && Y(N, b, M);
|
|
10943
10943
|
}), {
|
|
10944
10944
|
lastHoverFeature: u,
|
|
10945
10945
|
isCluster: c,
|
|
@@ -10960,12 +10960,12 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
10960
10960
|
pileLayer: T,
|
|
10961
10961
|
gaodeTrafficLayer: C,
|
|
10962
10962
|
normalizedThemeStyle: I,
|
|
10963
|
-
initBaseLayers:
|
|
10963
|
+
initBaseLayers: B,
|
|
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
|
|
@@ -10988,13 +10988,6 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
10988
10988
|
document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]
|
|
10989
10989
|
), F = o.value / 153.6 * N, z = a.value / 153.6 * N;
|
|
10990
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(_);
|
|
10992
|
-
setTimeout(() => {
|
|
10993
|
-
i.value.value.getView().animate({
|
|
10994
|
-
center: B,
|
|
10995
|
-
duration: 1500
|
|
10996
|
-
});
|
|
10997
|
-
}, 10);
|
|
10998
10991
|
}, p = (T, C) => {
|
|
10999
10992
|
if (!i || !i.value || !i.value.value) {
|
|
11000
10993
|
console.error("Map reference is not valid");
|
|
@@ -11026,7 +11019,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11026
11019
|
geometry: new Se([w.longitude, w.latitude])
|
|
11027
11020
|
});
|
|
11028
11021
|
_.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);
|
|
11029
|
-
let
|
|
11022
|
+
let j = [
|
|
11030
11023
|
new rt({
|
|
11031
11024
|
image: new ht({
|
|
11032
11025
|
src: w.iconUrl,
|
|
@@ -11064,15 +11057,15 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11064
11057
|
zIndex: 60
|
|
11065
11058
|
})
|
|
11066
11059
|
];
|
|
11067
|
-
_.setStyle(
|
|
11060
|
+
_.setStyle(j), z.addFeature(_);
|
|
11068
11061
|
}), R) {
|
|
11069
11062
|
O.value = new qt({
|
|
11070
11063
|
layerName: C,
|
|
11071
11064
|
zIndex: 999,
|
|
11072
11065
|
style: function(_) {
|
|
11073
|
-
const
|
|
11066
|
+
const j = _.get("features").length;
|
|
11074
11067
|
let G;
|
|
11075
|
-
if (
|
|
11068
|
+
if (j > 1) {
|
|
11076
11069
|
new rt({
|
|
11077
11070
|
image: new Pa({
|
|
11078
11071
|
fill: new Yt({
|
|
@@ -11091,7 +11084,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11091
11084
|
}),
|
|
11092
11085
|
offsetY: 2,
|
|
11093
11086
|
font: "bold 16px sans-serif",
|
|
11094
|
-
text:
|
|
11087
|
+
text: j.toString()
|
|
11095
11088
|
})
|
|
11096
11089
|
});
|
|
11097
11090
|
let b = new rt({
|
|
@@ -11104,7 +11097,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11104
11097
|
}),
|
|
11105
11098
|
offsetY: -2,
|
|
11106
11099
|
font: "14px sans-serif",
|
|
11107
|
-
text:
|
|
11100
|
+
text: j.toString()
|
|
11108
11101
|
})
|
|
11109
11102
|
}), Z = new rt({
|
|
11110
11103
|
image: new ht({
|
|
@@ -11116,7 +11109,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11116
11109
|
}),
|
|
11117
11110
|
offsetY: -2,
|
|
11118
11111
|
font: "14px sans-serif",
|
|
11119
|
-
text:
|
|
11112
|
+
text: j.toString()
|
|
11120
11113
|
})
|
|
11121
11114
|
}), P = new rt({
|
|
11122
11115
|
image: new ht({
|
|
@@ -11129,7 +11122,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11129
11122
|
}),
|
|
11130
11123
|
offsetY: 16,
|
|
11131
11124
|
font: "14px sans-serif",
|
|
11132
|
-
text:
|
|
11125
|
+
text: j.toString()
|
|
11133
11126
|
})
|
|
11134
11127
|
});
|
|
11135
11128
|
if (i.value.value.getView().getZoom() < 18)
|
|
@@ -11262,25 +11255,25 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11262
11255
|
O.appendTo(i.value.value);
|
|
11263
11256
|
let N = function(M) {
|
|
11264
11257
|
let I = [];
|
|
11265
|
-
for (let
|
|
11266
|
-
let Y = M[
|
|
11258
|
+
for (let B = 0; B < M.length; B++) {
|
|
11259
|
+
let Y = M[B].latlng;
|
|
11267
11260
|
if (Y) {
|
|
11268
|
-
let V = M[
|
|
11261
|
+
let V = M[B].bar_data || [0];
|
|
11269
11262
|
Array.isArray(V) || (V = [V]);
|
|
11270
|
-
let Q = M[
|
|
11263
|
+
let Q = M[B].bar_names || ["数据1"];
|
|
11271
11264
|
Array.isArray(Q) || (Q = [Q]);
|
|
11272
|
-
let
|
|
11273
|
-
Array.isArray(
|
|
11274
|
-
name: M[
|
|
11265
|
+
let tt = M[B].bar_units || ["单位"];
|
|
11266
|
+
Array.isArray(tt) || (tt = [tt]), I.push({
|
|
11267
|
+
name: M[B].city,
|
|
11275
11268
|
value: Y,
|
|
11276
11269
|
// 不再使用level字段
|
|
11277
|
-
bar_count: M[
|
|
11270
|
+
bar_count: M[B].bar_count || 1,
|
|
11278
11271
|
// 默认显示一根柱子
|
|
11279
|
-
color: Array.isArray(M[
|
|
11272
|
+
color: Array.isArray(M[B].color) ? M[B].color : M[B].color ? [M[B].color, "#ff7f00"] : ["#efda18", "#ff7f00"],
|
|
11280
11273
|
// 默认颜色
|
|
11281
11274
|
bar_data: V,
|
|
11282
11275
|
bar_names: Q,
|
|
11283
|
-
bar_units:
|
|
11276
|
+
bar_units: tt
|
|
11284
11277
|
});
|
|
11285
11278
|
}
|
|
11286
11279
|
}
|
|
@@ -11289,7 +11282,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11289
11282
|
const F = N(C).reduce((M, I) => M.concat(I.bar_data), []), z = Math.max(...F, 1), w = (M) => {
|
|
11290
11283
|
let I;
|
|
11291
11284
|
if (typeof M == "string" && M.startsWith("#")) {
|
|
11292
|
-
const
|
|
11285
|
+
const B = M.replace("#", ""), Y = parseInt(B.substring(0, 2), 16), V = parseInt(B.substring(2, 4), 16), Q = parseInt(B.substring(4, 6), 16);
|
|
11293
11286
|
I = `rgba(${Y}, ${V}, ${Q}, 1)`;
|
|
11294
11287
|
} else
|
|
11295
11288
|
I = M;
|
|
@@ -11328,13 +11321,13 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11328
11321
|
};
|
|
11329
11322
|
}, _ = N(C).filter(
|
|
11330
11323
|
(M) => M.bar_count === 1
|
|
11331
|
-
),
|
|
11324
|
+
), j = N(C).filter(
|
|
11332
11325
|
(M) => M.bar_count > 1
|
|
11333
|
-
), G =
|
|
11326
|
+
), G = j.map((M) => ({
|
|
11334
11327
|
...M,
|
|
11335
11328
|
value: [M.value[0], M.value[1], M.bar_data[0]]
|
|
11336
11329
|
// 使用第一个数据值
|
|
11337
|
-
})), b =
|
|
11330
|
+
})), b = j.map((M) => ({
|
|
11338
11331
|
...M,
|
|
11339
11332
|
value: [M.value[0], M.value[1], M.bar_data[1] || 0]
|
|
11340
11333
|
// 使用第二个数据值
|
|
@@ -11349,14 +11342,14 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11349
11342
|
trigger: "item",
|
|
11350
11343
|
formatter: function(M) {
|
|
11351
11344
|
if (M.seriesName === "车流量") {
|
|
11352
|
-
const I = M.data.bar_names[0] || "数据",
|
|
11353
|
-
return `${M.data.name}<br/>${I}: ${
|
|
11345
|
+
const I = M.data.bar_names[0] || "数据", B = M.data.bar_data[0] || 0, Y = M.data.bar_units[0] || "";
|
|
11346
|
+
return `${M.data.name}<br/>${I}: ${B}${Y}`;
|
|
11354
11347
|
} else if (M.seriesName === "车流量1") {
|
|
11355
|
-
const I = M.data.bar_names[0] || "数据1",
|
|
11356
|
-
return `${M.data.name}<br/>${I}: ${
|
|
11348
|
+
const I = M.data.bar_names[0] || "数据1", B = M.data.bar_data[0] || 0, Y = M.data.bar_units[0] || "";
|
|
11349
|
+
return `${M.data.name}<br/>${I}: ${B}${Y}`;
|
|
11357
11350
|
} else if (M.seriesName === "车流量2") {
|
|
11358
|
-
const I = M.data.bar_names[1] || "数据2",
|
|
11359
|
-
return `${M.data.name}<br/>${I}: ${
|
|
11351
|
+
const I = M.data.bar_names[1] || "数据2", B = M.data.bar_data[1] || 0, Y = M.data.bar_units[1] || "";
|
|
11352
|
+
return `${M.data.name}<br/>${I}: ${B}${Y}`;
|
|
11360
11353
|
}
|
|
11361
11354
|
return `${M.data.name}<br/>数据: ${M.data.bar_data[0] || 0}${M.data.bar_units[0] || ""}`;
|
|
11362
11355
|
},
|
|
@@ -11374,8 +11367,8 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11374
11367
|
coordinateSystem: "geo",
|
|
11375
11368
|
data: Z,
|
|
11376
11369
|
symbolSize: function(M) {
|
|
11377
|
-
const I = M[2] || 0,
|
|
11378
|
-
return [R.barWidth || 15,
|
|
11370
|
+
const I = M[2] || 0, B = Math.max(10, I / z * 150);
|
|
11371
|
+
return [R.barWidth || 15, B];
|
|
11379
11372
|
},
|
|
11380
11373
|
symbolOffset: [0, "-50%"],
|
|
11381
11374
|
rippleEffect: {
|
|
@@ -11399,8 +11392,8 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11399
11392
|
coordinateSystem: "geo",
|
|
11400
11393
|
data: G,
|
|
11401
11394
|
symbolSize: function(M) {
|
|
11402
|
-
const I = M[2] || 0,
|
|
11403
|
-
return [R.barWidth || 15,
|
|
11395
|
+
const I = M[2] || 0, B = Math.max(10, I / z * 150);
|
|
11396
|
+
return [R.barWidth || 15, B];
|
|
11404
11397
|
},
|
|
11405
11398
|
symbolOffset: [-8, "-50%"],
|
|
11406
11399
|
// 左移第一个柱子
|
|
@@ -11425,8 +11418,8 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11425
11418
|
coordinateSystem: "geo",
|
|
11426
11419
|
data: b,
|
|
11427
11420
|
symbolSize: function(M) {
|
|
11428
|
-
const I = M[2] || 0,
|
|
11429
|
-
return [R.barWidth || 15,
|
|
11421
|
+
const I = M[2] || 0, B = Math.max(10, I / z * 150);
|
|
11422
|
+
return [R.barWidth || 15, B];
|
|
11430
11423
|
},
|
|
11431
11424
|
symbolOffset: [8, "-50%"],
|
|
11432
11425
|
// 右移第二个柱子
|
|
@@ -11450,9 +11443,9 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11450
11443
|
return O && (O.setChartOptions(P), setTimeout(() => {
|
|
11451
11444
|
O.$chart && O.$chart.on("click", function(M) {
|
|
11452
11445
|
if (t && typeof t == "function") {
|
|
11453
|
-
let I = M.data,
|
|
11454
|
-
if (
|
|
11455
|
-
let Q = [
|
|
11446
|
+
let I = M.data, B = I.value[0], Y = I.value[1], V = null;
|
|
11447
|
+
if (B && Y) {
|
|
11448
|
+
let Q = [B, Y];
|
|
11456
11449
|
i && i.value && i.value.value && (V = i.value.value.getPixelFromCoordinate(Q));
|
|
11457
11450
|
}
|
|
11458
11451
|
t("barClick", I, V);
|
|
@@ -11471,32 +11464,32 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11471
11464
|
});
|
|
11472
11465
|
O.appendTo(i.value.value);
|
|
11473
11466
|
let N = function(I) {
|
|
11474
|
-
let
|
|
11467
|
+
let B = [];
|
|
11475
11468
|
for (let Y = 0; Y < I.length; Y++) {
|
|
11476
11469
|
let V = I[Y].latlng;
|
|
11477
11470
|
if (V) {
|
|
11478
11471
|
let Q = I[Y].bar_data || [0];
|
|
11479
11472
|
Array.isArray(Q) || (Q = [Q]);
|
|
11480
|
-
let
|
|
11481
|
-
Array.isArray(
|
|
11473
|
+
let tt = I[Y].bar_names || ["数据1"];
|
|
11474
|
+
Array.isArray(tt) || (tt = [tt]);
|
|
11482
11475
|
let Ot = I[Y].bar_units || ["单位"];
|
|
11483
|
-
Array.isArray(Ot) || (Ot = [Ot]),
|
|
11476
|
+
Array.isArray(Ot) || (Ot = [Ot]), B.push({
|
|
11484
11477
|
name: I[Y].city,
|
|
11485
11478
|
value: V,
|
|
11486
11479
|
bar_count: I[Y].bar_count || 1,
|
|
11487
11480
|
color: Array.isArray(I[Y].color) ? I[Y].color : I[Y].color ? [I[Y].color, "#ff7f00"] : ["#0097fb", "#30eca6"],
|
|
11488
11481
|
bar_data: Q,
|
|
11489
|
-
bar_names:
|
|
11482
|
+
bar_names: tt,
|
|
11490
11483
|
bar_units: Ot
|
|
11491
11484
|
});
|
|
11492
11485
|
}
|
|
11493
11486
|
}
|
|
11494
|
-
return
|
|
11487
|
+
return B;
|
|
11495
11488
|
};
|
|
11496
|
-
const F = N(C).reduce((I,
|
|
11497
|
-
const
|
|
11489
|
+
const F = N(C).reduce((I, B) => I.concat(B.bar_data), []), z = Math.max(...F, 1), w = (I) => {
|
|
11490
|
+
const B = I || 0;
|
|
11498
11491
|
let Y = [];
|
|
11499
|
-
return
|
|
11492
|
+
return B < 300 ? Y = [
|
|
11500
11493
|
{
|
|
11501
11494
|
offset: 0,
|
|
11502
11495
|
color: "rgba(44, 104, 226, 1)"
|
|
@@ -11505,7 +11498,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11505
11498
|
offset: 1,
|
|
11506
11499
|
color: "rgba(44, 104, 226, 0.5)"
|
|
11507
11500
|
}
|
|
11508
|
-
] :
|
|
11501
|
+
] : B < 1e3 ? Y = [
|
|
11509
11502
|
{
|
|
11510
11503
|
offset: 0,
|
|
11511
11504
|
color: "rgba(23, 221, 174, 1)"
|
|
@@ -11514,7 +11507,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11514
11507
|
offset: 1,
|
|
11515
11508
|
color: "rgba(44, 104, 226, 0.5)"
|
|
11516
11509
|
}
|
|
11517
|
-
] :
|
|
11510
|
+
] : B < 2e3 ? Y = [
|
|
11518
11511
|
{
|
|
11519
11512
|
offset: 0,
|
|
11520
11513
|
color: "rgba(255, 213, 114, 1)"
|
|
@@ -11555,15 +11548,15 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11555
11548
|
};
|
|
11556
11549
|
}, _ = N(C).filter(
|
|
11557
11550
|
(I) => I.bar_count === 1
|
|
11558
|
-
),
|
|
11551
|
+
), j = N(C).filter(
|
|
11559
11552
|
(I) => I.bar_count > 1
|
|
11560
11553
|
), G = _.map((I) => ({
|
|
11561
11554
|
...I,
|
|
11562
11555
|
value: [I.value[0], I.value[1], I.bar_data[0]]
|
|
11563
|
-
})), b =
|
|
11556
|
+
})), b = j.map((I) => ({
|
|
11564
11557
|
...I,
|
|
11565
11558
|
value: [I.value[0], I.value[1], I.bar_data[0]]
|
|
11566
|
-
})), Z =
|
|
11559
|
+
})), Z = j.map((I) => ({
|
|
11567
11560
|
...I,
|
|
11568
11561
|
value: [I.value[0], I.value[1], I.bar_data[1] || 0]
|
|
11569
11562
|
})), 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";
|
|
@@ -11574,14 +11567,14 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11574
11567
|
trigger: "item",
|
|
11575
11568
|
formatter: function(I) {
|
|
11576
11569
|
if (I.seriesName === "singleBar") {
|
|
11577
|
-
const
|
|
11578
|
-
return `${I.data.name}<br/>${
|
|
11570
|
+
const B = I.data.bar_names[0] || "数据", Y = I.data.bar_data[0] || 0, V = I.data.bar_units[0] || "";
|
|
11571
|
+
return `${I.data.name}<br/>${B}: ${Y}${V}`;
|
|
11579
11572
|
} else if (I.seriesName === "doubleBar1") {
|
|
11580
|
-
const
|
|
11581
|
-
return `${I.data.name}<br/>${
|
|
11573
|
+
const B = I.data.bar_names[0] || "数据1", Y = I.data.bar_data[0] || 0, V = I.data.bar_units[0] || "";
|
|
11574
|
+
return `${I.data.name}<br/>${B}: ${Y}${V}`;
|
|
11582
11575
|
} else if (I.seriesName === "doubleBar2") {
|
|
11583
|
-
const
|
|
11584
|
-
return `${I.data.name}<br/>${
|
|
11576
|
+
const B = I.data.bar_names[1] || "数据2", Y = I.data.bar_data[1] || 0, V = I.data.bar_units[1] || "";
|
|
11577
|
+
return `${I.data.name}<br/>${B}: ${Y}${V}`;
|
|
11585
11578
|
}
|
|
11586
11579
|
return `${I.data.name}`;
|
|
11587
11580
|
},
|
|
@@ -11602,7 +11595,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11602
11595
|
coordinateSystem: "geo",
|
|
11603
11596
|
data: G,
|
|
11604
11597
|
symbolSize: function(I) {
|
|
11605
|
-
const
|
|
11598
|
+
const B = I[2] || 0, Y = Math.max(10, B / z * 150);
|
|
11606
11599
|
return [R.barWidth || 15, Y];
|
|
11607
11600
|
},
|
|
11608
11601
|
symbolOffset: [0, "-50%"],
|
|
@@ -11622,7 +11615,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11622
11615
|
coordinateSystem: "geo",
|
|
11623
11616
|
data: b,
|
|
11624
11617
|
symbolSize: function(I) {
|
|
11625
|
-
const
|
|
11618
|
+
const B = I[2] || 0, Y = Math.max(10, B / z * 150);
|
|
11626
11619
|
return [R.barWidth || 15, Y];
|
|
11627
11620
|
},
|
|
11628
11621
|
symbolOffset: [-8, "-50%"],
|
|
@@ -11642,7 +11635,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11642
11635
|
coordinateSystem: "geo",
|
|
11643
11636
|
data: Z,
|
|
11644
11637
|
symbolSize: function(I) {
|
|
11645
|
-
const
|
|
11638
|
+
const B = I[2] || 0, Y = Math.max(10, B / z * 150);
|
|
11646
11639
|
return [R.barWidth || 15, Y];
|
|
11647
11640
|
},
|
|
11648
11641
|
symbolOffset: [8, "-50%"],
|
|
@@ -11661,12 +11654,12 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11661
11654
|
return O && (O.setChartOptions(M), setTimeout(() => {
|
|
11662
11655
|
O.$chart && O.$chart.on("click", function(I) {
|
|
11663
11656
|
if (t && typeof t == "function") {
|
|
11664
|
-
let
|
|
11657
|
+
let B = I.data, Y = B.value[0], V = B.value[1], Q = null;
|
|
11665
11658
|
if (Y && V) {
|
|
11666
|
-
let
|
|
11667
|
-
i && i.value && i.value.value && (Q = i.value.value.getPixelFromCoordinate(
|
|
11659
|
+
let tt = [Y, V];
|
|
11660
|
+
i && i.value && i.value.value && (Q = i.value.value.getPixelFromCoordinate(tt));
|
|
11668
11661
|
}
|
|
11669
|
-
t("barClick",
|
|
11662
|
+
t("barClick", B, Q);
|
|
11670
11663
|
}
|
|
11671
11664
|
});
|
|
11672
11665
|
}, 0)), O;
|
|
@@ -11686,11 +11679,11 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11686
11679
|
}
|
|
11687
11680
|
}, x = (T) => {
|
|
11688
11681
|
const C = 3.141592653589793, R = 6378245, O = 0.006693421622965943, N = (w, _) => !(w > 73.66 && w < 135.05 && _ > 3.86 && _ < 53.55), F = (w, _) => {
|
|
11689
|
-
let
|
|
11690
|
-
return
|
|
11682
|
+
let j = -100 + 2 * w + 3 * _ + 0.2 * _ * _ + 0.1 * w * _ + 0.2 * Math.sqrt(Math.abs(w));
|
|
11683
|
+
return j += (20 * Math.sin(6 * w * C) + 20 * Math.sin(2 * w * C)) * 2 / 3, j += (20 * Math.sin(_ * C) + 40 * Math.sin(_ / 3 * C)) * 2 / 3, j += (160 * Math.sin(_ / 12 * C) + 320 * Math.sin(_ * C / 30)) * 2 / 3, j;
|
|
11691
11684
|
}, z = (w, _) => {
|
|
11692
|
-
let
|
|
11693
|
-
return
|
|
11685
|
+
let j = 300 + w + 2 * _ + 0.1 * w * w + 0.1 * w * _ + 0.1 * Math.sqrt(Math.abs(w));
|
|
11686
|
+
return j += (20 * Math.sin(6 * w * C) + 20 * Math.sin(2 * w * C)) * 2 / 3, j += (20 * Math.sin(w * C) + 40 * Math.sin(w / 3 * C)) * 2 / 3, j += (150 * Math.sin(w / 12 * C) + 300 * Math.sin(w / 30 * C)) * 2 / 3, j;
|
|
11694
11687
|
};
|
|
11695
11688
|
if (!Array.isArray(T) || T.length === 0)
|
|
11696
11689
|
throw new Error("Invalid coordinates: must be a non-empty array");
|
|
@@ -11698,13 +11691,13 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11698
11691
|
const [w, _] = T;
|
|
11699
11692
|
if (N(w, _))
|
|
11700
11693
|
return [w, _];
|
|
11701
|
-
let
|
|
11694
|
+
let j = F(w - 105, _ - 35), G = z(w - 105, _ - 35);
|
|
11702
11695
|
const b = _ / 180 * C;
|
|
11703
11696
|
let Z = Math.sin(b);
|
|
11704
11697
|
Z = 1 - O * Z * Z;
|
|
11705
11698
|
const P = Math.sqrt(Z);
|
|
11706
|
-
|
|
11707
|
-
const M = _ +
|
|
11699
|
+
j = j * 180 / (R * (1 - O) / (Z * P) * C), G = G * 180 / (R / P * Math.cos(b) * C);
|
|
11700
|
+
const M = _ + j, I = w + G;
|
|
11708
11701
|
return [w * 2 - I, _ * 2 - M];
|
|
11709
11702
|
} else {
|
|
11710
11703
|
if (Array.isArray(T[0]))
|
|
@@ -11853,7 +11846,7 @@ function Pf(i) {
|
|
|
11853
11846
|
});
|
|
11854
11847
|
let _ = "1=1";
|
|
11855
11848
|
x.devStatus !== void 0 && x.devStatus !== null && x.devStatus !== "" && (_ = `DEV_STATUS='${x.devStatus}'`);
|
|
11856
|
-
const
|
|
11849
|
+
const j = new Ar({
|
|
11857
11850
|
queryParameter: {
|
|
11858
11851
|
name: "sde_point_toll_station@ceshi",
|
|
11859
11852
|
attributeFilter: _,
|
|
@@ -11864,7 +11857,7 @@ function Pf(i) {
|
|
|
11864
11857
|
datasetNames: ["ceshi:sde_point_toll_station"],
|
|
11865
11858
|
returnContent: !0
|
|
11866
11859
|
});
|
|
11867
|
-
new Ir(s).getFeaturesBySQL(
|
|
11860
|
+
new Ir(s).getFeaturesBySQL(j).then(function(b) {
|
|
11868
11861
|
new Ge().readFeatures(b.result.features, {
|
|
11869
11862
|
dataProjection: "EPSG:4326",
|
|
11870
11863
|
featureProjection: "EPSG:4326"
|
|
@@ -12070,10 +12063,10 @@ function Pf(i) {
|
|
|
12070
12063
|
opacity: 1
|
|
12071
12064
|
})
|
|
12072
12065
|
}), z = {}, w = function(_) {
|
|
12073
|
-
const
|
|
12074
|
-
if (
|
|
12066
|
+
const j = _.get("features") ? _.get("features").length : 1;
|
|
12067
|
+
if (j === 1)
|
|
12075
12068
|
return _.get("features")[0].getStyle();
|
|
12076
|
-
let G = z[
|
|
12069
|
+
let G = z[j];
|
|
12077
12070
|
return G || (G = new rt({
|
|
12078
12071
|
image: new ht({
|
|
12079
12072
|
src: Qn.cameraNormal,
|
|
@@ -12082,7 +12075,7 @@ function Pf(i) {
|
|
|
12082
12075
|
opacity: 1
|
|
12083
12076
|
}),
|
|
12084
12077
|
text: new Ne({
|
|
12085
|
-
text:
|
|
12078
|
+
text: j.toString(),
|
|
12086
12079
|
fill: new Yt({
|
|
12087
12080
|
color: "#ff0000"
|
|
12088
12081
|
}),
|
|
@@ -12094,7 +12087,7 @@ function Pf(i) {
|
|
|
12094
12087
|
offsetY: -35,
|
|
12095
12088
|
offsetX: 15
|
|
12096
12089
|
})
|
|
12097
|
-
}), z[
|
|
12090
|
+
}), z[j] = G), G;
|
|
12098
12091
|
};
|
|
12099
12092
|
a.value = new qt({
|
|
12100
12093
|
layerName: "cameraLayer",
|
|
@@ -12109,14 +12102,14 @@ function Pf(i) {
|
|
|
12109
12102
|
},
|
|
12110
12103
|
body: JSON.stringify({ devStatus: "" })
|
|
12111
12104
|
}).then((_) => _.json()).then((_) => {
|
|
12112
|
-
const
|
|
12105
|
+
const j = [];
|
|
12113
12106
|
_ && _.data && Array.isArray(_.data) && _.data.forEach((G) => {
|
|
12114
12107
|
const b = new Li({
|
|
12115
12108
|
geometry: new Se([parseFloat(G.x), parseFloat(G.y)]),
|
|
12116
12109
|
...G
|
|
12117
12110
|
}), Z = G.devStatus;
|
|
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"),
|
|
12119
|
-
}), R.addFeatures(
|
|
12111
|
+
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"), j.push(b);
|
|
12112
|
+
}), R.addFeatures(j), i.value.addLayer(a.value), T(a.value);
|
|
12120
12113
|
}).catch(function(_) {
|
|
12121
12114
|
console.error("加载摄像机数据失败:", _), C(_);
|
|
12122
12115
|
});
|
|
@@ -12257,18 +12250,18 @@ const Rf = { id: "popupContent" }, Lf = {
|
|
|
12257
12250
|
e.tiandituKey
|
|
12258
12251
|
), w = H([]), {
|
|
12259
12252
|
fwqLayer: _,
|
|
12260
|
-
loadFWQLayer:
|
|
12253
|
+
loadFWQLayer: j,
|
|
12261
12254
|
removeFWQLayer: G,
|
|
12262
12255
|
sfzLayer: b,
|
|
12263
12256
|
loadSFZLayer: Z,
|
|
12264
12257
|
removeSFZLayer: P,
|
|
12265
12258
|
qbbLayer: M,
|
|
12266
12259
|
loadQBBLayer: I,
|
|
12267
|
-
removeQBBLayer:
|
|
12260
|
+
removeQBBLayer: B,
|
|
12268
12261
|
lgzxLayer: Y,
|
|
12269
12262
|
loadLGZXLayer: V,
|
|
12270
12263
|
removeLGZXLayer: Q,
|
|
12271
|
-
qzzdLayer:
|
|
12264
|
+
qzzdLayer: tt,
|
|
12272
12265
|
loadQZZDLayer: Ot,
|
|
12273
12266
|
removeQZZDLayer: Gt,
|
|
12274
12267
|
cameraLayer: de,
|
|
@@ -12283,7 +12276,7 @@ const Rf = { id: "popupContent" }, Lf = {
|
|
|
12283
12276
|
gongganTextLayerList: et,
|
|
12284
12277
|
sourceWithTextList: it,
|
|
12285
12278
|
// 方法
|
|
12286
|
-
openPopupByattr:
|
|
12279
|
+
openPopupByattr: q,
|
|
12287
12280
|
zoomInBylatlon: lt,
|
|
12288
12281
|
addPointByArr: ct,
|
|
12289
12282
|
addLineByArr: ot,
|
|
@@ -12337,7 +12330,7 @@ const Rf = { id: "popupContent" }, Lf = {
|
|
|
12337
12330
|
Je();
|
|
12338
12331
|
}), r({
|
|
12339
12332
|
map: o,
|
|
12340
|
-
openPopupByattr:
|
|
12333
|
+
openPopupByattr: q,
|
|
12341
12334
|
zoomInBylatlon: lt,
|
|
12342
12335
|
initEchartsLayer: It,
|
|
12343
12336
|
initPictorialBarLayer: Pt,
|
|
@@ -12360,18 +12353,18 @@ const Rf = { id: "popupContent" }, Lf = {
|
|
|
12360
12353
|
loadGaodeTrafficLayer: F,
|
|
12361
12354
|
removeGaodeTrafficLayer: z,
|
|
12362
12355
|
fwqLayer: _,
|
|
12363
|
-
loadFWQLayer:
|
|
12356
|
+
loadFWQLayer: j,
|
|
12364
12357
|
removeFWQLayer: G,
|
|
12365
12358
|
sfzLayer: b,
|
|
12366
12359
|
loadSFZLayer: Z,
|
|
12367
12360
|
removeSFZLayer: P,
|
|
12368
12361
|
qbbLayer: M,
|
|
12369
12362
|
loadQBBLayer: I,
|
|
12370
|
-
removeQBBLayer:
|
|
12363
|
+
removeQBBLayer: B,
|
|
12371
12364
|
lgzxLayer: Y,
|
|
12372
12365
|
loadLGZXLayer: V,
|
|
12373
12366
|
removeLGZXLayer: Q,
|
|
12374
|
-
qzzdLayer:
|
|
12367
|
+
qzzdLayer: tt,
|
|
12375
12368
|
loadQZZDLayer: Ot,
|
|
12376
12369
|
removeQZZDLayer: Gt,
|
|
12377
12370
|
cameraLayer: de,
|