zhihao-ui 1.3.41 → 1.3.42-alpha

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.
Files changed (48) hide show
  1. package/dist/es/{Map-4bZtTD6G.js → Map-BNx8cwZB.js} +169 -163
  2. package/dist/es/index.js +1 -1
  3. package/dist/types/components/CascaderLoadMore/CascaderLoadMore.vue.d.ts +197 -0
  4. package/dist/types/components/CascaderLoadMore/index.d.ts +369 -0
  5. package/dist/types/components/CascaderLoadMore/types.d.ts +7 -0
  6. package/dist/types/components/Map/components/copyright.vue.d.ts +36 -0
  7. package/dist/types/components/Map/components/measure.vue.d.ts +23 -0
  8. package/dist/types/components/Map/components/toolPanel.vue.d.ts +40 -0
  9. package/dist/types/components/Map/config.d.ts +32 -0
  10. package/dist/types/components/Map/enum/car.d.ts +5 -0
  11. package/dist/types/components/Map/enum/device.d.ts +8 -0
  12. package/dist/types/components/Map/enum/index.d.ts +5 -0
  13. package/dist/types/components/Map/enum/openLayers.d.ts +10 -0
  14. package/dist/types/components/Map/enum/ship.d.ts +50 -0
  15. package/dist/types/components/Map/interface/common/BaseEntity.d.ts +29 -0
  16. package/dist/types/components/Map/interface/common/page.d.ts +34 -0
  17. package/dist/types/components/Map/interface/entity/dashboard.d.ts +16 -0
  18. package/dist/types/components/Map/interface/entity/map.d.ts +36 -0
  19. package/dist/types/components/Map/interface/entity/point.d.ts +10 -0
  20. package/dist/types/components/Map/interface/entity/queryLicenseResponse.d.ts +86 -0
  21. package/dist/types/components/Map/interface/entity/render.d.ts +57 -0
  22. package/dist/types/components/Map/interface/entity/ship.d.ts +361 -0
  23. package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +210 -0
  24. package/dist/types/components/Map/interface/entity/shipMapData.d.ts +27 -0
  25. package/dist/types/components/Map/interface/entity/shipMarker.d.ts +8 -0
  26. package/dist/types/components/Map/interface/entity/shipTrack.d.ts +56 -0
  27. package/dist/types/components/Map/interface/entity/vehicle.d.ts +345 -0
  28. package/dist/types/components/Map/interface/vo/vehicleVo.d.ts +20 -0
  29. package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +15 -0
  30. package/dist/types/components/Map/render/canvasRender/geometry.d.ts +22 -0
  31. package/dist/types/components/Map/render/canvasRender/renderCustomOverlay.d.ts +5 -0
  32. package/dist/types/components/Map/render/canvasRender/renderPointStyle.d.ts +10 -0
  33. package/dist/types/components/Map/render/canvasRender/renderShipStyle.d.ts +5 -0
  34. package/dist/types/components/Map/render/canvasRender/renderTrackStyle.d.ts +12 -0
  35. package/dist/types/components/Map/render/canvasRender/renderTruckStyle.d.ts +3 -0
  36. package/dist/types/components/Map/render/drawPolygon.d.ts +10 -0
  37. package/dist/types/components/Map/render/renderDashboard.d.ts +12 -0
  38. package/dist/types/components/Map/render/renderMarker.d.ts +7 -0
  39. package/dist/types/components/Map/render/renderPoint.d.ts +80 -0
  40. package/dist/types/components/Map/render/renderShip.d.ts +20 -0
  41. package/dist/types/components/Map/render/renderTrack.d.ts +12 -0
  42. package/dist/types/components/Map/render/renderTruck.d.ts +10 -0
  43. package/dist/types/components/Map/utils/common.d.ts +27 -0
  44. package/dist/types/components/Map/utils/format.d.ts +10 -0
  45. package/dist/types/components/Map/utils/store.d.ts +32 -0
  46. package/dist/types/components/Map/utils/transform.d.ts +44 -0
  47. package/dist/umd/index.umd.cjs +2 -2
  48. package/package.json +1 -1
