gis-map-szdp 0.1.8 → 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 +118 -125
- package/dist/gismap.umd.js +5 -5
- package/package.json +1 -1
package/dist/gismap.es.js
CHANGED
|
@@ -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;
|
|
@@ -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, q, o, gt, It || Pt,
|
|
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)
|
|
@@ -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,8 +9251,8 @@ 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
9258
|
var V, Q, tt;
|
|
@@ -9281,7 +9281,7 @@ var Oh = /* @__PURE__ */ function() {
|
|
|
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({
|
|
@@ -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,7 +10960,7 @@ 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,
|
|
@@ -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,21 +11255,21 @@ 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 tt = M[
|
|
11265
|
+
let tt = M[B].bar_units || ["单位"];
|
|
11273
11266
|
Array.isArray(tt) || (tt = [tt]), I.push({
|
|
11274
|
-
name: M[
|
|
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,
|
|
@@ -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,7 +11464,7 @@ 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) {
|
|
@@ -11480,7 +11473,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11480
11473
|
let tt = I[Y].bar_names || ["数据1"];
|
|
11481
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,
|
|
@@ -11491,12 +11484,12 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
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
11659
|
let tt = [Y, V];
|
|
11667
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,14 +12250,14 @@ 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,
|
|
@@ -12360,14 +12353,14 @@ 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,
|