zhihao-ui 1.2.34 → 1.2.35

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.
@@ -1,6 +1,6 @@
1
- var B = Object.defineProperty;
2
- var O = (e, t, n) => t in e ? B(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var I = (e, t, n) => O(e, typeof t != "symbol" ? t + "" : t, n);
1
+ var D = Object.defineProperty;
2
+ var _ = (e, t, n) => t in e ? D(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var I = (e, t, n) => _(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { defineComponent, inject, useModel, ref, watch, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, Fragment, renderList, toDisplayString, createCommentVNode, mergeModels, nextTick, onMounted, normalizeClass, renderSlot, createBlock, useCssVars, computed, provide } from "vue";
5
5
  import { p as getArea, q as getLength, V as VectorSource, r as VectorLayer, S as Style, C as CircleStyle, F as Fill, s as Stroke, D as Draw, O as Overlay, u as unByKey, t as ElSelect, v as ElOption, w as fromLonLat, P as Point, x as transform, y as Feature, T as Text, I as Icon, z as Translate, A as toLonLat, B as transformExtent, h as hooks, L as LineString, G as Polyline, H as getVectorContext, i as cloneDeep, J as GeoJSON, W as WebGLPointsLayer, K as Circle, M as buffer, N as ScaleLine$1, Q as MultiPoint, R as getCenter, U as TileLayer, X as XYZ, Y as Map$1, Z as View } from "./vendor-Bonn9k5m.js";
6
6
  import { _ as _export_sfc } from "./Button-BbUxF68h.js";
@@ -8,7 +8,7 @@ import { g as getForegroundColor } from "./DatePicker-BkfvEDok.js";
8
8
  import { w as withInstall } from "./utils-hD_p7bGY.js";
9
9
  var BaseMapType = /* @__PURE__ */ ((e) => (e[e.vector = 0] = "vector", e[e.satellite = 1] = "satellite", e))(BaseMapType || {}), SEARCH_TYPE = /* @__PURE__ */ ((e) => (e[e.SEARCH_SHIP = 0] = "SEARCH_SHIP", e[e.SEARCH_PORT = 1] = "SEARCH_PORT", e[e.SEARCH_CUSTOM = 2] = "SEARCH_CUSTOM", e))(SEARCH_TYPE || {}), COPY_RIGHT_TYPE = /* @__PURE__ */ ((e) => (e[e.HORIZONTAL = 0] = "HORIZONTAL", e[e.VERTICAL = 1] = "VERTICAL", e))(COPY_RIGHT_TYPE || {}), CAR_COLOR = /* @__PURE__ */ ((e) => (e[e.BLUE = 1] = "BLUE", e[e.YELLOW = 2] = "YELLOW", e[e.Y_GREEN = 3] = "Y_GREEN", e))(CAR_COLOR || {}), DEVICE_TYPE = /* @__PURE__ */ ((e) => (e[e.HOST = 1] = "HOST", e[e.TALK = 2] = "TALK", e[e.STORAGE = 3] = "STORAGE", e[e.INTERNET = 4] = "INTERNET", e[e.CAMERA = 5] = "CAMERA", e[e.LOAD = 6] = "LOAD", e))(DEVICE_TYPE || {}), LENGTH_UNIT = /* @__PURE__ */ ((e) => (e[e.M = 1] = "M", e[e.KM = 2] = "KM", e[e.NM = 3] = "NM", e))(LENGTH_UNIT || {}), SWITCH_BTN = /* @__PURE__ */ ((e) => (e.Camera = "camera", e.Mobile = "mobile", e.WaterGauge = "waterGauge", e))(SWITCH_BTN || {}), SHIP_SAIL_STATUS = /* @__PURE__ */ ((e) => (e[e.发动机使用中 = 0] = "发动机使用中", e[e.锚泊 = 1] = "锚泊", e[e.未操作 = 2] = "未操作", e[e.操纵能力受限 = 3] = "操纵能力受限", e[e.吃水受限 = 4] = "吃水受限", e[e.系泊 = 5] = "系泊", e[e.搁浅 = 6] = "搁浅", e[e.从事捕捞 = 7] = "从事捕捞", e[e.航行中 = 8] = "航行中", e[e.留作将来修正导航状态 = 9] = "留作将来修正导航状态", e[e.高速船留用 = 10] = "高速船留用", e[e.机动船尾推作业 = 11] = "机动船尾推作业", e[e.机动船顶推或侧推作业 = 12] = "机动船顶推或侧推作业", e[e.飞翼船留用 = 13] = "飞翼船留用", e[e.现行的 = 14] = "现行的", e[e.未定义 = 15] = "未定义", e))(SHIP_SAIL_STATUS || {});
10
10
  class ShipMapData {
11
- constructor(t, n, o, r, l, i, s, c, d, m, u, f, p, y, v, g, M, S, b, C, F, x, h, w) {
11
+ constructor(t, n, o, r, l, i, s, c, d, m, u, f, p, y, h, g, T, S, b, V, $, x, v, w) {
12
12
  I(this, "id");
13
13
  // mmsi
14
14
  I(this, "mmsi");
@@ -50,7 +50,7 @@ class ShipMapData {
50
50
  I(this, "existWaterGauge");
51
51
  I(this, "selected");
52
52
  I(this, "blinkColors");
53
- this.id = t, this.mmsi = n, this.fill = o, this.shipType = r, this.name = l, this.length = i, this.breadth = s, this.lon = c, this.lat = d, this.createdAt = m, this.speed = u, this.from = f, this.sailStatus = p, this.hdg = y, this.cog = v, this.posType = g, this.type = M, this.angle = S, this.leftIconColor = b, this.existDevice = C, this.existMobile = F, this.existWaterGauge = x, this.selected = h, this.blinkColors = w;
53
+ this.id = t, this.mmsi = n, this.fill = o, this.shipType = r, this.name = l, this.length = i, this.breadth = s, this.lon = c, this.lat = d, this.createdAt = m, this.speed = u, this.from = f, this.sailStatus = p, this.hdg = y, this.cog = h, this.posType = g, this.type = T, this.angle = S, this.leftIconColor = b, this.existDevice = V, this.existMobile = $, this.existWaterGauge = x, this.selected = v, this.blinkColors = w;
54
54
  }
55
55
  }
56
56
  const formatLength = function(e, t) {
@@ -132,7 +132,7 @@ const formatLength = function(e, t) {
132
132
  setup(e, { expose: t, emit: n }) {
133
133
  const o = inject("mapInstance"), r = n, l = useModel(e, "visible"), i = ref("3"), s = ref([]), c = ref(!1), d = new VectorSource();
134
134
  let m, u, f, p, y;
135
- const v = new VectorLayer({
135
+ const h = new VectorLayer({
136
136
  source: d,
137
137
  style: {
138
138
  "fill-color": "rgba(255, 255, 255, 0.2)",
@@ -141,15 +141,15 @@ const formatLength = function(e, t) {
141
141
  "circle-radius": 7,
142
142
  "circle-fill-color": "#ffcc33"
143
143
  }
144
- }), g = function(L) {
145
- if (L.dragging)
144
+ }), g = function(k) {
145
+ if (k.dragging)
146
146
  return;
147
- let T = "点击选择起点";
148
- m && (T = "单击继续,双击结束"), u && (u.innerHTML = T, f.setPosition(L.coordinate), u.classList.remove("hidden"));
149
- }, M = () => {
147
+ let M = "点击选择起点";
148
+ m && (M = "单击继续,双击结束"), u && (u.innerHTML = M, f.setPosition(k.coordinate), u.classList.remove("hidden"));
149
+ }, T = () => {
150
150
  o.value && (o.value.on("pointermove", g), o.value.getViewport().addEventListener("mouseout", function() {
151
- var L;
152
- (L = u == null ? void 0 : u.classList) == null || L.add("hidden");
151
+ var k;
152
+ (k = u == null ? void 0 : u.classList) == null || k.add("hidden");
153
153
  }), c.value = !0);
154
154
  };
155
155
  let S;
@@ -172,95 +172,95 @@ const formatLength = function(e, t) {
172
172
  })
173
173
  })
174
174
  });
175
- function C() {
176
- var L, T;
175
+ function V() {
176
+ var k, M;
177
177
  if (o.value) {
178
178
  if (s.value = [], document.querySelectorAll(".ol-tooltip.ol-tooltip-static").forEach((E) => {
179
- var V;
180
- (V = E == null ? void 0 : E.parentNode) == null || V.removeChild(E);
179
+ var C;
180
+ (C = E == null ? void 0 : E.parentNode) == null || C.removeChild(E);
181
181
  }), d.clear(), S) {
182
- const E = o.value.getInteractions().getArray().find((V) => V.ol_uid === S.ol_uid);
183
- E && ((L = o.value) == null || L.removeInteraction(E));
182
+ const E = o.value.getInteractions().getArray().find((C) => C.ol_uid === S.ol_uid);
183
+ E && ((k = o.value) == null || k.removeInteraction(E));
184
184
  }
185
- (T = o.value) == null || T.removeLayer(v), u != null && u.parentNode && u.parentNode.removeChild(u), p != null && p.parentNode && p.parentNode.removeChild(p);
185
+ (M = o.value) == null || M.removeLayer(h), u != null && u.parentNode && u.parentNode.removeChild(u), p != null && p.parentNode && p.parentNode.removeChild(p);
186
186
  }
187
187
  }
188
- function F() {
189
- var T, E;
190
- C(), (T = o.value) == null || T.addLayer(v), S = new Draw({
188
+ function $() {
189
+ var M, E;
190
+ V(), (M = o.value) == null || M.addLayer(h), S = new Draw({
191
191
  source: d,
192
192
  type: "LineString",
193
193
  style: function() {
194
194
  return b;
195
195
  }
196
- }), (E = o.value) == null || E.addInteraction(S), h(), x();
197
- let L;
198
- S.on("drawstart", function(V) {
199
- var N;
200
- m = V.feature;
201
- let P;
202
- L = (N = m.getGeometry()) == null ? void 0 : N.on("change", function(R) {
203
- const $ = R.target;
204
- let A = formatUtils.formatLength($, Number(i.value));
205
- P = $.getLastCoordinate(), p && A && (p.innerHTML = A), y.setPosition(P);
196
+ }), (E = o.value) == null || E.addInteraction(S), v(), x();
197
+ let k;
198
+ S.on("drawstart", function(C) {
199
+ var P;
200
+ m = C.feature;
201
+ let F;
202
+ k = (P = m.getGeometry()) == null ? void 0 : P.on("change", function(R) {
203
+ const B = R.target;
204
+ let N = formatUtils.formatLength(B, Number(i.value));
205
+ F = B.getLastCoordinate(), p && N && (p.innerHTML = N), y.setPosition(F);
206
206
  });
207
207
  }), S.on("drawend", function() {
208
- var V, P;
209
- p && (p.className = "ol-tooltip ol-tooltip-static ol-tooltip-measure"), p != null && p.innerHTML && (s.value.push(p == null ? void 0 : p.innerHTML), p.innerHTML = `${p.innerHTML}<div class="ol-tooltip-delete-button" data-index="${((V = s.value) == null ? void 0 : V.length) - 1}"><i class="map-iconfont icon-delete"></i></div>`), (P = document.querySelector(".ol-tooltip-delete-button:last-child")) == null || P.addEventListener("click", (N) => {
210
- var $;
211
- N.preventDefault(), N.stopPropagation();
212
- const R = ($ = N.target) == null ? void 0 : $.getAttribute("data-index");
213
- R && w(R);
214
- }), y.setOffset([0, -7]), m = null, p = null, h(), L && unByKey(L);
208
+ var C, F;
209
+ p && (p.className = "ol-tooltip ol-tooltip-static ol-tooltip-measure"), p != null && p.innerHTML && (s.value.push(p == null ? void 0 : p.innerHTML), p.innerHTML = `${p.innerHTML}<div class="ol-tooltip-delete-button" data-index="${((C = s.value) == null ? void 0 : C.length) - 1}"><i class="map-iconfont icon-delete"></i></div>`), (F = document.querySelector(".ol-selectable:has(.ol-tooltip-delete-button):last-child .ol-tooltip-delete-button")) == null || F.addEventListener("click", (P) => {
210
+ var B;
211
+ P.preventDefault(), P.stopPropagation();
212
+ const R = (B = P.target) == null ? void 0 : B.getAttribute("data-index");
213
+ R && w(Number(R));
214
+ }), y.setOffset([0, -7]), m = null, p = null, v(), k && unByKey(k);
215
215
  });
216
216
  }
217
217
  function x() {
218
- var L;
218
+ var k;
219
219
  u != null && u.parentNode && u.parentNode.removeChild(u), u = document.createElement("div"), u.className = "ol-tooltip hidden", f = new Overlay({
220
220
  element: u,
221
221
  offset: [15, 0],
222
222
  positioning: "center-left"
223
- }), (L = o.value) == null || L.addOverlay(f);
223
+ }), (k = o.value) == null || k.addOverlay(f);
224
224
  }
225
- function h() {
226
- var L;
225
+ function v() {
226
+ var k;
227
227
  p != null && p.parentNode && p.parentNode.removeChild(p), p = document.createElement("div"), p.className = "ol-tooltip ol-tooltip-measure", y = new Overlay({
228
228
  element: p,
229
229
  offset: [0, -15],
230
230
  positioning: "bottom-center",
231
231
  stopEvent: !1,
232
232
  insertFirst: !1
233
- }), (L = o.value) == null || L.addOverlay(y);
233
+ }), (k = o.value) == null || k.addOverlay(y);
234
234
  }
235
- const w = (L) => {
236
- var V, P;
237
- s.value[L] && s.value.splice(L, 1);
238
- const T = document.querySelectorAll(".ol-tooltip.ol-tooltip-static.ol-tooltip-measure");
239
- T[L] && ((P = (V = T[L]) == null ? void 0 : V.parentNode) == null || P.removeChild(T[L]));
235
+ const w = (k) => {
236
+ var C, F;
237
+ s.value[k] && s.value.splice(k, 1);
238
+ const M = document.querySelectorAll(".ol-tooltip.ol-tooltip-static.ol-tooltip-measure");
239
+ M[k] && ((F = (C = M[k]) == null ? void 0 : C.parentNode) == null || F.removeChild(M[k]));
240
240
  const E = d.getFeatures();
241
- E[L] && d.removeFeature(E[L]);
242
- }, k = () => {
241
+ E[k] && d.removeFeature(E[k]);
242
+ }, L = () => {
243
243
  r("close");
244
244
  };
245
245
  return watch(() => l, () => {
246
- l.value && !c.value && (M(), F());
246
+ l.value && !c.value && (T(), $());
247
247
  }, { deep: !0, immediate: !0 }), t({
248
- addInteraction: F,
249
- removeInteraction: C
250
- }), (L, T) => l.value && L.viewMode !== "WxMiniprogram" ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
248
+ addInteraction: $,
249
+ removeInteraction: V
250
+ }), (k, M) => l.value && k.viewMode !== "WxMiniprogram" ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
251
251
  createElementVNode("div", { class: "header" }, [
252
- T[1] || (T[1] = createElementVNode("div", { class: "title" }, "测量", -1)),
252
+ M[1] || (M[1] = createElementVNode("div", { class: "title" }, "测量", -1)),
253
253
  createElementVNode("i", {
254
- onClick: k,
254
+ onClick: L,
255
255
  class: "map-iconfont icon-close"
256
256
  })
257
257
  ]),
258
258
  createElementVNode("div", _hoisted_2$2, [
259
- T[2] || (T[2] = createElementVNode("div", { class: "tips" }, "在地图上点击多个点测量距离,距离单位", -1)),
259
+ M[2] || (M[2] = createElementVNode("div", { class: "tips" }, "在地图上点击多个点测量距离,距离单位", -1)),
260
260
  createVNode(unref(ElSelect), {
261
261
  class: "select-length-unit",
262
262
  modelValue: i.value,
263
- "onUpdate:modelValue": T[0] || (T[0] = (E) => i.value = E)
263
+ "onUpdate:modelValue": M[0] || (M[0] = (E) => i.value = E)
264
264
  }, {
265
265
  default: withCtx(() => [
266
266
  createVNode(unref(ElOption), {
@@ -280,26 +280,26 @@ const formatLength = function(e, t) {
280
280
  }, 8, ["modelValue"])
281
281
  ]),
282
282
  createElementVNode("div", _hoisted_3$1, [
283
- (openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (E, V) => (openBlock(), createElementBlock("div", {
283
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (E, C) => (openBlock(), createElementBlock("div", {
284
284
  class: "measure-history-item",
285
- key: V
285
+ key: C
286
286
  }, [
287
287
  createElementVNode("div", _hoisted_4, [
288
- T[3] || (T[3] = createElementVNode("i", { class: "map-iconfont icon-line" }, null, -1)),
289
- createElementVNode("span", _hoisted_5, "线段" + toDisplayString(V + 1), 1),
288
+ M[3] || (M[3] = createElementVNode("i", { class: "map-iconfont icon-line" }, null, -1)),
289
+ createElementVNode("span", _hoisted_5, "线段" + toDisplayString(C + 1), 1),
290
290
  createElementVNode("span", _hoisted_6, toDisplayString(E), 1)
291
291
  ]),
292
292
  createElementVNode("div", {
293
293
  class: "delete-button",
294
- onClick: (P) => w(V)
295
- }, T[4] || (T[4] = [
294
+ onClick: (F) => w(C)
295
+ }, M[4] || (M[4] = [
296
296
  createElementVNode("i", { class: "map-iconfont icon-delete" }, null, -1)
297
297
  ]), 8, _hoisted_7)
298
298
  ]))), 128))
299
299
  ])
300
300
  ])) : createCommentVNode("", !0);
301
301
  }
302
- }), Measure = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-b36b46d6"]]), mapInstance$8 = ref(), renderMarkerSetInstance = (e) => mapInstance$8.value = e, markerPosition = ref(""), marker = ref(), createIconStyle = (e) => new Style({
302
+ }), Measure = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-0b59fc70"]]), mapInstance$8 = ref(), renderMarkerSetInstance = (e) => mapInstance$8.value = e, markerPosition = ref(""), marker = ref(), createIconStyle = (e) => new Style({
303
303
  image: new Icon({
304
304
  src: CDN_URL + "map/poi-marker-default.png",
305
305
  anchor: [0.5, 1]
@@ -347,9 +347,9 @@ const formatLength = function(e, t) {
347
347
  layers: [s]
348
348
  });
349
349
  u.on("translating", function(f) {
350
- var v;
350
+ var h;
351
351
  const p = f.features.item(0).getGeometry().getCoordinates(), y = toLonLat(p);
352
- markerPosition.value = `${y[0].toFixed(6)}, ${y[1].toFixed(6)}`, (v = marker.value) == null || v.setStyle(createIconStyle(markerPosition.value));
352
+ markerPosition.value = `${y[0].toFixed(6)}, ${y[1].toFixed(6)}`, (h = marker.value) == null || h.setStyle(createIconStyle(markerPosition.value));
353
353
  }), mapInstance$8.value.addInteraction(u);
354
354
  }
355
355
  const d = new Point([o, r]);
@@ -446,11 +446,11 @@ const multiplyPixelRatio = (e) => {
446
446
  }
447
447
  function i(u, f, p = {}) {
448
448
  if (p.final)
449
- return function(x, h) {
450
- return (i(h, x) + 180) % 360;
449
+ return function(x, v) {
450
+ return (i(v, x) + 180) % 360;
451
451
  }(u, f);
452
- const y = l(u), v = l(f), g = r(y[0]), M = r(v[0]), S = r(y[1]), b = r(v[1]), C = Math.sin(M - g) * Math.cos(b), F = Math.cos(S) * Math.sin(b) - Math.sin(S) * Math.cos(b) * Math.cos(M - g);
453
- return o(Math.atan2(C, F));
452
+ const y = l(u), h = l(f), g = r(y[0]), T = r(h[0]), S = r(y[1]), b = r(h[1]), V = Math.sin(T - g) * Math.cos(b), $ = Math.cos(S) * Math.sin(b) - Math.sin(S) * Math.cos(b) * Math.cos(T - g);
453
+ return o(Math.atan2(V, $));
454
454
  }
455
455
  function s(u) {
456
456
  return !isNaN(u) && u !== null && !Array.isArray(u);
@@ -464,7 +464,7 @@ const multiplyPixelRatio = (e) => {
464
464
  }
465
465
  const m = i(c(e), c(t), n);
466
466
  return m < 0 ? 360 + m : m;
467
- }, labelAlpha = 0.8, labelFont = "500 12px Arial", labelOutSize = 2, labelHeight = 10, fillRectRadius = (e, t, n, o, r, l, i = 4) => {
467
+ }, labelAlpha = 0.8, pixelRatio = window.devicePixelRatio || 1, labelFont = `500 ${12 * pixelRatio}px Arial`, labelOutSize = 2 * pixelRatio, labelHeight = 10 * pixelRatio, fillRectRadius = (e, t, n, o, r, l, i = 4) => {
468
468
  e.beginPath(), e.moveTo(t + i, n), e.arcTo(t + o, n, t + o, n + i, i), e.arcTo(t + o, n + r, t + o - i, n + r, i), e.arcTo(t, n + r, t, n + r - i, i), e.arcTo(t, n, t + i, n, i), e.closePath(), e.fillStyle = l, e.fill();
469
469
  }, getPixelFromCoordinate = (e) => {
470
470
  if (!e || e.length === 0)
@@ -567,44 +567,41 @@ function drawLabelBody(e, t, n) {
567
567
  selected: u
568
568
  } = n;
569
569
  e.save(), o && (e.font = o);
570
- let f = e.measureText(s).width + 2 * r;
571
- (c || d) && (f += l + 4 * r), e.restore();
572
- let p;
573
- const y = 20;
574
- let v = -1;
575
- const g = l + 3 * r;
570
+ let f = e.measureText(s).width + 4 * r;
571
+ (c || d) && (f += l + 6 * r), e.restore();
572
+ let p, y = 20, h = -1, g = l + 3 * r;
576
573
  if (m)
577
- for (let M = 0; M < 8; M++) {
578
- p = calculateBounds(i, M, f, g, m);
574
+ for (let T = 0; T < 8; T++) {
575
+ p = calculateBounds(i, T, f, g, m);
579
576
  let S = !1;
580
577
  for (let b = 0; b < t.length; ++b) {
581
- const C = t[b].bounds, F = [
582
- C[0] - y,
583
- C[1] - y,
584
- C[2] + y,
585
- C[3] + y
578
+ let V = t[b].bounds, $ = [
579
+ V[0] - y,
580
+ V[1] - y,
581
+ V[2] + y,
582
+ V[3] + y
586
583
  ];
587
- if (p && isOverlapping(p, F)) {
584
+ if (p && isOverlapping(p, $)) {
588
585
  S = !0;
589
586
  break;
590
587
  }
591
588
  }
592
589
  if (!S) {
593
- v = M;
590
+ h = T;
594
591
  break;
595
592
  }
596
593
  }
597
594
  else
598
- v = 0, p = calculateBounds(i, v, f, g, m);
599
- if (u && v === -1 && (v = 0), p && v > -1) {
600
- const M = getBottomLeftPoint(p), S = getTopRighttPoint(p);
595
+ h = 0, p = calculateBounds(i, h, f, g, m);
596
+ if (u && h === -1 && (h = 0), p && h > -1) {
597
+ let T = getBottomLeftPoint(p), S = getTopRighttPoint(p);
601
598
  return {
602
599
  center: i,
603
- x: calculateAnchorPoint(i, v, f, g, m),
600
+ x: calculateAnchorPoint(i, h, f, g, m),
604
601
  l: S,
605
- r: M,
602
+ r: T,
606
603
  bounds: p,
607
- position: v,
604
+ position: h,
608
605
  name: s
609
606
  };
610
607
  } else
@@ -616,19 +613,19 @@ const drawText = (e, t) => {
616
613
  e.save(), e.setTransform(1, 0, 0, 1, 0, 0);
617
614
  let [c, d] = n;
618
615
  if (l) {
619
- e.font = "22px map-iconfont";
620
- const m = getIconFont(l.icon);
621
- e.fillStyle = l.color, e.fillText(m, c + labelOutSize - 4, d + 4), c += 22;
616
+ e.font = `${20 * pixelRatio}px map-iconfont`;
617
+ let m = getIconFont(l.icon);
618
+ e.fillStyle = l.color, e.fillText(m, c + labelOutSize - 3.2 * pixelRatio, d + 3.2 * pixelRatio), c += 22 * pixelRatio;
622
619
  }
623
620
  if (i != null && i.length) {
624
- e.font = "12px map-iconfont", e.fillStyle = "#3370ff";
625
- const m = e.measureText(o).width + 6;
621
+ e.font = `${12 * pixelRatio}px map-iconfont`, e.fillStyle = "#3370ff";
622
+ const m = e.measureText(o).width + 6 * pixelRatio;
626
623
  i.forEach((u, f) => {
627
- const p = getIconFont(u), y = 20 * f;
624
+ const p = getIconFont(u), y = 20 * pixelRatio * f;
628
625
  e.fillText(p, c + m + y, d);
629
626
  });
630
627
  }
631
- e.font = s || labelFont, e.fillStyle = r, e.fillText(o, c, d), e.restore();
628
+ e.font = s || labelFont, e.fillStyle = r, e.fillText(o, c + 2, d), e.restore();
632
629
  }, drawPolygon = (e, t) => {
633
630
  let {
634
631
  points: n,
@@ -648,10 +645,10 @@ const drawText = (e, t) => {
648
645
  l && e.closePath(), o && (e.strokeStyle = o, e.stroke()), r && l && (m && (e.globalAlpha = m), e.fillStyle = r, e.fill()), e.restore();
649
646
  }
650
647
  }, intervalId = [], drawLabel = (e, t, n) => {
651
- var u, f;
648
+ var u, f, p, y, h, g, T, S;
652
649
  let { center: o, text: r, color: l, textColor: i, bgColor: s, leftIcon: c, rightIcons: d, type: m } = t;
653
650
  if (o && r) {
654
- const p = {
651
+ const b = {
655
652
  font: labelFont,
656
653
  labelOutSize,
657
654
  labelHeight,
@@ -661,11 +658,11 @@ const drawText = (e, t) => {
661
658
  selected: t.selected
662
659
  };
663
660
  (u = t.blinkColors) != null && u.length && (s = t.fill, i = getForegroundColor(t.fill));
664
- const y = drawLabelBody(e, n, p);
665
- if (y) {
666
- const { x: v, bounds: g, l: M } = y, S = [getTopLeftPoint(g), getBottomLeftPoint(g), getBottomRightPoint(g), getTopRighttPoint(g)];
667
- n.find((w) => w.name === r) || n.push(y), drawPolygon(e, {
668
- points: [o, v],
661
+ const V = drawLabelBody(e, n, b);
662
+ if (V) {
663
+ const { x: $, bounds: x, l: v } = V, w = [getTopLeftPoint(x), getBottomLeftPoint(x), getBottomRightPoint(x), getTopRighttPoint(x)];
664
+ n.find((F) => F.name === r) || n.push(V), drawPolygon(e, {
665
+ points: [o, $],
669
666
  strokeColor: l,
670
667
  fillColor: "#000",
671
668
  shouldClosePath: !0,
@@ -675,35 +672,48 @@ const drawText = (e, t) => {
675
672
  scale: void 0,
676
673
  globalAlpha: labelAlpha
677
674
  }), d != null && d.length && d.forEach(() => {
678
- S[1][0] += 20, S[2][0] += 20;
675
+ w[1][0] += 20, w[2][0] += 20;
679
676
  });
680
- const C = {
681
- points: S,
677
+ const k = {
678
+ points: w,
682
679
  strokeColor: l,
683
680
  fillColor: s,
684
681
  shouldClosePath: !0
685
- }, [F, x] = M, h = {
686
- center: [F, x + labelOutSize + labelHeight + 1],
682
+ }, [M, E] = v, C = {
683
+ center: [M, E + labelOutSize + labelHeight + 1],
687
684
  text: r,
688
685
  textColor: i,
689
686
  leftIcon: c,
690
687
  rightIcons: d,
691
688
  blinkColors: t.blinkColors
692
689
  };
693
- if (drawPolygon(e, C), drawText(e, h), ((f = t == null ? void 0 : t.blinkColors) == null ? void 0 : f.length) > 0) {
694
- let w = Date.now(), k = 0;
695
- const L = [];
696
- t.blinkColors.forEach((T) => {
697
- L.push(T), L.push("white");
698
- }), intervalId[t.id] && clearInterval(intervalId[t.id]), intervalId[t.id] = setInterval(() => {
699
- const T = Date.now();
700
- T - w >= 500 && (k = (k + 1) % L.length, w = T, C.fillColor = L[k], drawPolygon(e, C), h.textColor = getForegroundColor(C.fillColor), drawText(e, h));
701
- }, 10);
690
+ if (drawPolygon(e, k), drawText(e, C), ((f = t == null ? void 0 : t.blinkColors) == null ? void 0 : f.length) > 0) {
691
+ let F = Date.now(), P = 0;
692
+ const R = [];
693
+ t.blinkColors.forEach((N) => {
694
+ R.push(N), R.push("white");
695
+ }), !!((h = (y = (p = selectShipsLayer.value) == null ? void 0 : p.getSource()) == null ? void 0 : y.getFeatures()) != null && h.find((N) => {
696
+ var A;
697
+ return ((A = N.get("data")) == null ? void 0 : A.id) === t.id;
698
+ }) || (S = (T = (g = shipsLayer.value) == null ? void 0 : g.getSource()) == null ? void 0 : T.getFeatures()) != null && S.find((N) => {
699
+ var A;
700
+ return ((A = N.get("data")) == null ? void 0 : A.id) === t.id;
701
+ })) ? (intervalId[t.id] && clearInterval(intervalId[t.id]), intervalId[t.id] = setInterval(() => {
702
+ const N = Date.now();
703
+ if (N - F >= 500) {
704
+ P = (P + 1) % R.length, F = N, k.fillColor = R[P], drawPolygon(e, k), C.textColor = getForegroundColor(k.fillColor), drawText(e, C);
705
+ const A = !!shipLabels.value.find((O) => O.name === t.name);
706
+ A || (console.log(A), clearInterval(intervalId[t.id]), deleteLabelFromArray(n, r));
707
+ }
708
+ }, 10)) : (clearInterval(intervalId[t.id]), deleteLabelFromArray(n, r));
702
709
  } else
703
- shipLabels.value.find((k) => k.name === r) && (clearInterval(intervalId[t.id]), drawPolygon(e, C), drawText(e, h));
710
+ shipLabels.value.find((P) => P.name === r) && (clearInterval(intervalId[t.id]), drawPolygon(e, k), drawText(e, C));
704
711
  }
705
712
  }
706
713
  return null;
714
+ }, deleteLabelFromArray = (e, t) => {
715
+ const n = e.findIndex((o) => o.name === t);
716
+ n !== -1 && e.splice(n, 1);
707
717
  }, PI = Math.PI, a = 6378245, ee = 0.006693421622965943;
708
718
  function transformLat(e, t) {
709
719
  let n = -100 + 2 * e + 3 * t + 0.2 * t * t + 0.1 * e * t + 0.2 * Math.sqrt(Math.abs(e));
@@ -758,9 +768,9 @@ function mercatorToLonLat(e, t = "lonlat") {
758
768
  }
759
769
  function calculateBoundingBox(e) {
760
770
  let t = 1 / 0, n = -1 / 0, o = 1 / 0, r = -1 / 0;
761
- e.forEach((v) => {
762
- const [g, M] = v;
763
- t = Math.min(t, M), n = Math.max(n, M), o = Math.min(o, g), r = Math.max(r, g);
771
+ e.forEach((h) => {
772
+ const [g, T] = h;
773
+ t = Math.min(t, T), n = Math.max(n, T), o = Math.min(o, g), r = Math.max(r, g);
764
774
  });
765
775
  const l = r - o, i = n - t, s = Math.max(l, i), c = (o + r) / 2, d = (t + n) / 2, m = s / 2, u = c - m, f = c + m, p = d - m, y = d + m;
766
776
  return [f, p, u, y];
@@ -826,7 +836,7 @@ let polyline, linePath, startMarker, position, geoMarker, vectorLayer;
826
836
  const trackAnimating = ref(!1);
827
837
  let distance = 0, lastTime = Date.now(), moveFeatureHandler = null;
828
838
  const moveFeature = (e, t) => {
829
- var u;
839
+ var u, f;
830
840
  const n = Number(50 * t), o = e.frameState.time, r = o - lastTime;
831
841
  if (distance = (distance + n * r / 1e6) % 2, lastTime = o, distance >= 1) {
832
842
  stopAnimation();
@@ -839,9 +849,9 @@ const moveFeature = (e, t) => {
839
849
  ), s = linePath.getCoordinateAt(
840
850
  distance > 1 ? 2 - distance : distance + 0.01
841
851
  ), d = getRotation(transformUtils.mercatorToLonLat(i, "array"), transformUtils.mercatorToLonLat(s, "array")) * Math.PI / 180;
842
- geoMarkerStyle.getText().setRotation(d), position.setCoordinates(l);
852
+ (u = geoMarkerStyle.getText()) == null || u.setRotation(d), position.setCoordinates(l);
843
853
  const m = getVectorContext(e);
844
- m.context_.save(), m.setStyle(geoMarkerStyle), m.drawGeometry(position), m.context_.restore(), (u = mapInstance$7.value) == null || u.render();
854
+ m.context_.save(), m.setStyle(geoMarkerStyle), m.drawGeometry(position), m.context_.restore(), (f = mapInstance$7.value) == null || f.render();
845
855
  }, startAnimation = () => {
846
856
  trackAnimating.value = !0, showTrackAnimatMarker.value = !0, lastTime = Date.now(), distance = 0, position = startMarker.getGeometry().clone(), vectorLayer.on("postrender", moveFeatureHandler), geoMarker.setGeometry(null);
847
857
  }, stopAnimation = () => {
@@ -936,8 +946,8 @@ const moveFeature = (e, t) => {
936
946
  offsetY: -10
937
947
  }),
938
948
  zIndex: 99
939
- }), v = [];
940
- Number(s.state) === 0 ? ((u = y.getText()) == null || u.setFill(new Fill({ color: stopColor })), v.push(l)) : Number(s.state) === 1 && ((f = y.getText()) == null || f.setFill(new Fill({ color: slowColor })), v.push(i)), v.push(y), p.setStyle(v), trackLineVectorSource.value.addFeature(p);
949
+ }), h = [];
950
+ Number(s.state) === 0 ? ((u = y.getText()) == null || u.setFill(new Fill({ color: stopColor })), h.push(l)) : Number(s.state) === 1 && ((f = y.getText()) == null || f.setFill(new Fill({ color: slowColor })), h.push(i)), h.push(y), p.setStyle(h), trackLineVectorSource.value.addFeature(p);
941
951
  }
942
952
  }), renderArrow(o, e), renderIconPoint();
943
953
  }, renderArrow = (e, t) => {
@@ -1262,7 +1272,8 @@ const renderShips = (e) => {
1262
1272
  }), shipsVectorSource = new VectorSource({
1263
1273
  features: shipsMarkerList.map((o) => o.feature)
1264
1274
  }), shipsLayer.value = new VectorLayer({
1265
- source: shipsVectorSource
1275
+ source: shipsVectorSource,
1276
+ zIndex: 100
1266
1277
  }), (n = mapInstance$5.value) == null || n.addLayer(shipsLayer.value), shipsLayer.value;
1267
1278
  }, customFilterShips = (e) => {
1268
1279
  let t = cloneDeep(e);
@@ -1363,16 +1374,16 @@ const renderShips = (e) => {
1363
1374
  });
1364
1375
  if (r) {
1365
1376
  let f = !1, p = [0, 0], y = [0, 0];
1366
- l.addEventListener("mousedown", function(v) {
1377
+ l.addEventListener("mousedown", function(h) {
1367
1378
  var g;
1368
- f = !0, v.clientX, v.clientY, p = (g = mapInstance$4.value) == null ? void 0 : g.getCoordinateFromPixel([v.clientX - 200, v.clientY - 200]), y = [
1369
- v.clientX - l.getBoundingClientRect().left + 160,
1370
- v.clientY - l.getBoundingClientRect().top + 84
1371
- ], v.preventDefault();
1372
- }), document.addEventListener("mousemove", function(v) {
1379
+ f = !0, h.clientX, h.clientY, p = (g = mapInstance$4.value) == null ? void 0 : g.getCoordinateFromPixel([h.clientX - 200, h.clientY - 200]), y = [
1380
+ h.clientX - l.getBoundingClientRect().left + 160,
1381
+ h.clientY - l.getBoundingClientRect().top + 84
1382
+ ], h.preventDefault();
1383
+ }), document.addEventListener("mousemove", function(h) {
1373
1384
  var g;
1374
1385
  if (f) {
1375
- const M = (g = mapInstance$4.value) == null ? void 0 : g.getCoordinateFromPixel([v.clientX - y[0], v.clientY - y[1]]), S = M[0] - p[0], b = M[1] - p[1];
1386
+ const T = (g = mapInstance$4.value) == null ? void 0 : g.getCoordinateFromPixel([h.clientX - y[0], h.clientY - y[1]]), S = T[0] - p[0], b = T[1] - p[1];
1376
1387
  i.setPosition([p[0] + S, p[1] + b]);
1377
1388
  }
1378
1389
  }), document.addEventListener("mouseup", function() {
@@ -1430,7 +1441,7 @@ const trackId = ref(""), cursor = ref(0), renderTrack = (e, t, n, o, r = "ship")
1430
1441
  c != null && c.stayTime && (d = `
1431
1442
  <div class="item w-100">
1432
1443
  <div class="item-label">停泊时间约</div>
1433
- <div class="item-item">${c.stayTime}</div>
1444
+ <div class="item-item">${formatMinutesToDDHHMM(Number(c.stayTime))}</div>
1434
1445
  </div>
1435
1446
  `);
1436
1447
  const m = `
@@ -1465,7 +1476,7 @@ const trackId = ref(""), cursor = ref(0), renderTrack = (e, t, n, o, r = "ship")
1465
1476
  </div>
1466
1477
  ${d ?? d}
1467
1478
  </div>`, u = (i = mapInstance$3.value) == null ? void 0 : i.getPixelFromCoordinate(n.coordinate);
1468
- e.value = drawCustomContent(c.time, u, m, "center-center");
1479
+ e.value = drawCustomContent(c.time, u, m, "left-top");
1469
1480
  } else
1470
1481
  (s = mapInstance$3.value) == null || s.removeOverlay(e.value);
1471
1482
  });
@@ -1486,6 +1497,10 @@ const trackId = ref(""), cursor = ref(0), renderTrack = (e, t, n, o, r = "ship")
1486
1497
  } catch (l) {
1487
1498
  console.log(l);
1488
1499
  }
1500
+ }, formatMinutesToDDHHMM = (e) => {
1501
+ const t = hooks.duration(e, "minutes"), n = Math.floor(t.asDays()), o = t.hours(), r = t.minutes();
1502
+ let l = `${String(o).padStart(2, "0")}时${String(r).padStart(2, "0")}分`;
1503
+ return n !== 0 && (l = `${String(n).padStart(2, "0")}天${l}`), l;
1489
1504
  }, _hoisted_1$3 = {
1490
1505
  key: 0,
1491
1506
  class: "more-tool-panel"
@@ -1506,28 +1521,28 @@ const trackId = ref(""), cursor = ref(0), renderTrack = (e, t, n, o, r = "ship")
1506
1521
  }, m = () => {
1507
1522
  r("switchMapTile", o.mapTileMode === BaseMapType.vector ? BaseMapType.satellite : BaseMapType.vector);
1508
1523
  }, u = () => {
1509
- var v, g;
1510
- i.value ? (v = s.value) == null || v.removeInteraction() : (g = s.value) == null || g.addInteraction(), i.value = !i.value;
1524
+ var h, g;
1525
+ i.value ? (h = s.value) == null || h.removeInteraction() : (g = s.value) == null || g.addInteraction(), i.value = !i.value;
1511
1526
  }, f = () => {
1512
- var v;
1513
- (v = s.value) == null || v.removeInteraction(), i.value = !1;
1527
+ var h;
1528
+ (h = s.value) == null || h.removeInteraction(), i.value = !1;
1514
1529
  };
1515
1530
  return onMounted(() => {
1516
1531
  nextTick(() => {
1517
- var v;
1518
- (v = n.value) == null || v.on("moveend", () => {
1519
- var M, S;
1520
- const g = (S = (M = n.value) == null ? void 0 : M.getView()) == null ? void 0 : S.getZoom();
1532
+ var h;
1533
+ (h = n.value) == null || h.on("moveend", () => {
1534
+ var T, S;
1535
+ const g = (S = (T = n.value) == null ? void 0 : T.getView()) == null ? void 0 : S.getZoom();
1521
1536
  g && (l.value = g);
1522
1537
  });
1523
1538
  });
1524
- }), (v, g) => (openBlock(), createElementBlock(Fragment, null, [
1539
+ }), (h, g) => (openBlock(), createElementBlock(Fragment, null, [
1525
1540
  createElementVNode("div", {
1526
- class: normalizeClass(`tool-panel ${v.viewMode}`)
1541
+ class: normalizeClass(`tool-panel ${h.viewMode}`)
1527
1542
  }, [
1528
- v.viewMode === "WxMiniprogram" ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
1543
+ h.viewMode === "WxMiniprogram" ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
1529
1544
  createElementVNode("div", _hoisted_2$1, [
1530
- v.vehicleMode === "ship" ? (openBlock(), createElementBlock("div", {
1545
+ h.vehicleMode === "ship" ? (openBlock(), createElementBlock("div", {
1531
1546
  key: 0,
1532
1547
  class: normalizeClass(["switch-btn", `${i.value && "active"}`]),
1533
1548
  onClick: u
@@ -1535,50 +1550,50 @@ const trackId = ref(""), cursor = ref(0), renderTrack = (e, t, n, o, r = "ship")
1535
1550
  createElementVNode("i", { class: "map-iconfont icon-measure" }, null, -1),
1536
1551
  createElementVNode("div", { class: "button-text" }, "测距", -1)
1537
1552
  ]), 2)) : createCommentVNode("", !0),
1538
- v.vehicleMode === "ship" ? (openBlock(), createElementBlock("div", {
1553
+ h.vehicleMode === "ship" ? (openBlock(), createElementBlock("div", {
1539
1554
  key: 1,
1540
- class: normalizeClass(`switch-btn ${c.value && "active"} ${(v.disableGreenDot || l.value >= unref(mapZoom).shipGreenDotMax) && "disabled"}`),
1555
+ class: normalizeClass(`switch-btn ${c.value && "active"} ${(h.disableGreenDot || l.value >= unref(mapZoom).shipGreenDotMax) && "disabled"}`),
1541
1556
  onClick: d
1542
1557
  }, g[6] || (g[6] = [
1543
1558
  createElementVNode("i", { class: "map-iconfont icon-ship" }, null, -1),
1544
1559
  createElementVNode("div", { class: "button-text" }, "绿点", -1)
1545
1560
  ]), 2)) : createCommentVNode("", !0),
1546
- v.vehicleMode === "ship" ? (openBlock(), createElementBlock("div", {
1561
+ h.vehicleMode === "ship" ? (openBlock(), createElementBlock("div", {
1547
1562
  key: 2,
1548
- class: normalizeClass(`switch-btn ${v.mapTileMode === unref(BaseMapType).satellite && "active"}`),
1549
- onClick: g[0] || (g[0] = (M) => m())
1563
+ class: normalizeClass(`switch-btn ${h.mapTileMode === unref(BaseMapType).satellite && "active"}`),
1564
+ onClick: g[0] || (g[0] = (T) => m())
1550
1565
  }, g[7] || (g[7] = [
1551
1566
  createElementVNode("i", { class: "map-iconfont icon-space" }, null, -1),
1552
1567
  createElementVNode("div", { class: "button-text" }, "图层", -1)
1553
1568
  ]), 2)) : createCommentVNode("", !0),
1554
- v.vehicleMode === "truck" ? (openBlock(), createElementBlock("div", {
1569
+ h.vehicleMode === "truck" ? (openBlock(), createElementBlock("div", {
1555
1570
  key: 3,
1556
- class: normalizeClass(`switch-btn ${v.mapTileMode === unref(BaseMapType).satellite && "active"}`),
1557
- onClick: g[1] || (g[1] = (M) => m())
1571
+ class: normalizeClass(`switch-btn ${h.mapTileMode === unref(BaseMapType).satellite && "active"}`),
1572
+ onClick: g[1] || (g[1] = (T) => m())
1558
1573
  }, g[8] || (g[8] = [
1559
1574
  createElementVNode("i", { class: "map-iconfont icon-space" }, null, -1),
1560
1575
  createElementVNode("div", { class: "button-text" }, "卫星", -1)
1561
1576
  ]), 2)) : createCommentVNode("", !0),
1562
- v.showTrackLayer ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
1577
+ h.showTrackLayer ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
1563
1578
  createElementVNode("div", {
1564
1579
  class: "switch-btn multiple",
1565
- onClick: g[2] || (g[2] = (M) => unref(playTrack)(unref(currentTrackId), 1))
1580
+ onClick: g[2] || (g[2] = (T) => unref(playTrack)(unref(currentTrackId), 1))
1566
1581
  }, g[9] || (g[9] = [
1567
1582
  createElementVNode("i", { class: "map-iconfont icon-play" }, null, -1),
1568
1583
  createElementVNode("div", { class: "button-text" }, "播放轨迹", -1)
1569
1584
  ])),
1570
1585
  createElementVNode("div", {
1571
1586
  class: "switch-btn multiple",
1572
- onClick: g[3] || (g[3] = (M) => unref(resetTrackView)())
1587
+ onClick: g[3] || (g[3] = (T) => unref(resetTrackView)())
1573
1588
  }, g[10] || (g[10] = [
1574
1589
  createElementVNode("i", { class: "map-iconfont icon-center" }, null, -1),
1575
1590
  createElementVNode("div", { class: "button-text" }, "轨迹居中", -1)
1576
1591
  ]))
1577
1592
  ], 64)) : createCommentVNode("", !0),
1578
- renderSlot(v.$slots, "toolPanel", {}, void 0, !0)
1593
+ renderSlot(h.$slots, "toolPanel", {}, void 0, !0)
1579
1594
  ])
1580
1595
  ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1581
- v.vehicleMode === "ship" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1596
+ h.vehicleMode === "ship" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1582
1597
  createElementVNode("div", {
1583
1598
  class: normalizeClass(["switch-btn", `${i.value && "active"}`]),
1584
1599
  onClick: u
@@ -1586,9 +1601,9 @@ const trackId = ref(""), cursor = ref(0), renderTrack = (e, t, n, o, r = "ship")
1586
1601
  createElementVNode("i", { class: "map-iconfont icon-measure" }, null, -1),
1587
1602
  createElementVNode("div", { class: "button-text" }, "测距", -1)
1588
1603
  ]), 2),
1589
- v.vehicleMode === "ship" ? (openBlock(), createElementBlock("div", {
1604
+ h.vehicleMode === "ship" ? (openBlock(), createElementBlock("div", {
1590
1605
  key: 0,
1591
- class: normalizeClass(`switch-btn ${c.value && "active"} ${(v.disableGreenDot || l.value >= unref(mapZoom).shipGreenDotMax) && "disabled"}`),
1606
+ class: normalizeClass(`switch-btn ${c.value && "active"} ${(h.disableGreenDot || l.value >= unref(mapZoom).shipGreenDotMax) && "disabled"}`),
1592
1607
  onClick: d
1593
1608
  }, g[12] || (g[12] = [
1594
1609
  createElementVNode("i", { class: "map-iconfont icon-ship" }, null, -1),
@@ -1596,7 +1611,7 @@ const trackId = ref(""), cursor = ref(0), renderTrack = (e, t, n, o, r = "ship")
1596
1611
  ]), 2)) : createCommentVNode("", !0)
1597
1612
  ], 64)) : createCommentVNode("", !0),
1598
1613
  createElementVNode("div", {
1599
- class: normalizeClass(["switch-btn", { active: v.mapTileMode === unref(BaseMapType).satellite }]),
1614
+ class: normalizeClass(["switch-btn", { active: h.mapTileMode === unref(BaseMapType).satellite }]),
1600
1615
  onClick: m
1601
1616
  }, g[13] || (g[13] = [
1602
1617
  createElementVNode("i", { class: "map-iconfont icon-space" }, null, -1),
@@ -1610,9 +1625,9 @@ const trackId = ref(""), cursor = ref(0), renderTrack = (e, t, n, o, r = "ship")
1610
1625
  ref_key: "measureRef",
1611
1626
  ref: s,
1612
1627
  visible: i.value,
1613
- "onUpdate:visible": g[4] || (g[4] = (M) => i.value = M),
1628
+ "onUpdate:visible": g[4] || (g[4] = (T) => i.value = T),
1614
1629
  onClose: f,
1615
- "view-mode": v.viewMode
1630
+ "view-mode": h.viewMode
1616
1631
  }, null, 8, ["visible", "view-mode"])) : createCommentVNode("", !0)
1617
1632
  ])
1618
1633
  ], 64));
@@ -1701,20 +1716,20 @@ const setTruckStyle = (e, t, n, o) => new Style({
1701
1716
  const m = c - 70, u = d - 68;
1702
1717
  let f = 180;
1703
1718
  const p = 56, y = "#FFFFFF";
1704
- let v = 176;
1719
+ let h = 176;
1705
1720
  const g = 52;
1706
- let M = "#164AFF", S = "#FFFFFF";
1707
- n === CAR_COLOR.YELLOW ? (v = 176, M = "#FFC81E", S = "rgba(0,0,0,0.88)") : n === CAR_COLOR.Y_GREEN && (f = 200, v = 196, M = "#8FED7C", S = "rgba(0,0,0,0.88)"), o != null && o.length && (f += o.length * 56), fillRectRadius(i, m, u, f, p, y), fillRectRadius(i, m + 2, u + 2, v, g, M), n === CAR_COLOR.Y_GREEN && fillRectRadius(i, m + 2, u + 2, 68, g, "#FFC81E"), i.save(), i.restore(), i.fillStyle = S, i.font = "bold 28px Arial", i.textAlign = "left", i.textBaseline = "middle";
1721
+ let T = "#164AFF", S = "#FFFFFF";
1722
+ n === CAR_COLOR.YELLOW ? (h = 176, T = "#FFC81E", S = "rgba(0,0,0,0.88)") : n === CAR_COLOR.Y_GREEN && (f = 200, h = 196, T = "#8FED7C", S = "rgba(0,0,0,0.88)"), o != null && o.length && (f += o.length * 56), fillRectRadius(i, m, u, f, p, y), fillRectRadius(i, m + 2, u + 2, h, g, T), n === CAR_COLOR.Y_GREEN && fillRectRadius(i, m + 2, u + 2, 68, g, "#FFC81E"), i.save(), i.restore(), i.fillStyle = S, i.font = "bold 28px Arial", i.textAlign = "left", i.textBaseline = "middle";
1708
1723
  const b = `${t.slice(0, 2) + " · " + t.slice(2)}`;
1709
1724
  if (i.fillText(b, m + 12, u + 32), i.save(), i.restore(), o != null && o.length) {
1710
- const F = i.measureText(b).width + 12;
1725
+ const $ = i.measureText(b).width + 12;
1711
1726
  let x = 0;
1712
- o.forEach((h) => {
1713
- h === DEVICE_TYPE.CAMERA && (i.drawImage(cameraImage, c - 54 + F + x * 56, d - 64, 50, 50), ++x), h === DEVICE_TYPE.LOAD && (i.drawImage(loadImage, c - 54 + F + x * 56, d - 64, 50, 50), ++x);
1727
+ o.forEach((v) => {
1728
+ v === DEVICE_TYPE.CAMERA && (i.drawImage(cameraImage, c - 54 + $ + x * 56, d - 64, 50, 50), ++x), v === DEVICE_TYPE.LOAD && (i.drawImage(loadImage, c - 54 + $ + x * 56, d - 64, 50, 50), ++x);
1714
1729
  });
1715
1730
  }
1716
- const C = dotImage$1;
1717
- i.drawImage(C, c + f / 2 - 90, d, 50 / s, 50 / s), i.restore();
1731
+ const V = dotImage$1;
1732
+ i.drawImage(V, c + f / 2 - 90, d, 50 / s, 50 / s), i.restore();
1718
1733
  }
1719
1734
  }), mapInstance$2 = ref(), renderDashboardSetInstance = (e) => mapInstance$2.value = e;
1720
1735
  ref([]);
@@ -1802,10 +1817,10 @@ const validateSquareLimit = (e) => {
1802
1817
  const i = (o - n) * 111, s = (l - r) * 111;
1803
1818
  squareLimitError = i > 150 || s > 150;
1804
1819
  };
1805
- let storeFeature;
1820
+ let storeFeature, callbackFunction = null;
1806
1821
  const addInteraction = (e) => {
1807
1822
  var o, r;
1808
- drawVector || init(), drawnState = "undrawn", layerState = "drawn", (o = mapInstance.value) == null || o.addLayer(drawVector);
1823
+ e && (callbackFunction = e), drawVector || init(), drawnState = "undrawn", layerState = "drawn", (o = mapInstance.value) == null || o.addLayer(drawVector);
1809
1824
  const t = new Style({
1810
1825
  stroke: new Stroke({
1811
1826
  color: "rgba(255, 255, 255, 1)",
@@ -1843,7 +1858,7 @@ const addInteraction = (e) => {
1843
1858
  if (l.feature.getGeometry()) {
1844
1859
  storeFeature = l.feature;
1845
1860
  const s = endFn(l.feature);
1846
- s != null && s.length && e && e(s);
1861
+ s != null && s.length && callbackFunction && callbackFunction(s);
1847
1862
  }
1848
1863
  if (sketch = null, measureTooltipElement = null, createMeasureTooltip(), n && unByKey(n), drawnState = "drawend", draw) {
1849
1864
  const s = mapInstance.value.getInteractions().getArray().find((c) => c.ol_uid === draw.ol_uid);
@@ -1878,7 +1893,7 @@ const addInteraction = (e) => {
1878
1893
  }
1879
1894
  }, initFeature = (e) => {
1880
1895
  var t, n;
1881
- if (layerState = "drawn", storeFeature) {
1896
+ if (e && (callbackFunction = e), layerState = "drawn", storeFeature) {
1882
1897
  const o = storeFeature.getGeometry();
1883
1898
  if (!o) return;
1884
1899
  const r = formatUtils.formatArea(o, LENGTH_UNIT.NM);
@@ -1886,7 +1901,7 @@ const addInteraction = (e) => {
1886
1901
  <span class="text">面积:${r}${lineLimitError || squareLimitError ? '<span class="error pl-12">超出可以绘画的距离</span>' : ""}</span>
1887
1902
  `), (t = drawVector.getSource()) == null || t.addFeature(storeFeature);
1888
1903
  const l = endFn(storeFeature);
1889
- l != null && l.length && e && e(l);
1904
+ l != null && l.length && callbackFunction && callbackFunction(l);
1890
1905
  const i = getCenter(storeFeature.getGeometry().getExtent());
1891
1906
  (n = mapInstance.value) == null || n.getView().setCenter(i);
1892
1907
  }
@@ -1946,8 +1961,8 @@ const setPointStyle = (e, t, n) => {
1946
1961
  d.scale(m, m);
1947
1962
  let [u, f] = s;
1948
1963
  u = u / m, f = f / m, d.font = "12px Arial";
1949
- const p = d.measureText(t).width, y = u - p / 2, v = f - 10, g = p + 4, M = 20, S = e && i || o;
1950
- if (fillRectRadius(d, y, v + 30, g, M, S), d.save(), d.restore(), d.fillStyle = e ? "#FFFFFF" : "#000000", d.textAlign = "center", d.textBaseline = "middle", d.fillText(t, y + (p + 4) / 2, v + 41), d.save(), d.restore(), r || l) {
1964
+ const p = d.measureText(t).width, y = u - p / 2, h = f - 10, g = p + 4, T = 20, S = e && i || o;
1965
+ if (fillRectRadius(d, y, h + 30, g, T, S), d.save(), d.restore(), d.fillStyle = e ? "#FFFFFF" : "#000000", d.textAlign = "center", d.textBaseline = "middle", d.fillText(t, y + (p + 4) / 2, h + 41), d.save(), d.restore(), r || l) {
1951
1966
  const b = e ? dotActiveImage : dotImage;
1952
1967
  d.drawImage(b, u - b.width / 2, f - b.height / 2, 40 / m, 40 / m);
1953
1968
  }
@@ -2107,12 +2122,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2107
2122
  provide("mapInstance", o);
2108
2123
  const r = ref(null), l = ref(null), i = ref(null), s = n, c = e, d = ref(c.zoom || mapZoom.default), m = ref(!1), u = ref(!0), f = ref(!0);
2109
2124
  let p;
2110
- ((h) => {
2111
- h[h.tiandituTile = new TileLayer({ source: new XYZ({ url: baseMap.tiandituTile }) })] = "tiandituTile", h[h.tiandituTileMark = new TileLayer({ source: new XYZ({ url: baseMap.tiandituTileMark }) })] = "tiandituTileMark", h[h.tiandituImgTile = new TileLayer({ source: new XYZ({ url: baseMap.tiandituImgTile }), visible: !1 })] = "tiandituImgTile", h[h.tiandituImgTileMark = new TileLayer({ source: new XYZ({ url: baseMap.tiandituImgTileMark }), visible: !1 })] = "tiandituImgTileMark", h[h.greenMark = new TileLayer({ source: new XYZ({ url: baseMap.greenTile }) })] = "greenMark";
2125
+ ((v) => {
2126
+ v[v.tiandituTile = new TileLayer({ source: new XYZ({ url: baseMap.tiandituTile }) })] = "tiandituTile", v[v.tiandituTileMark = new TileLayer({ source: new XYZ({ url: baseMap.tiandituTileMark }) })] = "tiandituTileMark", v[v.tiandituImgTile = new TileLayer({ source: new XYZ({ url: baseMap.tiandituImgTile }), visible: !1 })] = "tiandituImgTile", v[v.tiandituImgTileMark = new TileLayer({ source: new XYZ({ url: baseMap.tiandituImgTileMark }), visible: !1 })] = "tiandituImgTileMark", v[v.greenMark = new TileLayer({ source: new XYZ({ url: baseMap.greenTile }) })] = "greenMark";
2112
2127
  })(p || (p = {}));
2113
2128
  const y = () => {
2114
- var w, k;
2115
- const h = {
2129
+ var w, L;
2130
+ const v = {
2116
2131
  projection: projection.mercator,
2117
2132
  // 地图投影坐标系
2118
2133
  zoom: c.zoom || (c.vehicleMode === "ship" ? mapZoom.default : mapZoom.truckDefault),
@@ -2140,68 +2155,68 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2140
2155
  p.tiandituImgTileMark,
2141
2156
  p.greenMark
2142
2157
  ],
2143
- view: new View(h)
2144
- }), v(), (w = l.value) == null || w.setScaleLine(c.vehicleMode === "ship" && "nautical"), (k = o.value) == null || k.on("moveend", b), g(h.zoom < mapZoom.shipGreenDotMax), S(c.vehicleMode === "ship" || c.viewMode === "findShip" ? BaseMapType.satellite : BaseMapType.vector), c.viewMode === "findShip" && c.mmsi && c.shipData && nextTick(() => {
2158
+ view: new View(v)
2159
+ }), h(), (w = l.value) == null || w.setScaleLine(c.vehicleMode === "ship" && "nautical"), (L = o.value) == null || L.on("moveend", b), g(v.zoom < mapZoom.shipGreenDotMax), S(c.vehicleMode === "ship" || c.viewMode === "findShip" ? BaseMapType.satellite : BaseMapType.vector), c.viewMode === "findShip" && c.mmsi && c.shipData && nextTick(() => {
2145
2160
  findShip(String(c.mmsi), c.shipData);
2146
2161
  });
2147
2162
  };
2148
2163
  onMounted(() => {
2149
2164
  y();
2150
2165
  });
2151
- const v = () => {
2166
+ const h = () => {
2152
2167
  o.value && (renderCustomOverlaySetInstance(o.value), renderTruckSetInstance(o.value), drawPolygonSetInstance(o.value), renderShipStyleSetInstance(o.value), renderTrackStyleSetInstance(o.value), renderDashboardSetInstance(o.value), renderMarkerSetInstance(o.value), renderShipSetInstance(o.value), renderTrackSetInstance(o.value));
2153
- }, g = (h) => {
2168
+ }, g = (v) => {
2154
2169
  var w;
2155
- c.vehicleMode !== "ship" && (h = !1), (w = o.value) == null || w.getLayers().forEach((k) => {
2156
- k.ol_uid === p.greenMark.ol_uid && (k.setVisible(h), u.value = h);
2170
+ c.vehicleMode !== "ship" && (v = !1), (w = o.value) == null || w.getLayers().forEach((L) => {
2171
+ L.ol_uid === p.greenMark.ol_uid && (L.setVisible(v), u.value = v);
2157
2172
  });
2158
- }, M = ref(BaseMapType.satellite), S = (h) => {
2173
+ }, T = ref(BaseMapType.satellite), S = (v) => {
2159
2174
  var w;
2160
- M.value = h, (w = o.value) == null || w.getLayers().forEach((k) => {
2161
- (k.ol_uid === p.tiandituTile.ol_uid || k.ol_uid === p.tiandituTileMark.ol_uid || k.ol_uid === p.tiandituImgTile.ol_uid || k.ol_uid === p.tiandituImgTileMark.ol_uid) && k.setVisible(!1), (h === BaseMapType.vector && (k.ol_uid === p.tiandituTile.ol_uid || k.ol_uid === p.tiandituTileMark.ol_uid) || h === BaseMapType.satellite && (k.ol_uid === p.tiandituImgTile.ol_uid || k.ol_uid === p.tiandituImgTileMark.ol_uid)) && k.setVisible(!0);
2175
+ T.value = v, (w = o.value) == null || w.getLayers().forEach((L) => {
2176
+ (L.ol_uid === p.tiandituTile.ol_uid || L.ol_uid === p.tiandituTileMark.ol_uid || L.ol_uid === p.tiandituImgTile.ol_uid || L.ol_uid === p.tiandituImgTileMark.ol_uid) && L.setVisible(!1), (v === BaseMapType.vector && (L.ol_uid === p.tiandituTile.ol_uid || L.ol_uid === p.tiandituTileMark.ol_uid) || v === BaseMapType.satellite && (L.ol_uid === p.tiandituImgTile.ol_uid || L.ol_uid === p.tiandituImgTileMark.ol_uid)) && L.setVisible(!0);
2162
2177
  });
2163
2178
  }, b = () => {
2164
- const h = o.value.getView(), w = h.getZoom();
2165
- w && C(w);
2166
- const k = h.calculateExtent(o.value.getSize());
2167
- k && w && F(k, w);
2168
- }, C = (h) => {
2169
- var L, T, E, V, P;
2170
- d.value = h, g(h < mapZoom.shipGreenDotMax);
2171
- const w = (L = o.value) == null ? void 0 : L.getLayers(), k = c.vehicleMode === "ship" ? w == null ? void 0 : w.getArray().find((N) => N.ol_uid === p.greenMark.ol_uid) : void 0;
2172
- showTrackLayer.value ? (f.value = !1, k == null || k.setVisible(!1), (T = shipsLayer.value) == null || T.setVisible(!1), (E = largeAmountShipsLayer.value) == null || E.setVisible(!1)) : !m.value && u.value && h <= mapZoom.shipGreenDotMax ? (f.value = !0, k == null || k.setVisible(!0), (V = shipsLayer.value) == null || V.setVisible(!1), (P = largeAmountShipsLayer.value) == null || P.setVisible(!1)) : (f.value = !1, k == null || k.setVisible(!1)), s("zoomChanged", h);
2173
- }, F = (h, w) => {
2174
- const k = transform([h[0], h[1]], projection.mercator, projection.data), L = transform([h[2], h[3]], projection.mercator, projection.data);
2175
- s("extentChanged", { extent: [k, L], zoom: w });
2179
+ const v = o.value.getView(), w = v.getZoom();
2180
+ w && V(w);
2181
+ const L = v.calculateExtent(o.value.getSize());
2182
+ L && w && $(L, w);
2183
+ }, V = (v) => {
2184
+ var k, M, E, C, F;
2185
+ d.value = v, g(v < mapZoom.shipGreenDotMax);
2186
+ const w = (k = o.value) == null ? void 0 : k.getLayers(), L = c.vehicleMode === "ship" ? w == null ? void 0 : w.getArray().find((P) => P.ol_uid === p.greenMark.ol_uid) : void 0;
2187
+ showTrackLayer.value ? (f.value = !1, L == null || L.setVisible(!1), (M = shipsLayer.value) == null || M.setVisible(!1), (E = largeAmountShipsLayer.value) == null || E.setVisible(!1)) : !m.value && u.value && v <= mapZoom.shipGreenDotMax ? (f.value = !0, L == null || L.setVisible(!0), (C = shipsLayer.value) == null || C.setVisible(!1), (F = largeAmountShipsLayer.value) == null || F.setVisible(!1)) : (f.value = !1, L == null || L.setVisible(!1)), s("zoomChanged", v);
2188
+ }, $ = (v, w) => {
2189
+ const L = transform([v[0], v[1]], projection.mercator, projection.data), k = transform([v[2], v[3]], projection.mercator, projection.data);
2190
+ s("extentChanged", { extent: [L, k], zoom: w });
2176
2191
  };
2177
2192
  return t({
2178
2193
  mapInstance: o,
2179
2194
  initMap: y,
2180
- pointRender: (h, w) => new PointMarkerClass(h, w),
2195
+ pointRender: (v, w) => new PointMarkerClass(v, w),
2181
2196
  renderTrucksMarker,
2182
2197
  renderShip: renderShips,
2183
- renderTrack: (h, w, k) => {
2184
- var L, T;
2185
- currentTrackId.value = h, showTrackLayer.value = !0, m.value = !0, hiddenAllShips(), (T = (L = largeAmountShipsLayer.value) == null ? void 0 : L.getSource()) == null || T.clear(), renderTrack(h, w, k, LENGTH_UNIT.NM);
2198
+ renderTrack: (v, w, L) => {
2199
+ var k, M;
2200
+ currentTrackId.value = v, showTrackLayer.value = !0, m.value = !0, hiddenAllShips(), (M = (k = largeAmountShipsLayer.value) == null ? void 0 : k.getSource()) == null || M.clear(), renderTrack(v, c.vehicleMode === "ship" ? w.reverse() : w, L, LENGTH_UNIT.NM);
2186
2201
  },
2187
2202
  findTruck,
2188
2203
  removeTruckIcon,
2189
2204
  clearAllTruck,
2190
2205
  closeTrack: () => {
2191
- var h, w;
2192
- showTrackLayer.value = !1, (h = shipTrackVectorLayer.value) == null || h.setVisible(!1), (w = selectShipsLayer.value) == null || w.setVisible(!0), m.value = !1, g(d.value < mapZoom.shipGreenDotMax), allTracks.value = [], stopAnimation();
2206
+ var v, w;
2207
+ showTrackLayer.value = !1, (v = shipTrackVectorLayer.value) == null || v.setVisible(!1), (w = selectShipsLayer.value) == null || w.setVisible(!0), m.value = !1, g(d.value < mapZoom.shipGreenDotMax), allTracks.value = [], stopAnimation();
2193
2208
  },
2194
2209
  closeTruckTrack: () => {
2195
- var h, w;
2196
- showTrackLayer.value = !1, (h = shipTrackVectorLayer.value) == null || h.setVisible(!1), (w = selectShipsLayer.value) == null || w.setVisible(!0), stopAnimation();
2210
+ var v, w;
2211
+ showTrackLayer.value = !1, (v = shipTrackVectorLayer.value) == null || v.setVisible(!1), (w = selectShipsLayer.value) == null || w.setVisible(!0), stopAnimation();
2197
2212
  },
2198
2213
  resetTrackView,
2199
2214
  playTrack,
2200
2215
  clearSelectFeature,
2201
2216
  findShip,
2202
- focusShip: (h, w, k = !0) => {
2203
- var L, T;
2204
- hiddenOrther.value = k, (L = shipsLayer.value) == null || L.setVisible(!k), (T = largeAmountShipsLayer.value) == null || T.setVisible(!1), findShip(h, w);
2217
+ focusShip: (v, w, L = !0) => {
2218
+ var k, M;
2219
+ hiddenOrther.value = L, (k = shipsLayer.value) == null || k.setVisible(!L), (M = largeAmountShipsLayer.value) == null || M.setVisible(!1), findShip(v, w);
2205
2220
  },
2206
2221
  showTracks,
2207
2222
  removeAllTrackLayer,
@@ -2209,30 +2224,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2209
2224
  rerenderShip,
2210
2225
  switchGreenDot: () => g(!1),
2211
2226
  zoomTruckIcon,
2212
- renderTruckTrack: (h, w, k) => {
2213
- showTrackLayer.value = !0, renderTrack(h, w, k, LENGTH_UNIT.KM, "truck");
2227
+ renderTruckTrack: (v, w, L) => {
2228
+ showTrackLayer.value = !0, renderTrack(v, w, L, LENGTH_UNIT.KM, "truck");
2214
2229
  },
2215
2230
  removerLayer: removeShipTrackLineFeatureByIndex,
2216
2231
  renderMarker,
2217
- setMarkerPosition: (h) => {
2218
- m.value = !0, setMarkerPosition(h);
2232
+ setMarkerPosition: (v) => {
2233
+ m.value = !0, setMarkerPosition(v);
2219
2234
  },
2220
2235
  getZoomAndCenter: () => {
2221
- var T;
2222
- const h = (T = o.value) == null ? void 0 : T.getView();
2223
- if (!h) return null;
2224
- const w = Math.round(Number(h.getZoom())), { lon: k, lat: L } = transformUtils.mercatorToLonLat(h.getCenter());
2225
- return { zoom: w, center: [k, L] };
2236
+ var M;
2237
+ const v = (M = o.value) == null ? void 0 : M.getView();
2238
+ if (!v) return null;
2239
+ const w = Math.round(Number(v.getZoom())), { lon: L, lat: k } = transformUtils.mercatorToLonLat(v.getCenter());
2240
+ return { zoom: w, center: [L, k] };
2226
2241
  },
2227
- setCenter: (h) => {
2228
- var L;
2229
- const w = (L = o.value) == null ? void 0 : L.getView();
2242
+ setCenter: (v) => {
2243
+ var k;
2244
+ const w = (k = o.value) == null ? void 0 : k.getView();
2230
2245
  if (!w) return null;
2231
- const k = new Point(h);
2232
- w.setCenter(transform(k.getCoordinates(), projection.data, projection.mercator));
2246
+ const L = new Point(v);
2247
+ w.setCenter(transform(L.getCoordinates(), projection.data, projection.mercator));
2233
2248
  },
2234
2249
  drawPolygonTool,
2235
- setMapInstance: v,
2250
+ setMapInstance: h,
2236
2251
  config: {
2237
2252
  mapZoom,
2238
2253
  projection
@@ -2241,7 +2256,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2241
2256
  transform: transformUtils,
2242
2257
  format: formatUtils
2243
2258
  }
2244
- }), (h, w) => (openBlock(), createElementBlock("div", {
2259
+ }), (v, w) => (openBlock(), createElementBlock("div", {
2245
2260
  class: "map-page map-container",
2246
2261
  ref_key: "pageRef",
2247
2262
  ref: r
@@ -2251,20 +2266,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2251
2266
  class: "map"
2252
2267
  }, null, -1)),
2253
2268
  createVNode(ToolPanel, {
2254
- "vehicle-mode": h.vehicleMode,
2255
- "view-mode": h.viewMode,
2269
+ "vehicle-mode": v.vehicleMode,
2270
+ "view-mode": v.viewMode,
2256
2271
  "disable-green-dot": m.value,
2257
2272
  "show-track-layer": unref(showTrackLayer),
2258
- "map-tile-mode": M.value,
2273
+ "map-tile-mode": T.value,
2259
2274
  onSwitchGreenDot: g,
2260
2275
  onSwitchMapTile: S
2261
2276
  }, {
2262
2277
  toolPanel: withCtx(() => [
2263
- renderSlot(h.$slots, "toolPanel", {}, void 0, !0)
2278
+ renderSlot(v.$slots, "toolPanel", {}, void 0, !0)
2264
2279
  ]),
2265
2280
  _: 3
2266
2281
  }, 8, ["vehicle-mode", "view-mode", "disable-green-dot", "show-track-layer", "map-tile-mode"]),
2267
- h.viewMode !== "WxMiniprogram" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
2282
+ v.viewMode !== "WxMiniprogram" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
2268
2283
  createVNode(ScaleLine, {
2269
2284
  ref_key: "scaleLineControl",
2270
2285
  ref: l
@@ -2274,10 +2289,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2274
2289
  ref: i
2275
2290
  }, null, 512)
2276
2291
  ], 64)) : createCommentVNode("", !0),
2277
- createVNode(Copyright, { type: h.logoType }, null, 8, ["type"])
2292
+ createVNode(Copyright, { type: v.logoType }, null, 8, ["type"])
2278
2293
  ], 512));
2279
2294
  }
2280
- }), Map = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8c8bbb09"]]), ZhMap = withInstall(Map);
2295
+ }), Map = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8e678e00"]]), ZhMap = withInstall(Map);
2281
2296
  export {
2282
2297
  BaseMapType as B,
2283
2298
  CDN_URL as C,