@@ -73,23 +73,23 @@ const Kt = { id: "scale-line-container" }, _t = /* @__PURE__ */ je({
73
73
  var fe = ((e) => (e.vectorTile = `https://t0.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${Ve}`, e.vectorTileMark = `https://t0.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${Ve}`, e.satelliteImgTile = `https://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${Ve}`, e.satelliteImgTileMark = `https://t0.tianditu.gov.cn/cia_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${Ve}`, e.greenTile = `${gt}/map/tile/{z}/{x}/{y}.png`, e))(fe || {}), ke = /* @__PURE__ */ ((e) => (e[e.M = 1] = "M", e[e.KM = 2] = "KM", e[e.NM = 3] = "NM", e))(ke || {});
74
74
  function ro() {
75
75
  const e = oe(), n = () => e.value, s = () => n().getView(), l = () => {
76
- var x;
77
- return (x = s()) == null ? void 0 : x.getZoom();
78
- }, i = (x) => {
76
+ var w;
77
+ return (w = s()) == null ? void 0 : w.getZoom();
78
+ }, i = (w) => {
79
79
  var L;
80
- (L = s()) == null || L.setZoom(x);
81
- }, r = (x, L) => {
80
+ (L = s()) == null || L.setZoom(w);
81
+ }, r = (w, L) => {
82
82
  var $;
83
- ($ = s()) == null || $.setCenter(ee([x, L]));
83
+ ($ = s()) == null || $.setCenter(ee([w, L]));
84
84
  }, a = () => {
85
85
  var L;
86
- const x = (L = s()) == null ? void 0 : L.getCenter();
87
- return At(x);
88
- }, m = () => {
89
- var x;
90
- return (x = n()) == null ? void 0 : x.getSize();
91
- }, t = new rt(), o = (x, L) => {
92
- w(L);
86
+ const w = (L = s()) == null ? void 0 : L.getCenter();
87
+ return At(w);
88
+ }, x = () => {
89
+ var w;
90
+ return (w = n()) == null ? void 0 : w.getSize();
91
+ }, t = new rt(), o = (w, L) => {
92
+ m(L);
93
93
  const $ = {
94
94
  zoom: L.zoom,
95
95
  center: ee(L.center),
@@ -100,7 +100,7 @@ function ro() {
100
100
  multiWorld: !0
101
101
  };
102
102
  let T = {
103
- target: x,
103
+ target: w,
104
104
  controls: Dt({
105
105
  zoom: !1
106
106
  }),
@@ -114,34 +114,34 @@ function ro() {
114
114
  };
115
115
  const g = new rt(T);
116
116
  e.value = g;
117
- }, w = (x) => {
117
+ }, m = (w) => {
118
118
  t.set("vectorTile", new we({
119
119
  source: new xe({ url: fe.vectorTile }),
120
- visible: x.layerType === "vector",
120
+ visible: w.layerType === "vector",
121
121
  zIndex: 0,
122
122
  preload: 1,
123
123
  className: "vector"
124
124
  })), t.set("vectorTileMark", new we({
125
125
  source: new xe({ url: fe.vectorTileMark }),
126
- visible: x.layerType === "vector",
126
+ visible: w.layerType === "vector",
127
127
  zIndex: 1,
128
128
  preload: 1,
129
129
  className: "vector"
130
130
  })), t.set("satelliteImgTile", new we({
131
131
  source: new xe({ url: fe.satelliteImgTile }),
132
- visible: x.layerType === "satellite",
132
+ visible: w.layerType === "satellite",
133
133
  zIndex: 0,
134
134
  preload: 1,
135
135
  className: "satellite"
136
136
  })), t.set("satelliteImgTileMark", new we({
137
137
  source: new xe({ url: fe.satelliteImgTileMark }),
138
- visible: x.layerType === "satellite",
138
+ visible: w.layerType === "satellite",
139
139
  zIndex: 1,
140
140
  preload: 1,
141
141
  className: "satellite"
142
142
  })), t.set("greenMark", new we({
143
143
  source: new xe({ url: fe.greenTile }),
144
- visible: x.showGreenLayer,
144
+ visible: w.showGreenLayer,
145
145
  zIndex: 2,
146
146
  className: "greenTile"
147
147
  }));
@@ -153,9 +153,9 @@ function ro() {
153
153
  setZoom: i,
154
154
  setCenter: r,
155
155
  getCenter: a,
156
- getSize: m,
156
+ getSize: x,
157
157
  initMap: o,
158
- setBaseLayerMap: w
158
+ setBaseLayerMap: m
159
159
  };
160
160
  }
161
161
  const Ue = function(e, n) {
@@ -223,13 +223,13 @@ const st = (e) => {
223
223
  return l !== 0 && (r = `${String(l).padStart(2, "0")}时${r}`), s !== 0 && (r = `${String(s).padStart(2, "0")}天${r}`), r;
224
224
  }, co = (e, n) => {
225
225
  let s = null;
226
- const l = async (w) => {
227
- if (!e || (console.log("vehicleInfo", w), !(w != null && w.lon && (w != null && w.lat)))) return;
228
- const x = Math.abs(Number(w.lon)) > 180 ? Ue(w.lon, w.lat) : [w.lon, w.lat];
229
- i(w, ee(x));
230
- const L = e == null ? void 0 : e.getView(), $ = new ce(x);
226
+ const l = async (m) => {
227
+ if (!e || (console.log("vehicleInfo", m), !(m != null && m.lon && (m != null && m.lat)))) return;
228
+ const w = Math.abs(Number(m.lon)) > 180 ? Ue(m.lon, m.lat) : [m.lon, m.lat];
229
+ i(m, ee(w));
230
+ const L = e == null ? void 0 : e.getView(), $ = new ce(w);
231
231
  L.setCenter(Me($.getCoordinates(), _.data, _.mercator));
232
- }, i = (w, x) => {
232
+ }, i = (m, w) => {
233
233
  const L = `${gt}map/car-icon.gif`;
234
234
  s || (s = new de({
235
235
  element: document.createElement("div"),
@@ -239,26 +239,26 @@ const st = (e) => {
239
239
  }), e.addOverlay(s));
240
240
  const $ = s.getElement();
241
241
  $.style.backgroundImage = `url(${L})`, $.style.width = "80px", $.style.height = "80px";
242
- const T = (w == null ? void 0 : w.drc) || "";
243
- $.style.transform = `rotate(${T}deg)`, $.style.backgroundSize = "cover", s == null || s.setPosition(x);
242
+ const T = (m == null ? void 0 : m.drc) || "";
243
+ $.style.transform = `rotate(${T}deg)`, $.style.backgroundSize = "cover", s == null || s.setPosition(w);
244
244
  };
245
245
  return {
246
246
  location: l,
247
247
  remove: () => {
248
- const w = s == null ? void 0 : s.getElement();
249
- w && (w.innerHTML = "");
248
+ const m = s == null ? void 0 : s.getElement();
249
+ m && (m.innerHTML = "");
250
250
  },
251
- renderTrack: (w, x, L) => {
252
- n.render(w, x, L, "truck", 1e3);
251
+ renderTrack: (m, w, L) => {
252
+ n.render(m, w, L, "truck", 1e3);
253
253
  },
254
- setCenter: (w) => {
255
- n.setCenter(w);
254
+ setCenter: (m) => {
255
+ n.setCenter(m);
256
256
  },
257
257
  closeTrack: () => {
258
258
  n.close();
259
259
  },
260
- playTrack: (w, x) => {
261
- n.play(w, x);
260
+ playTrack: (m, w) => {
261
+ n.play(m, w);
262
262
  }
263
263
  };
264
264
  };
@@ -268,12 +268,12 @@ const ao = (e) => {
268
268
  let l = null;
269
269
  const i = "--";
270
270
  let r = null;
271
- const a = document.createElement("div"), m = new de({
271
+ const a = document.createElement("div"), x = new de({
272
272
  element: a,
273
273
  positioning: "top-left",
274
274
  className: "track-label-popup"
275
275
  });
276
- let t, o, w, x, L, $ = !1, T = Date.now(), g, M = 0, p = null, h = 20;
276
+ let t, o, m, w, L, $ = !1, T = Date.now(), g, M = 0, p = null, h = 20;
277
277
  const O = 8, B = [], G = (c) => {
278
278
  var u;
279
279
  for (B.unshift(c); B.length > O; ) {
@@ -299,7 +299,7 @@ const ao = (e) => {
299
299
  return E.center = [E.lon, E.lat], E.centerPoint = so(E.center), E.time = dt(E.createdAt).format("YYYY-MM-DD HH:mm:ss"), E.id = c, E.index = A, E;
300
300
  }), v;
301
301
  }, S = async (c, u, v, k = "ship", C = 200) => {
302
- if (!e || JSON.stringify(s[c]) === JSON.stringify(u) && l === c || (u = u == null ? void 0 : u.reverse(), m && k === "ship" && (e != null && e.getOverlays().getArray().includes(m) || e.addOverlay(m)), (u == null ? void 0 : u.length) < 2))
302
+ if (!e || JSON.stringify(s[c]) === JSON.stringify(u) && l === c || (u = u == null ? void 0 : u.reverse(), x && k === "ship" && (e != null && e.getOverlays().getArray().includes(x) || e.addOverlay(x)), (u == null ? void 0 : u.length) < 2))
303
303
  return;
304
304
  G(c), l = c, s[c] = u, h = C;
305
305
  const E = Object.keys(s).findIndex((A) => A === c) || 0;
@@ -353,9 +353,9 @@ const ao = (e) => {
353
353
  if (console.log("trackId-data", k), c && k && u === "hover") {
354
354
  e.getTargetElement().style.cursor = k ? "pointer" : "";
355
355
  const C = H(k), E = v == null ? void 0 : v.coordinate;
356
- E && (a.querySelector(".popup-content"), a.innerHTML = C, m == null || m.setPosition(E));
356
+ E && (a.querySelector(".popup-content"), a.innerHTML = C, x == null || x.setPosition(E));
357
357
  } else
358
- m && m.setPosition(void 0);
358
+ x && x.setPosition(void 0);
359
359
  } catch (k) {
360
360
  console.error("handleTrackMapEvent", k);
361
361
  }
@@ -660,12 +660,12 @@ const ao = (e) => {
660
660
  it(A, "array"),
661
661
  it(V, "array")
662
662
  ) * Math.PI / 180;
663
- (q = Ge.getText()) == null || q.setRotation(X), x.setCoordinates(E);
663
+ (q = Ge.getText()) == null || q.setRotation(X), w.setCoordinates(E);
664
664
  const U = Bt(c);
665
- U.setStyle(Ge), U.drawGeometry(x), e == null || e.render();
665
+ U.setStyle(Ge), U.drawGeometry(w), e == null || e.render();
666
666
  }, Et = () => {
667
667
  var c;
668
- $ = !0, T = Date.now(), M = 0, x = ((c = w.getGeometry()) == null ? void 0 : c.clone()) || new ce([0, 0]), r && (g == null || g.on("postrender", r)), L == null || L.setGeometry(void 0);
668
+ $ = !0, T = Date.now(), M = 0, w = ((c = m.getGeometry()) == null ? void 0 : c.clone()) || new ce([0, 0]), r && (g == null || g.on("postrender", r)), L == null || L.setGeometry(void 0);
669
669
  }, Fe = () => {
670
670
  $ && ($ = !1, L == null || L.setGeometry(void 0), r && g && g.un("postrender", r), g && (e == null || e.removeLayer(g)), g = null, L = null);
671
671
  }, Tt = (c, u) => {
@@ -676,15 +676,15 @@ const ao = (e) => {
676
676
  }).readGeometry(t, {
677
677
  dataProjection: _.data,
678
678
  featureProjection: _.mercator
679
- }), w = new ae({
679
+ }), m = new ae({
680
680
  type: "icon",
681
681
  geometry: new ce(o.getFirstCoordinate())
682
682
  });
683
- const v = w.getGeometry();
684
- x = v ? v.clone() : new ce([0, 0]), L = new ae({
683
+ const v = m.getGeometry();
684
+ w = v ? v.clone() : new ce([0, 0]), L = new ae({
685
685
  type: "geoMarker",
686
686
  style: Ge,
687
- geometry: x
687
+ geometry: w
688
688
  }), g = new ye({
689
689
  source: new ge({
690
690
  features: [L]
@@ -875,18 +875,18 @@ const go = (e) => {
875
875
  return n <= re.shipModelMax && n >= re.shipTriggleMin ? "ship" : "triangle";
876
876
  }, Ie = (e, n, s) => {
877
877
  if (s === "ship") {
878
- const { len: l, wid: i } = n, r = 97, a = 20, t = 1 / (e == null ? void 0 : e.getView().getResolution()), o = l * t / r, w = i * t / a, x = Math.min(o, w);
879
- return x < 0.2 ? 0.2 : x > 2 ? 2 : x;
878
+ const { len: l, wid: i } = n, r = 97, a = 20, t = 1 / (e == null ? void 0 : e.getView().getResolution()), o = l * t / r, m = i * t / a, w = Math.min(o, m);
879
+ return w < 0.2 ? 0.2 : w > 2 ? 2 : w;
880
880
  }
881
881
  return re.scaleNum;
882
882
  }, fo = (e, n, s) => {
883
- const { color: l, direct: i, isHighlight: r, shipData: a } = e.getProperties(), m = ((a == null ? void 0 : a.cog) - 90 + 360) % 360;
883
+ const { color: l, direct: i, isHighlight: r, shipData: a } = e.getProperties(), x = ((a == null ? void 0 : a.cog) - 90 + 360) % 360;
884
884
  return new j({
885
885
  image: new Ce({
886
886
  src: t(),
887
887
  scale: n || re.scaleNum,
888
888
  anchor: [0.5, 0.5],
889
- rotation: m * Math.PI / 180,
889
+ rotation: x * Math.PI / 180,
890
890
  rotateWithView: !1
891
891
  })
892
892
  });
@@ -959,7 +959,7 @@ const yo = (e, n) => {
959
959
  }, yt = (e) => {
960
960
  const n = document.createElement("div");
961
961
  n.className = "ship-overlay-box", n.style.position = "relative";
962
- const { lon: s, lat: l, blinking: i, blinkingColors: r, name: a } = e, m = He({
962
+ const { lon: s, lat: l, blinking: i, blinkingColors: r, name: a } = e, x = He({
963
963
  setup() {
964
964
  return uo({
965
965
  position: [s + 2e-3, l + 2e-3],
@@ -972,7 +972,7 @@ const yo = (e, n) => {
972
972
  });
973
973
  }
974
974
  });
975
- return $t(m, n), n;
975
+ return $t(x, n), n;
976
976
  }, ct = (e) => {
977
977
  const n = [];
978
978
  return e.existDevice && n.push("&#xe687;"), e.existMobile && n.push("&#xe688;"), e.existWaterGauge && n.push("&#xe686;"), n;
@@ -1007,11 +1007,11 @@ function xo(e, n, s = "left-bottom", l = 2) {
1007
1007
  const r = pe, a = Be;
1008
1008
  if (!a) return "";
1009
1009
  r.width = 0, r.height = 0;
1010
- const m = 2, t = 8, o = 16, w = window.devicePixelRatio || 1, x = "500 12px Arial", L = "14px map-iconfont";
1011
- a.font = x;
1010
+ const x = 2, t = 8, o = 16, m = window.devicePixelRatio || 1, w = "500 12px Arial", L = "14px map-iconfont";
1011
+ a.font = w;
1012
1012
  const T = a.measureText(e).width;
1013
1013
  a.font = L;
1014
- const g = n.map((b) => ({ width: a.measureText(he(b)).width, height: 14 })), M = g.reduce((b, N) => b + N.width, 0), p = (n.length - 1) * l, h = t + T + M + p + t, O = m + 14 + m;
1014
+ const g = n.map((b) => ({ width: a.measureText(he(b)).width, height: 14 })), M = g.reduce((b, N) => b + N.width, 0), p = (n.length - 1) * l, h = t + T + M + p + t, O = x + 14 + x;
1015
1015
  let B, G, W = 0, Z = 0, D = 0, F = 0, S = 0, R = 0;
1016
1016
  switch (B = o + h, s) {
1017
1017
  case "right-top":
@@ -1033,12 +1033,12 @@ function xo(e, n, s = "left-bottom", l = 2) {
1033
1033
  G = o + O, W = h, Z = O, D = h + o, F = 0, S = 0, R = o;
1034
1034
  break;
1035
1035
  }
1036
- G = G + m, r.width = Math.round(B * w), r.height = Math.round(G * w), a.scale(w, w), a.clearRect(0, 0, B, G), a.beginPath(), a.moveTo(W, Z), a.lineTo(D, F), a.strokeStyle = "#FFF", a.lineWidth = 1, a.stroke(), a.fillStyle = "#FFF", a.fillRect(S, R, h, O), a.font = x, a.textBaseline = "middle";
1037
- const d = R + m + O / 2;
1036
+ G = G + x, r.width = Math.round(B * m), r.height = Math.round(G * m), a.scale(m, m), a.clearRect(0, 0, B, G), a.beginPath(), a.moveTo(W, Z), a.lineTo(D, F), a.strokeStyle = "#FFF", a.lineWidth = 1, a.stroke(), a.fillStyle = "#FFF", a.fillRect(S, R, h, O), a.font = w, a.textBaseline = "middle";
1037
+ const d = R + x + O / 2;
1038
1038
  a.strokeStyle = "#ffffff", a.lineWidth = 1, a.strokeText(e, S + t, d), a.fillStyle = "#000000", a.fillText(e, S + t, d), a.font = L, a.fillStyle = "#3370ff";
1039
1039
  let y = S + t + T + l;
1040
1040
  n.length > 0 && n.forEach((b, N) => {
1041
- const H = R + m + O / 2;
1041
+ const H = R + x + O / 2;
1042
1042
  a.fillText(he(b), y, H), y += g[N].width + l;
1043
1043
  });
1044
1044
  const f = r.toDataURL("image/png");
@@ -1046,31 +1046,31 @@ function xo(e, n, s = "left-bottom", l = 2) {
1046
1046
  }
1047
1047
  const at = (e, n) => {
1048
1048
  const { name: s, rightIcons: l, selected: i } = e.getProperties(), r = n !== 1 ? mo() : "right-top", a = xo(s, l, r);
1049
- let m = [0, 0];
1049
+ let x = [0, 0];
1050
1050
  switch (r) {
1051
1051
  case "right-top":
1052
- m = [0, 1];
1052
+ x = [0, 1];
1053
1053
  break;
1054
1054
  case "right-middle":
1055
- m = [0, 0.5];
1055
+ x = [0, 0.5];
1056
1056
  break;
1057
1057
  case "right-bottom":
1058
- m = [0, 0];
1058
+ x = [0, 0];
1059
1059
  break;
1060
1060
  case "left-top":
1061
- m = [1, 1];
1061
+ x = [1, 1];
1062
1062
  break;
1063
1063
  case "left-middle":
1064
- m = [1, 0.5];
1064
+ x = [1, 0.5];
1065
1065
  break;
1066
1066
  case "left-bottom":
1067
- m = [1, 0];
1067
+ x = [1, 0];
1068
1068
  break;
1069
1069
  }
1070
1070
  return new j({
1071
1071
  image: new Ce({
1072
1072
  src: a,
1073
- anchor: m,
1073
+ anchor: x,
1074
1074
  displacement: [0, 0],
1075
1075
  scale: 1 / wo,
1076
1076
  anchorXUnits: "fraction",
@@ -1092,11 +1092,15 @@ const at = (e, n) => {
1092
1092
  zIndex: 102,
1093
1093
  updateWhileInteracting: !1,
1094
1094
  updateWhileAnimating: !1,
1095
- declutter: !0
1095
+ declutter: {
1096
+ enabled: !0,
1097
+ group: "ship-label-group"
1098
+ // 自定义分组名称
1099
+ }
1096
1100
  });
1097
1101
  e == null || e.addLayer(i), e == null || e.addLayer(a);
1098
- let m = null, t = "", o = {}, w = {};
1099
- const x = (d) => {
1102
+ let x = null, t = "", o = {}, m = {};
1103
+ const w = (d) => {
1100
1104
  if (!d || !e) return;
1101
1105
  const y = (s == null ? void 0 : s.id) || (n == null ? void 0 : n.get("id"));
1102
1106
  if (s) {
@@ -1106,7 +1110,7 @@ const at = (e, n) => {
1106
1110
  M(), R(d), $(), B();
1107
1111
  }, L = (d) => {
1108
1112
  var z;
1109
- const y = (s == null ? void 0 : s.id) || (n == null ? void 0 : n.get("id")), f = ee([d == null ? void 0 : d.lon, d == null ? void 0 : d.lat]), b = ((z = w[d.id]) == null ? void 0 : z.blinkColors) || [], H = b[b.length - 1] || d.fill || "#04C900", Q = go(d), J = new ae({
1113
+ const y = (s == null ? void 0 : s.id) || (n == null ? void 0 : n.get("id")), f = ee([d == null ? void 0 : d.lon, d == null ? void 0 : d.lat]), b = ((z = m[d.id]) == null ? void 0 : z.blinkColors) || [], H = b[b.length - 1] || d.fill || "#04C900", Q = go(d), J = new ae({
1110
1114
  geometry: new ce(f),
1111
1115
  // 船舶数据
1112
1116
  shipData: d,
@@ -1140,11 +1144,11 @@ const at = (e, n) => {
1140
1144
  const y = () => {
1141
1145
  l.getFeatures().forEach((f) => {
1142
1146
  f.setStyle(me(e, f));
1143
- }), m = requestAnimationFrame(y);
1147
+ }), x = requestAnimationFrame(y);
1144
1148
  };
1145
1149
  y();
1146
1150
  }
1147
- d === "end" && m && (cancelAnimationFrame(m), m = null);
1151
+ d === "end" && x && (cancelAnimationFrame(x), x = null);
1148
1152
  }, g = () => {
1149
1153
  const y = (e == null ? void 0 : e.getOverlays().getArray()).find((f) => f.get("class") == "ship-overlay-selected");
1150
1154
  if (y) {
@@ -1163,7 +1167,7 @@ const at = (e, n) => {
1163
1167
  }
1164
1168
  }
1165
1169
  }, h = (d, y) => {
1166
- o = d, w = y;
1170
+ o = d, m = y;
1167
1171
  const f = e.getOverlays().getArray(), b = l.getFeatures();
1168
1172
  for (const N in o) {
1169
1173
  const H = o[N], Q = f.find((z) => z.getId() === "label-" + N), J = b.find((z) => N === z.get("id"));
@@ -1274,8 +1278,8 @@ const at = (e, n) => {
1274
1278
  const b = L(f);
1275
1279
  if (b.setStyle(me(e, b)), l.addFeature(b), (s == null ? void 0 : s.id) == f.id || y >= re.shipModelMin)
1276
1280
  if (o[f.id]) {
1277
- if (f.id && w[f == null ? void 0 : f.id]) {
1278
- const N = w[f == null ? void 0 : f.id] || {}, H = (N == null ? void 0 : N.blinkColors) || [], Q = (N == null ? void 0 : N.shipState) || "", J = (f.cnname || f.enname || f.name || f.id || "未命名船舶") + "(" + Q + ")", z = {
1281
+ if (f.id && m[f == null ? void 0 : f.id]) {
1282
+ const N = m[f == null ? void 0 : f.id] || {}, H = (N == null ? void 0 : N.blinkColors) || [], Q = (N == null ? void 0 : N.shipState) || "", J = (f.cnname || f.enname || f.name || f.id || "未命名船舶") + "(" + Q + ")", z = {
1279
1283
  ...f,
1280
1284
  name: J,
1281
1285
  blinking: o[f.id],
@@ -1290,7 +1294,7 @@ const at = (e, n) => {
1290
1294
  });
1291
1295
  };
1292
1296
  return {
1293
- render: x,
1297
+ render: w,
1294
1298
  selected: W,
1295
1299
  filter: G,
1296
1300
  blinking: h,
@@ -1305,8 +1309,8 @@ const at = (e, n) => {
1305
1309
  const n = () => e == null ? void 0 : e.getLayers(), s = oe("vector"), l = () => s.value, i = (t) => {
1306
1310
  s.value = t;
1307
1311
  const o = n();
1308
- o && (o == null || o.getArray().forEach((w) => {
1309
- (w.className_ === "vector" || w.className_ === "satellite") && w.setVisible(w.className_ === t);
1312
+ o && (o == null || o.getArray().forEach((m) => {
1313
+ (m.className_ === "vector" || m.className_ === "satellite") && m.setVisible(m.className_ === t);
1310
1314
  }));
1311
1315
  }, r = oe(!1);
1312
1316
  return {
@@ -1316,18 +1320,18 @@ const at = (e, n) => {
1316
1320
  if (t !== r.value) {
1317
1321
  if (t) {
1318
1322
  const o = n();
1319
- if (!o.getArray().find((x) => x.className_ === "greenTile")) {
1320
- const x = new we({
1323
+ if (!o.getArray().find((w) => w.className_ === "greenTile")) {
1324
+ const w = new we({
1321
1325
  source: new xe({ url: fe.greenTile }),
1322
1326
  visible: t,
1323
1327
  zIndex: 2,
1324
1328
  className: "greenTile"
1325
1329
  });
1326
- o.push(x);
1330
+ o.push(w);
1327
1331
  }
1328
1332
  } else {
1329
- const o = n(), w = o.getArray().find((x) => x.className_ === "greenTile");
1330
- w && o.remove(w);
1333
+ const o = n(), m = o.getArray().find((w) => w.className_ === "greenTile");
1334
+ m && o.remove(m);
1331
1335
  }
1332
1336
  r.value = t;
1333
1337
  }
@@ -1353,14 +1357,14 @@ const at = (e, n) => {
1353
1357
  g ? r = g : T.push(r);
1354
1358
  }
1355
1359
  T.forEach((g) => {
1356
- m(g);
1360
+ x(g);
1357
1361
  }), s || (s = new ye({
1358
1362
  className: n,
1359
1363
  source: l,
1360
1364
  zIndex: 100
1361
1365
  }), e == null || e.addLayer(s));
1362
1366
  }
1363
- }, m = (T) => {
1367
+ }, x = (T) => {
1364
1368
  const g = e == null ? void 0 : e.getView().getZoom(), [M, p] = T.latLon.split(","), h = new ae({
1365
1369
  geometry: new ce(ee([Number(M), Number(p)]))
1366
1370
  });
@@ -1391,13 +1395,13 @@ const at = (e, n) => {
1391
1395
  });
1392
1396
  } else
1393
1397
  l.clear();
1394
- }, w = () => {
1398
+ }, m = () => {
1395
1399
  var p;
1396
1400
  const T = i.get("loactionData"), g = (p = e == null ? void 0 : e.getView()) == null ? void 0 : p.getZoom();
1397
1401
  l.getFeatures().forEach((h) => {
1398
1402
  h.get("loactionData").id === T.id && (h == null || h.setStyle(t(T, g, !1)));
1399
1403
  }), r = null, i = null;
1400
- }, x = (T) => {
1404
+ }, w = (T) => {
1401
1405
  T ? (L(), $(T)) : clearSelectedPort();
1402
1406
  }, L = () => {
1403
1407
  var T;
@@ -1411,8 +1415,8 @@ const at = (e, n) => {
1411
1415
  };
1412
1416
  return {
1413
1417
  render: a,
1414
- selected: x,
1415
- clearSelected: w,
1418
+ selected: w,
1419
+ clearSelected: m,
1416
1420
  clear: o
1417
1421
  };
1418
1422
  }, Co = (e) => {
@@ -1431,13 +1435,13 @@ const at = (e, n) => {
1431
1435
  l.value = F;
1432
1436
  };
1433
1437
  let r;
1434
- const a = oe(!1), m = () => {
1435
- Le(e, "crosshair"), w(), Co(e), e.on("pointermove", $), e.getViewport().addEventListener("mouseout", () => {
1438
+ const a = oe(!1), x = () => {
1439
+ Le(e, "crosshair"), m(), Co(e), e.on("pointermove", $), e.getViewport().addEventListener("mouseout", () => {
1436
1440
  r && r.classList.add("hidden");
1437
1441
  }), g(), a.value = !0;
1438
1442
  };
1439
1443
  let t, o;
1440
- const w = () => {
1444
+ const m = () => {
1441
1445
  t = new ge(), o = new ye({
1442
1446
  source: t,
1443
1447
  zIndex: 1e3,
@@ -1450,12 +1454,12 @@ const at = (e, n) => {
1450
1454
  }
1451
1455
  }), e == null || e.addLayer(o);
1452
1456
  };
1453
- let x, L;
1457
+ let w, L;
1454
1458
  const $ = (F) => {
1455
1459
  if (F.dragging)
1456
1460
  return;
1457
1461
  let S = "点击选择起点";
1458
- x && (S = "单击继续,双击结束"), r && (r.innerHTML = S, L.setPosition(F.coordinate), r.classList.remove("hidden"));
1462
+ w && (S = "单击继续,双击结束"), r && (r.innerHTML = S, L.setPosition(F.coordinate), r.classList.remove("hidden"));
1459
1463
  };
1460
1464
  let T;
1461
1465
  const g = () => {
@@ -1487,16 +1491,16 @@ const at = (e, n) => {
1487
1491
  let F;
1488
1492
  T.on("drawstart", function(S) {
1489
1493
  var d;
1490
- x = S.feature, x.set("randomId", M());
1494
+ w = S.feature, w.set("randomId", M());
1491
1495
  let R;
1492
- F = (d = x.getGeometry()) == null ? void 0 : d.on("change", function(y) {
1496
+ F = (d = w.getGeometry()) == null ? void 0 : d.on("change", function(y) {
1493
1497
  const f = y.target, b = mt(f, l.value);
1494
1498
  R = f.getLastCoordinate(), p && b && (p.innerHTML = b), h.setPosition(R);
1495
1499
  });
1496
1500
  }), T.on("drawend", function() {
1497
1501
  var S, R, d;
1498
1502
  if (p && (p.className = "ol-tooltip ol-tooltip-static ol-tooltip-measure"), p != null && p.innerHTML) {
1499
- const y = (x == null ? void 0 : x.get("randomId")) || M();
1503
+ const y = (w == null ? void 0 : w.get("randomId")) || M();
1500
1504
  s.value.push({ id: y, value: p == null ? void 0 : p.innerHTML }), p.innerHTML = `${p.innerHTML}<div class="ol-tooltip-delete-button" data-id="${y}"><i class="map-iconfont icon-delete"></i></div>`;
1501
1505
  }
1502
1506
  (S = document.querySelector(".ol-selectable:has(.ol-tooltip-delete-button):last-child .ol-tooltip-delete-button")) == null || S.addEventListener("click", (y) => {
@@ -1504,7 +1508,7 @@ const at = (e, n) => {
1504
1508
  y.preventDefault(), y.stopPropagation();
1505
1509
  const f = (b = y.target) == null ? void 0 : b.getAttribute("data-id");
1506
1510
  f && W(f);
1507
- }), h.setOffset([0, -7]), x = null, p = null, O(), F && Xe(F), (d = (R = n.getProps()) == null ? void 0 : R.lineDrawEnd) == null || d.call(R, s.value);
1511
+ }), h.setOffset([0, -7]), w = null, p = null, O(), F && Xe(F), (d = (R = n.getProps()) == null ? void 0 : R.lineDrawEnd) == null || d.call(R, s.value);
1508
1512
  });
1509
1513
  }, M = () => Math.random().toString(36).substring(2, 9);
1510
1514
  let p, h;
@@ -1552,7 +1556,7 @@ const at = (e, n) => {
1552
1556
  e.removeLayer(o), r != null && r.parentNode && r.parentNode.removeChild(r), p != null && p.parentNode && p.parentNode.removeChild(p);
1553
1557
  };
1554
1558
  return {
1555
- open: m,
1559
+ open: x,
1556
1560
  close: G,
1557
1561
  deleteLine: W,
1558
1562
  setUnit: i,
@@ -1580,9 +1584,9 @@ const at = (e, n) => {
1580
1584
  }, r = () => {
1581
1585
  t(), p(), B(), $();
1582
1586
  };
1583
- let a = null, m = null;
1587
+ let a = null, x = null;
1584
1588
  const t = () => {
1585
- if (a && m) return;
1589
+ if (a && x) return;
1586
1590
  const Z = new ge(), D = new ye({
1587
1591
  source: Z,
1588
1592
  style: new j({
@@ -1593,17 +1597,17 @@ const at = (e, n) => {
1593
1597
  }),
1594
1598
  zIndex: 1e3
1595
1599
  });
1596
- a = D, m = Z, e.on("pointermove", w), e.addLayer(D), e.on(["dblclick"], function(F) {
1597
- x && (F.stopPropagation(), F.preventDefault());
1600
+ a = D, x = Z, e.on("pointermove", m), e.addLayer(D), e.on(["dblclick"], function(F) {
1601
+ w && (F.stopPropagation(), F.preventDefault());
1598
1602
  });
1599
1603
  };
1600
1604
  let o;
1601
- const w = (Z) => {
1605
+ const m = (Z) => {
1602
1606
  if (Z.dragging) return;
1603
1607
  const D = o ? "单击继续,双击结束" : "点击选择起点";
1604
1608
  h && (h.innerHTML = D, O.setPosition(Z.coordinate));
1605
1609
  };
1606
- let x, L = !1;
1610
+ let w, L = !1;
1607
1611
  const $ = () => {
1608
1612
  if (s) {
1609
1613
  h != null && h.parentNode && h.parentNode.removeChild(h);
@@ -1629,9 +1633,9 @@ const at = (e, n) => {
1629
1633
  e == null || e.getView().setCenter(R);
1630
1634
  return;
1631
1635
  }
1632
- x = new Oe({
1636
+ w = new Oe({
1633
1637
  type: "Polygon",
1634
- source: m,
1638
+ source: x,
1635
1639
  trace: !0,
1636
1640
  style: [new j({
1637
1641
  stroke: new ve({
@@ -1654,7 +1658,7 @@ const at = (e, n) => {
1654
1658
  return new Qt(D);
1655
1659
  }
1656
1660
  })]
1657
- }), e == null || e.addInteraction(x), x.on("drawstart", (Z) => {
1661
+ }), e == null || e.addInteraction(w), w.on("drawstart", (Z) => {
1658
1662
  var D;
1659
1663
  o = Z.feature, l = (D = o.getGeometry()) == null ? void 0 : D.on("change", (F) => {
1660
1664
  const S = F.target, R = T(S, "nm"), y = S.getCoordinates()[0], f = new ze([y[y.length - 2], y[y.length - 1]]), b = mt(f, "nm");
@@ -1679,7 +1683,7 @@ const at = (e, n) => {
1679
1683
  </div>
1680
1684
  `);
1681
1685
  });
1682
- }), x.on("drawend", (Z) => {
1686
+ }), w.on("drawend", (Z) => {
1683
1687
  var R, d, y, f;
1684
1688
  if (!Z.feature.getGeometry()) return;
1685
1689
  g && !s && (g.innerHTML += '<span class="delete-icon"><i class="map-iconfont icon-delete" /></div>'), s = Z.feature, M.setOffset([10, 0]);
@@ -1688,7 +1692,7 @@ const at = (e, n) => {
1688
1692
  const b = F[0].map((N) => Me(N, _.mercator, _.data));
1689
1693
  (y = (d = n.getProps()) == null ? void 0 : d.areaDrawEnd) == null || y.call(d, b);
1690
1694
  }
1691
- x && (x.setActive(!1), e == null || e.removeInteraction(x), (e == null ? void 0 : e.getInteractions()).forEach((N) => {
1695
+ w && (w.setActive(!1), e == null || e.removeInteraction(w), (e == null ? void 0 : e.getInteractions()).forEach((N) => {
1692
1696
  N instanceof Oe && (N.setActive(!1), e == null || e.removeInteraction(N));
1693
1697
  })), l && Xe(l), (f = document.querySelector(".delete-icon")) == null || f.addEventListener("click", () => {
1694
1698
  var b, N;
@@ -1722,11 +1726,11 @@ const at = (e, n) => {
1722
1726
  positioning: "center-left"
1723
1727
  }), e == null || e.addOverlay(O);
1724
1728
  }, G = () => {
1725
- m == null || m.clear(), s = null, p(), B(), $();
1729
+ x == null || x.clear(), s = null, p(), B(), $();
1726
1730
  }, W = () => {
1727
- e.un("pointermove", w), o = null, x && (x.abortDrawing(), console.log("abortDrawing"), x.setActive(!1), (e == null ? void 0 : e.getInteractions()).forEach((D) => {
1731
+ e.un("pointermove", m), o = null, w && (w.abortDrawing(), console.log("abortDrawing"), w.setActive(!1), (e == null ? void 0 : e.getInteractions()).forEach((D) => {
1728
1732
  D instanceof Oe && (D.setActive(!1), e == null || e.removeInteraction(D));
1729
- }), x = null), l && Xe(l), l = void 0, m == null || m.clear(), m = null, a && e.getAllLayers().includes(a) && (e.removeLayer(a), a = null), h != null && h.parentElement && (h.innerHTML = "", h.parentElement.removeChild(h), h = null), g != null && g.parentElement && (g.innerHTML = "", g.parentElement.removeChild(g), g = null), O && e.removeOverlay(O), M && e.removeOverlay(M), Le(e, "pointer");
1733
+ }), w = null), l && Xe(l), l = void 0, x == null || x.clear(), x = null, a && e.getAllLayers().includes(a) && (e.removeLayer(a), a = null), h != null && h.parentElement && (h.innerHTML = "", h.parentElement.removeChild(h), h = null), g != null && g.parentElement && (g.innerHTML = "", g.parentElement.removeChild(g), g = null), O && e.removeOverlay(O), M && e.removeOverlay(M), Le(e, "pointer");
1730
1734
  };
1731
1735
  return {
1732
1736
  open: i,
@@ -1761,12 +1765,12 @@ const at = (e, n) => {
1761
1765
  G.setStyle(W), p.push(G);
1762
1766
  }), n.addFeatures(p);
1763
1767
  };
1764
- let a = null, m = null;
1768
+ let a = null, x = null;
1765
1769
  const t = (g, M) => {
1766
- a || (a = document.createElement("canvas"), m = a.getContext("2d", {
1770
+ a || (a = document.createElement("canvas"), x = a.getContext("2d", {
1767
1771
  willReadFrequently: !0
1768
1772
  }));
1769
- const p = a, h = m;
1773
+ const p = a, h = x;
1770
1774
  if (!h) return "";
1771
1775
  p.width = 0, p.height = 0;
1772
1776
  const O = 2, B = 8, G = window.devicePixelRatio || 1, W = "12px sans-serif";
@@ -1816,7 +1820,7 @@ const at = (e, n) => {
1816
1820
  // }),
1817
1821
  });
1818
1822
  return !p && !M ? Z : [Z, D];
1819
- }, w = () => {
1823
+ }, m = () => {
1820
1824
  if (n)
1821
1825
  if (l) {
1822
1826
  console.log("清除非选中的港口");
@@ -1826,7 +1830,7 @@ const at = (e, n) => {
1826
1830
  });
1827
1831
  } else
1828
1832
  console.log("清除所有港口", n), n == null || n.clear();
1829
- }, x = (g) => {
1833
+ }, w = (g) => {
1830
1834
  if (n) {
1831
1835
  if (!g)
1832
1836
  return L();
@@ -1845,45 +1849,47 @@ const at = (e, n) => {
1845
1849
  };
1846
1850
  return {
1847
1851
  render: r,
1848
- clear: w,
1849
- selected: x,
1852
+ clear: m,
1853
+ selected: w,
1850
1854
  handlePortHover: (g) => {
1851
- const M = e == null ? void 0 : e.getTargetElement();
1852
- g && g.get("portData") && M && Le(e, "pointer");
1855
+ g && g.get("portData") && (e != null && e.getTargetElement()) && Le(e, "pointer");
1853
1856
  }
1854
1857
  };
1855
1858
  }, So = (e, n, s, l, i, r) => {
1856
1859
  const a = e.getInstall();
1857
1860
  a.on("moveend", () => {
1858
- var m, t;
1861
+ var x, t;
1859
1862
  try {
1860
1863
  const o = e.getZoom();
1861
- (t = (m = n.getProps()).mapMoveEnd) == null || t.call(m, o), s.reRenderTrackLine(), l.changeShipScale("end");
1864
+ (t = (x = n.getProps()).mapMoveEnd) == null || t.call(x, o), s.reRenderTrackLine(), l.changeShipScale("end");
1862
1865
  } catch (o) {
1863
1866
  console.log("moveend---catch", o);
1864
1867
  }
1865
- }), a.on("pointermove", (m) => {
1868
+ }), a.on("pointermove", (x) => {
1866
1869
  try {
1867
- const t = a == null ? void 0 : a.getEventPixel(m.originalEvent);
1870
+ const t = a == null ? void 0 : a.getEventPixel(x.originalEvent);
1868
1871
  if (!t || !a) return;
1869
- const o = a == null ? void 0 : a.forEachFeatureAtPixel(t, (w) => w);
1870
- l == null || l.handleShipMapEvent(o, "hover"), s == null || s.handleTrackMapEvent(o, "hover", m), o && (i == null || i.handlePortHover(o));
1872
+ const o = a.getSize();
1873
+ if (t[0] < 0 || t[0] > o[0] || t[1] < 0 || t[1] > o[1])
1874
+ return;
1875
+ const m = a == null ? void 0 : a.forEachFeatureAtPixel(t, (w) => w);
1876
+ s == null || s.handleTrackMapEvent(m, "hover", x), l == null || l.handleShipMapEvent(m, "hover"), m && (i == null || i.handlePortHover(m));
1871
1877
  } catch (t) {
1872
1878
  console.log("pointermove---catch", t);
1873
1879
  }
1874
1880
  }), a.on("movestart", () => {
1875
1881
  try {
1876
- const m = a == null ? void 0 : a.getView().getZoom();
1877
- m && m <= re.shipModelMax && m >= re.shipTriggleMin && l.changeShipScale("start"), l.hiddenShipBlink();
1878
- } catch (m) {
1879
- console.log("movestart---catch", m);
1882
+ const x = a == null ? void 0 : a.getView().getZoom();
1883
+ x && x <= re.shipModelMax && x >= re.shipTriggleMin && l.changeShipScale("start"), l.hiddenShipBlink();
1884
+ } catch (x) {
1885
+ console.log("movestart---catch", x);
1880
1886
  }
1881
- }), a.on("click", Re((m) => {
1882
- var t, o, w;
1887
+ }), a.on("click", Re((x) => {
1888
+ var t, o, m;
1883
1889
  try {
1884
1890
  if (console.log("1", r.getState()), r.getState()) return;
1885
- const x = a.getEventPixel(m.originalEvent), L = a.forEachFeatureAtPixel(
1886
- x,
1891
+ const w = a.getEventPixel(x.originalEvent), L = a.forEachFeatureAtPixel(
1892
+ w,
1887
1893
  ($) => {
1888
1894
  if ($ != null && $.get("shipData") || $ != null && $.get("portData"))
1889
1895
  return $;
@@ -1893,15 +1899,15 @@ const at = (e, n) => {
1893
1899
  l.handleShipMapEvent(L, "click", (t = n.getProps()) == null ? void 0 : t.selectShip);
1894
1900
  else if (L != null && L.get("portData")) {
1895
1901
  const $ = L.get("portData");
1896
- i.selected($), (w = (o = n.getProps()) == null ? void 0 : o.selectPort) == null || w.call(o, $);
1902
+ i.selected($), (m = (o = n.getProps()) == null ? void 0 : o.selectPort) == null || m.call(o, $);
1897
1903
  }
1898
- m.preventDefault(), m.stopPropagation();
1899
- } catch (x) {
1900
- console.log("click---catch", x);
1904
+ x.preventDefault(), x.stopPropagation();
1905
+ } catch (w) {
1906
+ console.log("click---catch", w);
1901
1907
  }
1902
1908
  }, 150)), a.getView().on("change:resolution", Re(() => {
1903
- const m = a == null ? void 0 : a.getView().getZoom();
1904
- m && m <= re.shipModelMax && m >= re.shipTriggleMin && l.changeSelectedScale("start");
1909
+ const x = a == null ? void 0 : a.getView().getZoom();
1910
+ x && x <= re.shipModelMax && x >= re.shipTriggleMin && l.changeSelectedScale("start");
1905
1911
  }, 10));
1906
1912
  }, No = () => {
1907
1913
  const e = Vt([]);
@@ -1909,10 +1915,10 @@ const at = (e, n) => {
1909
1915
  createInstance: (l, i) => {
1910
1916
  const r = ro();
1911
1917
  r.initMap(l, i);
1912
- const a = r.getInstall(), m = ko(a), t = po();
1913
- t.setProps(i), m.setShowLayerType(i.layerType), m.setGreenTileVisible(i.showGreenLayer);
1914
- const o = ao(a), w = co(a, o), x = bo(a), L = Mo(a), $ = Eo(a, t), T = To(a, t), g = Po(a);
1915
- So(r, t, o, x, g, $);
1918
+ const a = r.getInstall(), x = ko(a), t = po();
1919
+ t.setProps(i), x.setShowLayerType(i.layerType), x.setGreenTileVisible(i.showGreenLayer);
1920
+ const o = ao(a), m = co(a, o), w = bo(a), L = Mo(a), $ = Eo(a, t), T = To(a, t), g = Po(a);
1921
+ So(r, t, o, w, g, $);
1916
1922
  const M = () => {
1917
1923
  const h = a.getView().calculateExtent(r.getSize()), O = Me([h[0], h[1]], _.mercator, _.data), B = Me([h[2], h[3]], _.mercator, _.data);
1918
1924
  return [O[0], O[1], B[0], B[1]];
@@ -1925,10 +1931,10 @@ const at = (e, n) => {
1925
1931
  },
1926
1932
  methods: {
1927
1933
  ...r,
1928
- layer: m,
1929
- ship: x,
1934
+ layer: x,
1935
+ ship: w,
1930
1936
  track: o,
1931
- carTrack: w,
1937
+ carTrack: m,
1932
1938
  port: {
1933
1939
  render: g.render,
1934
1940
  clear: g.clear,
@@ -1976,13 +1982,13 @@ const at = (e, n) => {
1976
1982
  } }
1977
1983
  },
1978
1984
  setup(e, { expose: n }) {
1979
- const s = oe(), l = oe(), i = No(), r = oe(), a = e, m = oe({
1985
+ const s = oe(), l = oe(), i = No(), r = oe(), a = e, x = oe({
1980
1986
  getInstall() {
1981
1987
  }
1982
1988
  });
1983
1989
  return zt(() => {
1984
1990
  var t;
1985
- r.value = i.createInstance(s.value, a), m.value = r.value.methods, (t = l.value) == null || t.setScaleLine(r.value.map, a.scaleLineUnit);
1991
+ r.value = i.createInstance(s.value, a), x.value = r.value.methods, (t = l.value) == null || t.setScaleLine(r.value.map, a.scaleLineUnit);
1986
1992
  }), Ot(() => {
1987
1993
  var t, o;
1988
1994
  i.destroyInstance((t = r == null ? void 0 : r.value) == null ? void 0 : t.id), (o = r.value) == null || o.destroy();
@@ -2004,16 +2010,16 @@ const at = (e, n) => {
2004
2010
  return (t = r.value) == null ? void 0 : t.methods.getView();
2005
2011
  },
2006
2012
  setCenter: (t, o) => {
2007
- var w;
2008
- return (w = r.value) == null ? void 0 : w.methods.setCenter(t, o);
2013
+ var m;
2014
+ return (m = r.value) == null ? void 0 : m.methods.setCenter(t, o);
2009
2015
  },
2010
2016
  getSize: () => {
2011
2017
  var t;
2012
2018
  return (t = r.value) == null ? void 0 : t.methods.getSize();
2013
2019
  },
2014
2020
  getCenter: (t, o) => {
2015
- var w;
2016
- return (w = r.value) == null ? void 0 : w.methods.getCenter();
2021
+ var m;
2022
+ return (m = r.value) == null ? void 0 : m.methods.getCenter();
2017
2023
  },
2018
2024
  layer: {
2019
2025
  setGreenTileVisible: (t) => {
@@ -2109,8 +2115,8 @@ const at = (e, n) => {
2109
2115
  },
2110
2116
  port: {
2111
2117
  render: (t, o) => {
2112
- var w;
2113
- return (w = r.value) == null ? void 0 : w.methods.port.render(t, o);
2118
+ var m;
2119
+ return (m = r.value) == null ? void 0 : m.methods.port.render(t, o);
2114
2120
  },
2115
2121
  clear: () => {
2116
2122
  var t;
@@ -2186,8 +2192,8 @@ const at = (e, n) => {
2186
2192
  return (o = r.value) == null ? void 0 : o.methods.utils.convertSixHundredThousandToLatLng(...t);
2187
2193
  },
2188
2194
  calculateCirclePoints: (t, o) => {
2189
- var w;
2190
- return (w = r.value) == null ? void 0 : w.methods.utils.calculateCirclePoints(t, o);
2195
+ var m;
2196
+ return (m = r.value) == null ? void 0 : m.methods.utils.calculateCirclePoints(t, o);
2191
2197
  }
2192
2198
  }
2193
2199
  }), (t, o) => (Qe(), Je("div", $o, [