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.
- package/dist/es/{Map-CWXp1qnd.js → Map-Cgw7AB3i.js} +261 -246
- package/dist/es/index.js +2 -2
- package/dist/index.css +1 -1
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +19 -19
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var I = (e, 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,
|
|
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 =
|
|
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
|
|
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(
|
|
145
|
-
if (
|
|
144
|
+
}), g = function(k) {
|
|
145
|
+
if (k.dragging)
|
|
146
146
|
return;
|
|
147
|
-
let
|
|
148
|
-
m && (
|
|
149
|
-
},
|
|
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
|
|
152
|
-
(
|
|
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
|
|
176
|
-
var
|
|
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
|
|
180
|
-
(
|
|
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((
|
|
183
|
-
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
|
-
(
|
|
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
|
|
189
|
-
var
|
|
190
|
-
|
|
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),
|
|
197
|
-
let
|
|
198
|
-
S.on("drawstart", function(
|
|
199
|
-
var
|
|
200
|
-
m =
|
|
201
|
-
let
|
|
202
|
-
|
|
203
|
-
const
|
|
204
|
-
let
|
|
205
|
-
|
|
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
|
|
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="${((
|
|
210
|
-
var
|
|
211
|
-
|
|
212
|
-
const R = (
|
|
213
|
-
R && w(R);
|
|
214
|
-
}), y.setOffset([0, -7]), m = null, p = null,
|
|
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
|
|
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
|
-
}), (
|
|
223
|
+
}), (k = o.value) == null || k.addOverlay(f);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
var
|
|
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
|
-
}), (
|
|
233
|
+
}), (k = o.value) == null || k.addOverlay(y);
|
|
234
234
|
}
|
|
235
|
-
const w = (
|
|
236
|
-
var
|
|
237
|
-
s.value[
|
|
238
|
-
const
|
|
239
|
-
|
|
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[
|
|
242
|
-
},
|
|
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 && (
|
|
246
|
+
l.value && !c.value && (T(), $());
|
|
247
247
|
}, { deep: !0, immediate: !0 }), t({
|
|
248
|
-
addInteraction:
|
|
249
|
-
removeInteraction:
|
|
250
|
-
}), (
|
|
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
|
-
|
|
252
|
+
M[1] || (M[1] = createElementVNode("div", { class: "title" }, "测量", -1)),
|
|
253
253
|
createElementVNode("i", {
|
|
254
|
-
onClick:
|
|
254
|
+
onClick: L,
|
|
255
255
|
class: "map-iconfont icon-close"
|
|
256
256
|
})
|
|
257
257
|
]),
|
|
258
258
|
createElementVNode("div", _hoisted_2$2, [
|
|
259
|
-
|
|
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":
|
|
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,
|
|
283
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (E, C) => (openBlock(), createElementBlock("div", {
|
|
284
284
|
class: "measure-history-item",
|
|
285
|
-
key:
|
|
285
|
+
key: C
|
|
286
286
|
}, [
|
|
287
287
|
createElementVNode("div", _hoisted_4, [
|
|
288
|
-
|
|
289
|
-
createElementVNode("span", _hoisted_5, "线段" + toDisplayString(
|
|
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: (
|
|
295
|
-
},
|
|
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-
|
|
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
|
|
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)}`, (
|
|
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,
|
|
450
|
-
return (i(
|
|
449
|
+
return function(x, v) {
|
|
450
|
+
return (i(v, x) + 180) % 360;
|
|
451
451
|
}(u, f);
|
|
452
|
-
const y = l(u),
|
|
453
|
-
return o(Math.atan2(
|
|
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 =
|
|
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 +
|
|
571
|
-
(c || d) && (f += l +
|
|
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
|
|
578
|
-
p = calculateBounds(i,
|
|
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
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
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,
|
|
584
|
+
if (p && isOverlapping(p, $)) {
|
|
588
585
|
S = !0;
|
|
589
586
|
break;
|
|
590
587
|
}
|
|
591
588
|
}
|
|
592
589
|
if (!S) {
|
|
593
|
-
|
|
590
|
+
h = T;
|
|
594
591
|
break;
|
|
595
592
|
}
|
|
596
593
|
}
|
|
597
594
|
else
|
|
598
|
-
|
|
599
|
-
if (u &&
|
|
600
|
-
|
|
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,
|
|
600
|
+
x: calculateAnchorPoint(i, h, f, g, m),
|
|
604
601
|
l: S,
|
|
605
|
-
r:
|
|
602
|
+
r: T,
|
|
606
603
|
bounds: p,
|
|
607
|
-
position:
|
|
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 =
|
|
620
|
-
|
|
621
|
-
e.fillStyle = l.color, e.fillText(m, c + labelOutSize -
|
|
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 =
|
|
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
|
|
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
|
|
665
|
-
if (
|
|
666
|
-
const { x:
|
|
667
|
-
n.find((
|
|
668
|
-
points: [o,
|
|
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
|
-
|
|
675
|
+
w[1][0] += 20, w[2][0] += 20;
|
|
679
676
|
});
|
|
680
|
-
const
|
|
681
|
-
points:
|
|
677
|
+
const k = {
|
|
678
|
+
points: w,
|
|
682
679
|
strokeColor: l,
|
|
683
680
|
fillColor: s,
|
|
684
681
|
shouldClosePath: !0
|
|
685
|
-
}, [
|
|
686
|
-
center: [
|
|
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,
|
|
694
|
-
let
|
|
695
|
-
const
|
|
696
|
-
t.blinkColors.forEach((
|
|
697
|
-
|
|
698
|
-
}),
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
}
|
|
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((
|
|
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((
|
|
762
|
-
const [g,
|
|
763
|
-
t = Math.min(t,
|
|
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(), (
|
|
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
|
-
}),
|
|
940
|
-
Number(s.state) === 0 ? ((u = y.getText()) == null || u.setFill(new Fill({ color: stopColor })),
|
|
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(
|
|
1377
|
+
l.addEventListener("mousedown", function(h) {
|
|
1367
1378
|
var g;
|
|
1368
|
-
f = !0,
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
],
|
|
1372
|
-
}), document.addEventListener("mousemove", function(
|
|
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
|
|
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, "
|
|
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
|
|
1510
|
-
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
|
|
1513
|
-
(
|
|
1527
|
+
var h;
|
|
1528
|
+
(h = s.value) == null || h.removeInteraction(), i.value = !1;
|
|
1514
1529
|
};
|
|
1515
1530
|
return onMounted(() => {
|
|
1516
1531
|
nextTick(() => {
|
|
1517
|
-
var
|
|
1518
|
-
(
|
|
1519
|
-
var
|
|
1520
|
-
const g = (S = (
|
|
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
|
-
}), (
|
|
1539
|
+
}), (h, g) => (openBlock(), createElementBlock(Fragment, null, [
|
|
1525
1540
|
createElementVNode("div", {
|
|
1526
|
-
class: normalizeClass(`tool-panel ${
|
|
1541
|
+
class: normalizeClass(`tool-panel ${h.viewMode}`)
|
|
1527
1542
|
}, [
|
|
1528
|
-
|
|
1543
|
+
h.viewMode === "WxMiniprogram" ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
1529
1544
|
createElementVNode("div", _hoisted_2$1, [
|
|
1530
|
-
|
|
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
|
-
|
|
1553
|
+
h.vehicleMode === "ship" ? (openBlock(), createElementBlock("div", {
|
|
1539
1554
|
key: 1,
|
|
1540
|
-
class: normalizeClass(`switch-btn ${c.value && "active"} ${(
|
|
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
|
-
|
|
1561
|
+
h.vehicleMode === "ship" ? (openBlock(), createElementBlock("div", {
|
|
1547
1562
|
key: 2,
|
|
1548
|
-
class: normalizeClass(`switch-btn ${
|
|
1549
|
-
onClick: g[0] || (g[0] = (
|
|
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
|
-
|
|
1569
|
+
h.vehicleMode === "truck" ? (openBlock(), createElementBlock("div", {
|
|
1555
1570
|
key: 3,
|
|
1556
|
-
class: normalizeClass(`switch-btn ${
|
|
1557
|
-
onClick: g[1] || (g[1] = (
|
|
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
|
-
|
|
1577
|
+
h.showTrackLayer ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
1563
1578
|
createElementVNode("div", {
|
|
1564
1579
|
class: "switch-btn multiple",
|
|
1565
|
-
onClick: g[2] || (g[2] = (
|
|
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] = (
|
|
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(
|
|
1593
|
+
renderSlot(h.$slots, "toolPanel", {}, void 0, !0)
|
|
1579
1594
|
])
|
|
1580
1595
|
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1581
|
-
|
|
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
|
-
|
|
1604
|
+
h.vehicleMode === "ship" ? (openBlock(), createElementBlock("div", {
|
|
1590
1605
|
key: 0,
|
|
1591
|
-
class: normalizeClass(`switch-btn ${c.value && "active"} ${(
|
|
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:
|
|
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] = (
|
|
1628
|
+
"onUpdate:visible": g[4] || (g[4] = (T) => i.value = T),
|
|
1614
1629
|
onClose: f,
|
|
1615
|
-
"view-mode":
|
|
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
|
|
1719
|
+
let h = 176;
|
|
1705
1720
|
const g = 52;
|
|
1706
|
-
let
|
|
1707
|
-
n === CAR_COLOR.YELLOW ? (
|
|
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
|
|
1725
|
+
const $ = i.measureText(b).width + 12;
|
|
1711
1726
|
let x = 0;
|
|
1712
|
-
o.forEach((
|
|
1713
|
-
|
|
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
|
|
1717
|
-
i.drawImage(
|
|
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 &&
|
|
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 &&
|
|
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,
|
|
1950
|
-
if (fillRectRadius(d, y,
|
|
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
|
-
((
|
|
2111
|
-
|
|
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,
|
|
2115
|
-
const
|
|
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(
|
|
2144
|
-
}),
|
|
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
|
|
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 = (
|
|
2168
|
+
}, g = (v) => {
|
|
2154
2169
|
var w;
|
|
2155
|
-
c.vehicleMode !== "ship" && (
|
|
2156
|
-
|
|
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
|
-
},
|
|
2173
|
+
}, T = ref(BaseMapType.satellite), S = (v) => {
|
|
2159
2174
|
var w;
|
|
2160
|
-
|
|
2161
|
-
(
|
|
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
|
|
2165
|
-
w &&
|
|
2166
|
-
const
|
|
2167
|
-
|
|
2168
|
-
},
|
|
2169
|
-
var
|
|
2170
|
-
d.value =
|
|
2171
|
-
const w = (
|
|
2172
|
-
showTrackLayer.value ? (f.value = !1,
|
|
2173
|
-
},
|
|
2174
|
-
const
|
|
2175
|
-
s("extentChanged", { extent: [
|
|
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: (
|
|
2195
|
+
pointRender: (v, w) => new PointMarkerClass(v, w),
|
|
2181
2196
|
renderTrucksMarker,
|
|
2182
2197
|
renderShip: renderShips,
|
|
2183
|
-
renderTrack: (
|
|
2184
|
-
var
|
|
2185
|
-
currentTrackId.value =
|
|
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
|
|
2192
|
-
showTrackLayer.value = !1, (
|
|
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
|
|
2196
|
-
showTrackLayer.value = !1, (
|
|
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: (
|
|
2203
|
-
var
|
|
2204
|
-
hiddenOrther.value =
|
|
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: (
|
|
2213
|
-
showTrackLayer.value = !0, renderTrack(
|
|
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: (
|
|
2218
|
-
m.value = !0, setMarkerPosition(
|
|
2232
|
+
setMarkerPosition: (v) => {
|
|
2233
|
+
m.value = !0, setMarkerPosition(v);
|
|
2219
2234
|
},
|
|
2220
2235
|
getZoomAndCenter: () => {
|
|
2221
|
-
var
|
|
2222
|
-
const
|
|
2223
|
-
if (!
|
|
2224
|
-
const w = Math.round(Number(
|
|
2225
|
-
return { zoom: w, center: [
|
|
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: (
|
|
2228
|
-
var
|
|
2229
|
-
const w = (
|
|
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
|
|
2232
|
-
w.setCenter(transform(
|
|
2246
|
+
const L = new Point(v);
|
|
2247
|
+
w.setCenter(transform(L.getCoordinates(), projection.data, projection.mercator));
|
|
2233
2248
|
},
|
|
2234
2249
|
drawPolygonTool,
|
|
2235
|
-
setMapInstance:
|
|
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
|
-
}), (
|
|
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":
|
|
2255
|
-
"view-mode":
|
|
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":
|
|
2273
|
+
"map-tile-mode": T.value,
|
|
2259
2274
|
onSwitchGreenDot: g,
|
|
2260
2275
|
onSwitchMapTile: S
|
|
2261
2276
|
}, {
|
|
2262
2277
|
toolPanel: withCtx(() => [
|
|
2263
|
-
renderSlot(
|
|
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
|
-
|
|
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:
|
|
2292
|
+
createVNode(Copyright, { type: v.logoType }, null, 8, ["type"])
|
|
2278
2293
|
], 512));
|
|
2279
2294
|
}
|
|
2280
|
-
}), Map = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
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,
|