gis-map-szdp 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gismap.es.js +71 -71
- package/dist/gismap.umd.js +3 -3
- 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() {
|
|
@@ -5374,7 +5374,7 @@ var oc = (
|
|
|
5374
5374
|
case X.CIRCLE:
|
|
5375
5375
|
f = /** @type {number} */
|
|
5376
5376
|
P[1];
|
|
5377
|
-
var I = u[f], j = u[f + 1], Y = u[f + 2], V = u[f + 3], Q = Y - I,
|
|
5377
|
+
var I = u[f], j = u[f + 1], Y = u[f + 2], V = u[f + 3], Q = Y - I, tt = V - j, Ot = Math.sqrt(Q * Q + tt * tt);
|
|
5378
5378
|
r.moveTo(I + Ot, j), r.arc(I, j, Ot, 0, 2 * Math.PI, !0), ++c;
|
|
5379
5379
|
break;
|
|
5380
5380
|
case X.CLOSE_PATH:
|
|
@@ -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, B), Je = [
|
|
5459
5459
|
r,
|
|
5460
5460
|
t,
|
|
5461
5461
|
A,
|
|
@@ -7758,7 +7758,7 @@ var Kc = /* @__PURE__ */ function() {
|
|
|
7758
7758
|
Kc(r, i);
|
|
7759
7759
|
function r(t, e) {
|
|
7760
7760
|
var n = i.call(this, t) || this, o = e || {};
|
|
7761
|
-
return n.inversePixelTransform_ = 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();
|
|
@@ -9255,27 +9255,27 @@ var Oh = /* @__PURE__ */ function() {
|
|
|
9255
9255
|
Ci(this.inversePixelTransform, this.pixelTransform), oe(this.tempTransform, A / 2, S / 2, P, P, 0, -A / 2, -S / 2), j.width != A || j.height != S ? (j.width = A, j.height = S) : this.containerReused || I.clearRect(0, 0, A, S), E && this.clipUnrotated(I, t, E), f.getInterpolate() || Nt(I, ui), this.preRender(I, t), this.renderedTiles.length = 0;
|
|
9256
9256
|
var Y = Object.keys(R).map(Number);
|
|
9257
9257
|
Y.sort(Xe);
|
|
9258
|
-
var V, Q,
|
|
9258
|
+
var V, Q, tt;
|
|
9259
9259
|
n.opacity === 1 && (!this.containerReused || f.getOpaque(t.viewState.projection)) ? Y = Y.reverse() : (V = [], Q = []);
|
|
9260
9260
|
for (var Ot = Y.length - 1; Ot >= 0; --Ot) {
|
|
9261
9261
|
var Gt = Y[Ot], de = f.getTilePixelSize(Gt, c, a), pe = p.getResolution(Gt), Wt = pe / v, te = de[0] * Wt * P, K = de[1] * Wt * P, yt = p.getTileCoordForCoordAndZ(He(T), Gt), st = p.getTileCoordExtent(yt), et = ft(this.tempTransform, [
|
|
9262
9262
|
y * (st[0] - T[0]) / v,
|
|
9263
9263
|
y * (T[3] - st[3]) / v
|
|
9264
|
-
]), it = y * f.getGutterForProjection(a),
|
|
9265
|
-
for (var lt in
|
|
9264
|
+
]), it = y * f.getGutterForProjection(a), q = R[Gt];
|
|
9265
|
+
for (var lt in q) {
|
|
9266
9266
|
var _ = (
|
|
9267
9267
|
/** @type {import("../../ImageTile.js").default} */
|
|
9268
|
-
|
|
9268
|
+
q[lt]
|
|
9269
9269
|
), ct = _.tileCoord, ot = yt[1] - ct[1], wt = Math.round(et[0] - (ot - 1) * te), Tt = yt[2] - ct[2], Bt = Math.round(et[1] - (Tt - 1) * K), z = Math.round(et[0] - ot * te), w = Math.round(et[1] - Tt * K), gt = wt - z, It = Bt - w, Pt = g === Gt, G = Pt && _.getAlpha(J(this), t.time) !== 1, Ut = !1;
|
|
9270
9270
|
if (!G)
|
|
9271
9271
|
if (V) {
|
|
9272
|
-
|
|
9272
|
+
tt = [z, w, z + gt, w, z + gt, w + It, z, w + It];
|
|
9273
9273
|
for (var pt = 0, Je = V.length; pt < Je; ++pt)
|
|
9274
9274
|
if (g !== Gt && Gt < Q[pt]) {
|
|
9275
9275
|
var mt = V[pt];
|
|
9276
|
-
bt([z, w, z + gt, w + It], [mt[0], mt[3], mt[4], mt[7]]) && (Ut || (I.save(), Ut = !0), I.beginPath(), I.moveTo(
|
|
9276
|
+
bt([z, w, z + gt, w + It], [mt[0], mt[3], mt[4], mt[7]]) && (Ut || (I.save(), Ut = !0), I.beginPath(), I.moveTo(tt[0], tt[1]), I.lineTo(tt[2], tt[3]), I.lineTo(tt[4], tt[5]), I.lineTo(tt[6], tt[7]), I.moveTo(mt[6], mt[7]), I.lineTo(mt[4], mt[5]), I.lineTo(mt[2], mt[3]), I.lineTo(mt[0], mt[1]), I.clip());
|
|
9277
9277
|
}
|
|
9278
|
-
V.push(
|
|
9278
|
+
V.push(tt), Q.push(Gt);
|
|
9279
9279
|
} else
|
|
9280
9280
|
I.clearRect(z, w, gt, It);
|
|
9281
9281
|
this.drawTileImage(_, t, z, w, gt, It, it, Pt), V && !G ? (Ut && I.restore(), this.renderedTiles.unshift(_)) : this.renderedTiles.push(_), this.updateUsedTiles(t.usedTiles, f, _);
|
|
@@ -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;
|
|
@@ -10965,7 +10965,7 @@ function rs(i, r, t, e, n, o, a) {
|
|
|
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
|
|
@@ -11269,8 +11269,8 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11269
11269
|
Array.isArray(V) || (V = [V]);
|
|
11270
11270
|
let Q = M[j].bar_names || ["数据1"];
|
|
11271
11271
|
Array.isArray(Q) || (Q = [Q]);
|
|
11272
|
-
let
|
|
11273
|
-
Array.isArray(
|
|
11272
|
+
let tt = M[j].bar_units || ["单位"];
|
|
11273
|
+
Array.isArray(tt) || (tt = [tt]), I.push({
|
|
11274
11274
|
name: M[j].city,
|
|
11275
11275
|
value: Y,
|
|
11276
11276
|
// 不再使用level字段
|
|
@@ -11280,7 +11280,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11280
11280
|
// 默认颜色
|
|
11281
11281
|
bar_data: V,
|
|
11282
11282
|
bar_names: Q,
|
|
11283
|
-
bar_units:
|
|
11283
|
+
bar_units: tt
|
|
11284
11284
|
});
|
|
11285
11285
|
}
|
|
11286
11286
|
}
|
|
@@ -11477,8 +11477,8 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11477
11477
|
if (V) {
|
|
11478
11478
|
let Q = I[Y].bar_data || [0];
|
|
11479
11479
|
Array.isArray(Q) || (Q = [Q]);
|
|
11480
|
-
let
|
|
11481
|
-
Array.isArray(
|
|
11480
|
+
let tt = I[Y].bar_names || ["数据1"];
|
|
11481
|
+
Array.isArray(tt) || (tt = [tt]);
|
|
11482
11482
|
let Ot = I[Y].bar_units || ["单位"];
|
|
11483
11483
|
Array.isArray(Ot) || (Ot = [Ot]), j.push({
|
|
11484
11484
|
name: I[Y].city,
|
|
@@ -11486,7 +11486,7 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11486
11486
|
bar_count: I[Y].bar_count || 1,
|
|
11487
11487
|
color: Array.isArray(I[Y].color) ? I[Y].color : I[Y].color ? [I[Y].color, "#ff7f00"] : ["#0097fb", "#30eca6"],
|
|
11488
11488
|
bar_data: Q,
|
|
11489
|
-
bar_names:
|
|
11489
|
+
bar_names: tt,
|
|
11490
11490
|
bar_units: Ot
|
|
11491
11491
|
});
|
|
11492
11492
|
}
|
|
@@ -11663,8 +11663,8 @@ function ns(i, r, t, e, n, o, a, s, l, u) {
|
|
|
11663
11663
|
if (t && typeof t == "function") {
|
|
11664
11664
|
let j = I.data, Y = j.value[0], V = j.value[1], Q = null;
|
|
11665
11665
|
if (Y && V) {
|
|
11666
|
-
let
|
|
11667
|
-
i && i.value && i.value.value && (Q = i.value.value.getPixelFromCoordinate(
|
|
11666
|
+
let tt = [Y, V];
|
|
11667
|
+
i && i.value && i.value.value && (Q = i.value.value.getPixelFromCoordinate(tt));
|
|
11668
11668
|
}
|
|
11669
11669
|
t("barClick", j, Q);
|
|
11670
11670
|
}
|
|
@@ -12268,7 +12268,7 @@ const Rf = { id: "popupContent" }, Lf = {
|
|
|
12268
12268
|
lgzxLayer: Y,
|
|
12269
12269
|
loadLGZXLayer: V,
|
|
12270
12270
|
removeLGZXLayer: Q,
|
|
12271
|
-
qzzdLayer:
|
|
12271
|
+
qzzdLayer: tt,
|
|
12272
12272
|
loadQZZDLayer: Ot,
|
|
12273
12273
|
removeQZZDLayer: Gt,
|
|
12274
12274
|
cameraLayer: de,
|
|
@@ -12283,7 +12283,7 @@ const Rf = { id: "popupContent" }, Lf = {
|
|
|
12283
12283
|
gongganTextLayerList: et,
|
|
12284
12284
|
sourceWithTextList: it,
|
|
12285
12285
|
// 方法
|
|
12286
|
-
openPopupByattr:
|
|
12286
|
+
openPopupByattr: q,
|
|
12287
12287
|
zoomInBylatlon: lt,
|
|
12288
12288
|
addPointByArr: ct,
|
|
12289
12289
|
addLineByArr: ot,
|
|
@@ -12337,7 +12337,7 @@ const Rf = { id: "popupContent" }, Lf = {
|
|
|
12337
12337
|
Je();
|
|
12338
12338
|
}), r({
|
|
12339
12339
|
map: o,
|
|
12340
|
-
openPopupByattr:
|
|
12340
|
+
openPopupByattr: q,
|
|
12341
12341
|
zoomInBylatlon: lt,
|
|
12342
12342
|
initEchartsLayer: It,
|
|
12343
12343
|
initPictorialBarLayer: Pt,
|
|
@@ -12371,7 +12371,7 @@ const Rf = { id: "popupContent" }, Lf = {
|
|
|
12371
12371
|
lgzxLayer: Y,
|
|
12372
12372
|
loadLGZXLayer: V,
|
|
12373
12373
|
removeLGZXLayer: Q,
|
|
12374
|
-
qzzdLayer:
|
|
12374
|
+
qzzdLayer: tt,
|
|
12375
12375
|
loadQZZDLayer: Ot,
|
|
12376
12376
|
removeQZZDLayer: Gt,
|
|
12377
12377
|
cameraLayer: de,
|