tg-map-vue3 3.5.4 → 3.5.6
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/CHANGELOG.md +0 -2
- package/dist/src/components/controls/TgCustomControl.vue.d.ts +1 -3
- package/dist/src/components/controls/TgMapTypeControl.vue.d.ts +3 -5
- package/dist/src/components/controls/TgScaleControl.vue.d.ts +1 -3
- package/dist/src/components/extra/TgMarkerClusterer.vue.d.ts +1 -3
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/layers/TgTrafficLayer.vue.d.ts +1 -3
- package/dist/src/components/map-mixin.d.ts +1 -3
- package/dist/src/components/overlays/TgCircle.vue.d.ts +1 -3
- package/dist/src/components/overlays/TgElementOverlay.vue.d.ts +1 -3
- package/dist/src/components/overlays/TgInfoBox.vue.d.ts +1 -3
- package/dist/src/components/overlays/TgInfoWindow.vue.d.ts +1 -3
- package/dist/src/components/overlays/TgLabel.vue.d.ts +1 -3
- package/dist/src/components/overlays/TgMarker.vue.d.ts +4 -12
- package/dist/src/components/overlays/TgPolygon.vue.d.ts +1 -3
- package/dist/src/components/overlays/TgPolyline.vue.d.ts +1 -3
- package/dist/src/components/overlays/TgRectangle.vue.d.ts +1 -3
- package/dist/tg-map.js +468 -418
- package/dist/tg-map.js.map +1 -1
- package/dist/tg-map.umd.cjs +6 -6
- package/dist/tg-map.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/tg-map.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var br = Object.defineProperty;
|
|
3
3
|
var Mr = (i, t, e) => t in i ? br(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
4
4
|
var c = (i, t, e) => (Mr(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
5
|
-
import { createCommentVNode as
|
|
5
|
+
import { createCommentVNode as Fe, computed as Nt, defineComponent as C, markRaw as Tr, watch as Gt, openBlock as W, createElementBlock as j, mergeProps as ce, createElementVNode as Or, normalizeClass as $e, renderSlot as G, normalizeStyle as Cr, getCurrentInstance as wr, inject as Er, onMounted as Lr, onBeforeUnmount as xr, toRaw as De, withDirectives as Pr, vShow as kr } from "vue";
|
|
6
6
|
function V(i, t, e) {
|
|
7
7
|
Object.keys(i).forEach((r) => {
|
|
8
8
|
r.startsWith("update:") || e != null && e.includes(r) || t.addEventListener(r, i[r]);
|
|
@@ -12,18 +12,18 @@ let Br = 1;
|
|
|
12
12
|
function Ir() {
|
|
13
13
|
return Br++;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Pe(i, t) {
|
|
16
16
|
return t.__id__ || (t.__id__ = Ir()), `${i}::${t.__id__}`;
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
function
|
|
18
|
+
var Zt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
19
|
+
function Je(i) {
|
|
20
20
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var Wt = { exports: {} };
|
|
23
23
|
(function(i) {
|
|
24
24
|
(function(t, e) {
|
|
25
25
|
i.exports ? i.exports = e() : t.coordtransform = e();
|
|
26
|
-
})(
|
|
26
|
+
})(Zt, function() {
|
|
27
27
|
var t = 52.35987755982988, e = 3.141592653589793, r = 6378245, s = 0.006693421622965943;
|
|
28
28
|
function n(g, f, v, O) {
|
|
29
29
|
this.west = Math.min(g, v), this.north = Math.max(f, O), this.east = Math.max(g, v), this.south = Math.min(f, O);
|
|
@@ -58,8 +58,8 @@ var Zt = { exports: {} };
|
|
|
58
58
|
return !1;
|
|
59
59
|
}
|
|
60
60
|
function l(g, f) {
|
|
61
|
-
var v = g - 65e-4, O = f - 6e-3, x = Math.sqrt(v * v + O * O) - 2e-5 * Math.sin(O * t), w = Math.atan2(O, v) - 3e-6 * Math.cos(v * t), K = x * Math.cos(w),
|
|
62
|
-
return [K,
|
|
61
|
+
var v = g - 65e-4, O = f - 6e-3, x = Math.sqrt(v * v + O * O) - 2e-5 * Math.sin(O * t), w = Math.atan2(O, v) - 3e-6 * Math.cos(v * t), K = x * Math.cos(w), te = x * Math.sin(w);
|
|
62
|
+
return [K, te];
|
|
63
63
|
}
|
|
64
64
|
function d(g, f) {
|
|
65
65
|
var v = Math.sqrt(g * g + f * f) + 2e-5 * Math.sin(f * t), O = Math.atan2(f, g) + 3e-6 * Math.cos(g * t), x = v * Math.cos(O) + 65e-4, w = v * Math.sin(O) + 6e-3;
|
|
@@ -79,8 +79,8 @@ var Zt = { exports: {} };
|
|
|
79
79
|
w = 1 - s * w * w;
|
|
80
80
|
var K = Math.sqrt(w);
|
|
81
81
|
v = v * 180 / (r * (1 - s) / (w * K) * e), O = O * 180 / (r / K * Math.cos(x) * e);
|
|
82
|
-
var
|
|
83
|
-
return [
|
|
82
|
+
var te = f + v, Ze = g + O;
|
|
83
|
+
return [Ze, te];
|
|
84
84
|
}
|
|
85
85
|
function _(g, f) {
|
|
86
86
|
var v = -100 + 2 * g + 3 * f + 0.2 * f * f + 0.1 * g * f + 0.2 * Math.sqrt(Math.abs(g));
|
|
@@ -115,19 +115,19 @@ var Zt = { exports: {} };
|
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
});
|
|
118
|
-
})(
|
|
119
|
-
var Sr =
|
|
120
|
-
const
|
|
121
|
-
function
|
|
118
|
+
})(Wt);
|
|
119
|
+
var Sr = Wt.exports;
|
|
120
|
+
const re = /* @__PURE__ */ Je(Sr);
|
|
121
|
+
function se(i, t) {
|
|
122
122
|
if (!i)
|
|
123
123
|
throw new Error(`AssertionError: ${t}`);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Ue(i) {
|
|
126
126
|
throw new Error(`Unexpected object: ${i}`);
|
|
127
127
|
}
|
|
128
128
|
function cs() {
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function qe(i) {
|
|
131
131
|
return i;
|
|
132
132
|
}
|
|
133
133
|
function ds(i, t) {
|
|
@@ -137,7 +137,7 @@ function us(i, t) {
|
|
|
137
137
|
if (i instanceof t)
|
|
138
138
|
return i;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function we(i, t) {
|
|
141
141
|
if ((i == null ? void 0 : i.$options.name) === t.name)
|
|
142
142
|
return i;
|
|
143
143
|
}
|
|
@@ -147,7 +147,7 @@ function ps(i) {
|
|
|
147
147
|
function E(i) {
|
|
148
148
|
throw new Error(i);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Qe(i) {
|
|
151
151
|
throw new Error(`Unsupported: ${i}`);
|
|
152
152
|
}
|
|
153
153
|
function gs(i) {
|
|
@@ -156,13 +156,13 @@ function gs(i) {
|
|
|
156
156
|
function ms(i) {
|
|
157
157
|
return i;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function fe(...i) {
|
|
160
160
|
}
|
|
161
161
|
function fs(i) {
|
|
162
162
|
return i != null;
|
|
163
163
|
}
|
|
164
164
|
var Q = /* @__PURE__ */ ((i) => (i.wgs84 = "wgs84", i.gcj02 = "gcj02", i.bd09 = "bd09", i))(Q || {});
|
|
165
|
-
const
|
|
165
|
+
const He = "wgs84", D = class {
|
|
166
166
|
constructor(t, e, r) {
|
|
167
167
|
this.lat = t, this.lng = e, this.coord = r;
|
|
168
168
|
}
|
|
@@ -178,12 +178,12 @@ const We = "wgs84", D = class {
|
|
|
178
178
|
return new D(t.lat, t.lng, e);
|
|
179
179
|
}
|
|
180
180
|
static fromLiteral(t) {
|
|
181
|
-
return new D(t.lat, t.lng, t.coord ||
|
|
181
|
+
return new D(t.lat, t.lng, t.coord || He);
|
|
182
182
|
}
|
|
183
|
-
static fromLngLat(t, e, r =
|
|
183
|
+
static fromLngLat(t, e, r = He) {
|
|
184
184
|
return new D(e, t, r);
|
|
185
185
|
}
|
|
186
|
-
static create(t, e, r =
|
|
186
|
+
static create(t, e, r = He) {
|
|
187
187
|
return new D(t, e, r);
|
|
188
188
|
}
|
|
189
189
|
/** 转换坐标到指定坐标系 */
|
|
@@ -218,11 +218,11 @@ const We = "wgs84", D = class {
|
|
|
218
218
|
_convert(t) {
|
|
219
219
|
switch (this.coord) {
|
|
220
220
|
case "bd09":
|
|
221
|
-
return t === "gcj02" ?
|
|
221
|
+
return t === "gcj02" ? re.bd09ToGcj02(this.lng, this.lat) : re.bd09ToWgs84(this.lng, this.lat);
|
|
222
222
|
case "gcj02":
|
|
223
|
-
return t === "wgs84" ?
|
|
223
|
+
return t === "wgs84" ? re.gcj02ToWgs84(this.lng, this.lat) : re.gcj02ToBd09(this.lng, this.lat);
|
|
224
224
|
case "wgs84":
|
|
225
|
-
return t === "bd09" ?
|
|
225
|
+
return t === "bd09" ? re.wgs84ToBd09(this.lng, this.lat) : re.wgs84ToGcj02(this.lng, this.lat);
|
|
226
226
|
}
|
|
227
227
|
throw new Error(`不支持的坐标转换: ${this.coord}=>${t}`);
|
|
228
228
|
}
|
|
@@ -243,7 +243,7 @@ const J = class {
|
|
|
243
243
|
*/
|
|
244
244
|
constructor(t, e) {
|
|
245
245
|
c(this, "coord");
|
|
246
|
-
this.sw = t, this.ne = e,
|
|
246
|
+
this.sw = t, this.ne = e, se(t.coord === e.coord, "sw和ne的coord应该相同"), se(Number.isFinite(t.lat) && Number.isFinite(t.lng) && Number.isFinite(e.lat) && Number.isFinite(e.lng), `sw(${t})和ne(${e})不能包含NaN或Infinite`), se(t.lat <= e.lat, `sw.lat(${t.lat})应该比ne.lat(${e.lat})小`), this.coord = t.coord;
|
|
247
247
|
}
|
|
248
248
|
static isBetweenLng(t, e, r) {
|
|
249
249
|
return t <= e ? t <= r && r <= e : t <= r || r <= e;
|
|
@@ -363,26 +363,26 @@ function Nr(i) {
|
|
|
363
363
|
function Gr(i) {
|
|
364
364
|
return Array.isArray(i) ? [] : {};
|
|
365
365
|
}
|
|
366
|
-
function
|
|
367
|
-
return t.clone !== !1 && t.isMergeableObject(i) ?
|
|
366
|
+
function ye(i, t) {
|
|
367
|
+
return t.clone !== !1 && t.isMergeableObject(i) ? oe(Gr(i), i, t) : i;
|
|
368
368
|
}
|
|
369
369
|
function Zr(i, t, e) {
|
|
370
370
|
return i.concat(t).map(function(r) {
|
|
371
|
-
return
|
|
371
|
+
return ye(r, e);
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
374
|
function Wr(i, t) {
|
|
375
375
|
if (!t.customMerge)
|
|
376
|
-
return
|
|
376
|
+
return oe;
|
|
377
377
|
var e = t.customMerge(i);
|
|
378
|
-
return typeof e == "function" ? e :
|
|
378
|
+
return typeof e == "function" ? e : oe;
|
|
379
379
|
}
|
|
380
380
|
function Hr(i) {
|
|
381
381
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(i).filter(function(t) {
|
|
382
382
|
return Object.propertyIsEnumerable.call(i, t);
|
|
383
383
|
}) : [];
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function kt(i) {
|
|
386
386
|
return Object.keys(i).concat(Hr(i));
|
|
387
387
|
}
|
|
388
388
|
function Ht(i, t) {
|
|
@@ -397,26 +397,26 @@ function jr(i, t) {
|
|
|
397
397
|
}
|
|
398
398
|
function Vr(i, t, e) {
|
|
399
399
|
var r = {};
|
|
400
|
-
return e.isMergeableObject(i) &&
|
|
401
|
-
r[s] =
|
|
402
|
-
}),
|
|
403
|
-
jr(i, s) || (Ht(i, s) && e.isMergeableObject(t[s]) ? r[s] = Wr(s, e)(i[s], t[s], e) : r[s] =
|
|
400
|
+
return e.isMergeableObject(i) && kt(i).forEach(function(s) {
|
|
401
|
+
r[s] = ye(i[s], e);
|
|
402
|
+
}), kt(t).forEach(function(s) {
|
|
403
|
+
jr(i, s) || (Ht(i, s) && e.isMergeableObject(t[s]) ? r[s] = Wr(s, e)(i[s], t[s], e) : r[s] = ye(t[s], e));
|
|
404
404
|
}), r;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
e = e || {}, e.arrayMerge = e.arrayMerge || Zr, e.isMergeableObject = e.isMergeableObject || Ar, e.cloneUnlessOtherwiseSpecified =
|
|
406
|
+
function oe(i, t, e) {
|
|
407
|
+
e = e || {}, e.arrayMerge = e.arrayMerge || Zr, e.isMergeableObject = e.isMergeableObject || Ar, e.cloneUnlessOtherwiseSpecified = ye;
|
|
408
408
|
var r = Array.isArray(t), s = Array.isArray(i), n = r === s;
|
|
409
|
-
return n ? r ? e.arrayMerge(i, t, e) : Vr(i, t, e) :
|
|
409
|
+
return n ? r ? e.arrayMerge(i, t, e) : Vr(i, t, e) : ye(t, e);
|
|
410
410
|
}
|
|
411
|
-
|
|
411
|
+
oe.all = function(t, e) {
|
|
412
412
|
if (!Array.isArray(t))
|
|
413
413
|
throw new Error("first argument should be an array");
|
|
414
414
|
return t.reduce(function(r, s) {
|
|
415
|
-
return
|
|
415
|
+
return oe(r, s, e);
|
|
416
416
|
}, {});
|
|
417
417
|
};
|
|
418
|
-
var Fr =
|
|
419
|
-
const jt = /* @__PURE__ */
|
|
418
|
+
var Fr = oe, Ur = Fr;
|
|
419
|
+
const jt = /* @__PURE__ */ Je(Ur), ke = ["3.0"], qr = {
|
|
420
420
|
baidu: {
|
|
421
421
|
version: "3.0",
|
|
422
422
|
// 在build时会被静态替换, 导致使用者不能无法设置它
|
|
@@ -431,7 +431,7 @@ const jt = /* @__PURE__ */ Xe(Ur), Pe = ["3.0"], qr = {
|
|
|
431
431
|
libraries: ["places"]
|
|
432
432
|
},
|
|
433
433
|
here: {
|
|
434
|
-
version:
|
|
434
|
+
version: ke[0],
|
|
435
435
|
key: ""
|
|
436
436
|
}
|
|
437
437
|
};
|
|
@@ -442,14 +442,14 @@ function Ft() {
|
|
|
442
442
|
function Yr(i) {
|
|
443
443
|
i != null && (Vt = jt(qr, i));
|
|
444
444
|
}
|
|
445
|
-
var
|
|
445
|
+
var Ye;
|
|
446
446
|
((i) => {
|
|
447
447
|
function t(e) {
|
|
448
448
|
return e.scrollWidth > e.clientWidth || e.scrollHeight > e.clientHeight;
|
|
449
449
|
}
|
|
450
450
|
i.isScrollable = t;
|
|
451
|
-
})(
|
|
452
|
-
var
|
|
451
|
+
})(Ye || (Ye = {}));
|
|
452
|
+
var ae;
|
|
453
453
|
((i) => {
|
|
454
454
|
function t(h, o) {
|
|
455
455
|
return h.length === o.length && h.every((l, d) => l === o[d]);
|
|
@@ -482,8 +482,8 @@ var he;
|
|
|
482
482
|
return h.length > 0;
|
|
483
483
|
}
|
|
484
484
|
i.isNotEmpty = a;
|
|
485
|
-
})(
|
|
486
|
-
var
|
|
485
|
+
})(ae || (ae = {}));
|
|
486
|
+
var le;
|
|
487
487
|
((i) => {
|
|
488
488
|
function t(s, n) {
|
|
489
489
|
const a = s.getLength();
|
|
@@ -507,7 +507,7 @@ var ce;
|
|
|
507
507
|
];
|
|
508
508
|
}
|
|
509
509
|
i.listenChanged = r;
|
|
510
|
-
})(
|
|
510
|
+
})(le || (le = {}));
|
|
511
511
|
function Ut(i, t, e) {
|
|
512
512
|
return i.addListener(t, e).remove;
|
|
513
513
|
}
|
|
@@ -517,7 +517,7 @@ function Kr(i, t, e) {
|
|
|
517
517
|
function Xr(i, t, e, r) {
|
|
518
518
|
return i.addEventListener(t, e, r), () => i.removeEventListener(t, e, r);
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Bt(i, t, e) {
|
|
521
521
|
return i.addEventListener(t, e), () => i.removeEventListener(t, e);
|
|
522
522
|
}
|
|
523
523
|
class qt {
|
|
@@ -530,7 +530,7 @@ class qt {
|
|
|
530
530
|
return this.target = t, this;
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
class
|
|
533
|
+
class ze {
|
|
534
534
|
constructor(t, e) {
|
|
535
535
|
c(this, "eventHub", new Yt());
|
|
536
536
|
this.delegate = t, this.options = e;
|
|
@@ -545,28 +545,28 @@ class De {
|
|
|
545
545
|
return this.delegate.setTarget(t), this;
|
|
546
546
|
}
|
|
547
547
|
addEventListener(t, e) {
|
|
548
|
-
if (
|
|
548
|
+
if (ae.includesTyped(this.options.types, t)) {
|
|
549
549
|
this.eventHub.hasListener(t) || this.options.onListen(t), this.eventHub.addEventListener(t, e);
|
|
550
550
|
return;
|
|
551
551
|
}
|
|
552
552
|
this.delegate.addEventListener(t, e);
|
|
553
553
|
}
|
|
554
554
|
removeEventListener(t, e) {
|
|
555
|
-
if (
|
|
555
|
+
if (ae.includesTyped(this.options.types, t)) {
|
|
556
556
|
this.eventHub.removeEventListener(t, e), this.eventHub.hasListener(t) || this.options.onCancel(t);
|
|
557
557
|
return;
|
|
558
558
|
}
|
|
559
559
|
this.delegate.removeEventListener(t, e);
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
-
const
|
|
562
|
+
const Pt = class extends qt {
|
|
563
563
|
addEventListener(t, e) {
|
|
564
|
-
const r =
|
|
564
|
+
const r = Pe(t, e);
|
|
565
565
|
if (this.eventMap.get(r)) {
|
|
566
566
|
console.warn("listener已经添加过了", r, e);
|
|
567
567
|
return;
|
|
568
568
|
}
|
|
569
|
-
const s = this.inner.addListener(
|
|
569
|
+
const s = this.inner.addListener(Pt.EVENT_TYPE_MAP[t] || t, (n) => {
|
|
570
570
|
const a = {
|
|
571
571
|
type: t,
|
|
572
572
|
target: this.target,
|
|
@@ -577,11 +577,11 @@ const Lt = class extends qt {
|
|
|
577
577
|
this.eventMap.set(r, s);
|
|
578
578
|
}
|
|
579
579
|
removeEventListener(t, e) {
|
|
580
|
-
const r =
|
|
580
|
+
const r = Pe(t, e), s = this.eventMap.get(r);
|
|
581
581
|
s ? (s.remove(), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, e);
|
|
582
582
|
}
|
|
583
583
|
};
|
|
584
|
-
let ee =
|
|
584
|
+
let ee = Pt;
|
|
585
585
|
// 事件类型映射: tg => google
|
|
586
586
|
c(ee, "EVENT_TYPE_MAP", {
|
|
587
587
|
"center-changed": "center_changed",
|
|
@@ -589,17 +589,19 @@ c(ee, "EVENT_TYPE_MAP", {
|
|
|
589
589
|
"radius-changed": "radius_changed",
|
|
590
590
|
"bounds-changed": "bounds_changed",
|
|
591
591
|
"map-type-changed": "maptypeid_changed",
|
|
592
|
-
//
|
|
593
|
-
//
|
|
594
|
-
// 具体使用方式参考主项目中的`SearchInRectTool2`
|
|
592
|
+
// google地图的overlay会拦截地图的事件, 导致在map上设置的监听缺少一部分事件, baidu地图没有这个问题
|
|
593
|
+
// 规避方式一:
|
|
594
|
+
// 在map监听事件的同时, 在overlay上使用`map-*`监听相同的事件..., 具体使用方式参考主项目中的`SearchInRectTool2`
|
|
595
|
+
// 规避方式二: (推荐)
|
|
596
|
+
// 给overlay设置`clickable="false"`, 不让它接收事件
|
|
595
597
|
"map-mousedown": "mousedown",
|
|
596
598
|
"map-mousemove": "mousemove",
|
|
597
599
|
"map-mouseup": "mouseup",
|
|
598
600
|
"map-dblclick": "dblclick"
|
|
599
601
|
});
|
|
600
|
-
const
|
|
602
|
+
const Re = class extends qt {
|
|
601
603
|
addEventListener(t, e) {
|
|
602
|
-
const r =
|
|
604
|
+
const r = Pe(t, e);
|
|
603
605
|
if (this.eventMap.get(r)) {
|
|
604
606
|
console.warn("listener已经添加过了", r, e);
|
|
605
607
|
return;
|
|
@@ -612,17 +614,17 @@ const Ae = class extends qt {
|
|
|
612
614
|
};
|
|
613
615
|
n.point && (a.position = y.fromBaidu(n.point, this.coordTypeSupplier.coordType)), e.call(this.target, a);
|
|
614
616
|
};
|
|
615
|
-
this.inner.addEventListener(
|
|
617
|
+
this.inner.addEventListener(Re.EVENT_TYPE_MAP[t] || t, s), this.eventMap.set(r, s);
|
|
616
618
|
}
|
|
617
619
|
removeEventListener(t, e) {
|
|
618
|
-
const r =
|
|
619
|
-
s ? (this.inner.removeEventListener(
|
|
620
|
+
const r = Pe(t, e), s = this.eventMap.get(r);
|
|
621
|
+
s ? (this.inner.removeEventListener(Re.EVENT_TYPE_MAP[t] || t, s), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, e);
|
|
620
622
|
}
|
|
621
623
|
};
|
|
622
|
-
let
|
|
624
|
+
let ne = Re;
|
|
623
625
|
// cSpell:words clickclose
|
|
624
626
|
// 事件类型映射, tg => baidu
|
|
625
|
-
c(
|
|
627
|
+
c(ne, "EVENT_TYPE_MAP", {
|
|
626
628
|
drag: "dragging",
|
|
627
629
|
closeclick: "clickclose",
|
|
628
630
|
"zoom-changed": "zoomend",
|
|
@@ -638,7 +640,7 @@ class Yt {
|
|
|
638
640
|
}
|
|
639
641
|
removeEventListener(t, e) {
|
|
640
642
|
const r = this.typeMap.get(t);
|
|
641
|
-
r &&
|
|
643
|
+
r && ae.remove(r, e);
|
|
642
644
|
}
|
|
643
645
|
hasListener(t) {
|
|
644
646
|
const e = this.typeMap.get(t);
|
|
@@ -649,14 +651,14 @@ class Yt {
|
|
|
649
651
|
e && e.forEach((r) => r.call(t.target, t));
|
|
650
652
|
}
|
|
651
653
|
}
|
|
652
|
-
class
|
|
654
|
+
class It {
|
|
653
655
|
/**
|
|
654
656
|
* `keys`和`values`数组中可以有相同的值, 若存在相同值, 则index越小的优先级越高
|
|
655
657
|
*/
|
|
656
658
|
constructor(t, e) {
|
|
657
659
|
c(this, "keyToValue", /* @__PURE__ */ new Map());
|
|
658
660
|
c(this, "valueToKey", /* @__PURE__ */ new Map());
|
|
659
|
-
|
|
661
|
+
se(t.length === e.length);
|
|
660
662
|
for (let r = t.length - 1; r >= 0; r--)
|
|
661
663
|
this.keyToValue.set(t[r], e[r]), this.valueToKey.set(e[r], t[r]);
|
|
662
664
|
}
|
|
@@ -696,7 +698,7 @@ class Jr {
|
|
|
696
698
|
return this.getOrNull(t, e) ?? E(`key(${e})不存在与valueMap(${this.getValueMap(t)})中`);
|
|
697
699
|
}
|
|
698
700
|
}
|
|
699
|
-
class
|
|
701
|
+
class ge {
|
|
700
702
|
constructor(t) {
|
|
701
703
|
c(this, "value");
|
|
702
704
|
this.creator = t;
|
|
@@ -724,7 +726,7 @@ var k = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
|
|
|
724
726
|
/* RIGHT_BOTTOM */
|
|
725
727
|
];
|
|
726
728
|
function s() {
|
|
727
|
-
return t || (t = new
|
|
729
|
+
return t || (t = new It(r, [
|
|
728
730
|
/* | @tg/map |名字相同| baidu | */
|
|
729
731
|
/* TOP_LEFT = */
|
|
730
732
|
BMAP_ANCHOR_TOP_LEFT,
|
|
@@ -754,7 +756,7 @@ var k = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
|
|
|
754
756
|
}
|
|
755
757
|
i.getBaidu = s;
|
|
756
758
|
function n() {
|
|
757
|
-
return e || (e = new
|
|
759
|
+
return e || (e = new It(r, [
|
|
758
760
|
google.maps.ControlPosition.TOP_LEFT,
|
|
759
761
|
google.maps.ControlPosition.TOP_CENTER,
|
|
760
762
|
google.maps.ControlPosition.TOP_RIGHT,
|
|
@@ -780,7 +782,7 @@ class Qr {
|
|
|
780
782
|
}
|
|
781
783
|
class Kt {
|
|
782
784
|
}
|
|
783
|
-
class
|
|
785
|
+
class et extends Kt {
|
|
784
786
|
constructor(t, e) {
|
|
785
787
|
super(), this.inner = t, this.position = e;
|
|
786
788
|
}
|
|
@@ -803,7 +805,7 @@ class Je extends Kt {
|
|
|
803
805
|
t.innerMap.removeControl(this.inner);
|
|
804
806
|
}
|
|
805
807
|
}
|
|
806
|
-
class
|
|
808
|
+
class tt extends Kt {
|
|
807
809
|
constructor(e, r) {
|
|
808
810
|
super();
|
|
809
811
|
c(this, "visible", !1);
|
|
@@ -862,13 +864,65 @@ class B {
|
|
|
862
864
|
return this.google();
|
|
863
865
|
}
|
|
864
866
|
asGoogleMapType() {
|
|
865
|
-
|
|
867
|
+
Qe("google的内置地图没有对应的实例");
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
class ys {
|
|
871
|
+
constructor(t, e) {
|
|
872
|
+
c(this, "baiduLayerCached", new ge(() => {
|
|
873
|
+
const t = new BMap.TileLayer({});
|
|
874
|
+
return t.getTilesUrl = (e, r) => {
|
|
875
|
+
const s = Math.pow(2, r - 1), n = e.x + s, a = s - 1 - e.y;
|
|
876
|
+
return this.options.getTileUrl({ x: n, y: a }, r);
|
|
877
|
+
}, t;
|
|
878
|
+
}));
|
|
879
|
+
c(this, "baiduMapTypeCached", new ge(() => {
|
|
880
|
+
const t = new BMap.MapType(this.options.name, this.baiduLayerCached.get(), {
|
|
881
|
+
maxZoom: this.options.maxZoom,
|
|
882
|
+
minZoom: this.options.minZoom,
|
|
883
|
+
tips: this.options.describe
|
|
884
|
+
});
|
|
885
|
+
return t.__baidu_map_type__ = this, t;
|
|
886
|
+
}));
|
|
887
|
+
c(this, "googleCached", new ge(() => {
|
|
888
|
+
const t = new google.maps.ImageMapType({
|
|
889
|
+
getTileUrl: (e, r) => this.options.getTileUrl(e, r),
|
|
890
|
+
tileSize: new google.maps.Size(256, 256),
|
|
891
|
+
name: this.options.name,
|
|
892
|
+
alt: this.options.describe,
|
|
893
|
+
maxZoom: this.options.maxZoom,
|
|
894
|
+
minZoom: this.options.minZoom
|
|
895
|
+
});
|
|
896
|
+
return t.__google_map_type__ = this, t;
|
|
897
|
+
}));
|
|
898
|
+
this.coordType = t, this.options = e;
|
|
899
|
+
}
|
|
900
|
+
get id() {
|
|
901
|
+
return this.options.id;
|
|
902
|
+
}
|
|
903
|
+
getBaiduCoordType() {
|
|
904
|
+
return this.coordType;
|
|
905
|
+
}
|
|
906
|
+
asBaiduMapType() {
|
|
907
|
+
return this.baiduMapTypeCached.get();
|
|
908
|
+
}
|
|
909
|
+
asBaiduLayer() {
|
|
910
|
+
return this.baiduLayerCached.get();
|
|
911
|
+
}
|
|
912
|
+
getGoogleCoordType() {
|
|
913
|
+
return this.coordType;
|
|
914
|
+
}
|
|
915
|
+
asGoogleMapType() {
|
|
916
|
+
return this.googleCached.get();
|
|
917
|
+
}
|
|
918
|
+
asGoogleLayer() {
|
|
919
|
+
Qe("这个方法不会被调用");
|
|
866
920
|
}
|
|
867
921
|
}
|
|
868
922
|
class ei {
|
|
869
923
|
constructor() {
|
|
870
|
-
c(this, "baiduCache", new
|
|
871
|
-
c(this, "googleCache", new
|
|
924
|
+
c(this, "baiduCache", new ge(() => new BMap.TrafficLayer()));
|
|
925
|
+
c(this, "googleCache", new ge(() => new google.maps.TrafficLayer()));
|
|
872
926
|
}
|
|
873
927
|
asBaiduLayer() {
|
|
874
928
|
return this.baiduCache.get();
|
|
@@ -889,7 +943,7 @@ var S;
|
|
|
889
943
|
})(S || (S = {}));
|
|
890
944
|
var Jt = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(Jt || {});
|
|
891
945
|
const Qt = [S.NORMAL, S.SATELLITE, S.HYBRID];
|
|
892
|
-
class
|
|
946
|
+
class rt extends et {
|
|
893
947
|
static create(t) {
|
|
894
948
|
const e = t.mapTypes ?? Qt, r = {
|
|
895
949
|
default: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
|
|
@@ -899,23 +953,23 @@ class et extends Je {
|
|
|
899
953
|
type: t.type && r[t.type],
|
|
900
954
|
mapTypes: e.map((n) => n.asBaiduMapType())
|
|
901
955
|
});
|
|
902
|
-
return t.position && s.setAnchor(A.getBaidu().toValue(t.position)), new
|
|
956
|
+
return t.position && s.setAnchor(A.getBaidu().toValue(t.position)), new rt(s, t.position);
|
|
903
957
|
}
|
|
904
958
|
}
|
|
905
|
-
const
|
|
959
|
+
const ie = class extends tt {
|
|
906
960
|
constructor(t = "default", e = k.TOP_LEFT, r = Qt) {
|
|
907
|
-
super("mapType", e), this.type = t, this.mapTypes = r,
|
|
961
|
+
super("mapType", e), this.type = t, this.mapTypes = r, ie.type2google || (ie.type2google = {
|
|
908
962
|
default: google.maps.MapTypeControlStyle.DEFAULT,
|
|
909
963
|
horizontal: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
|
|
910
964
|
dropdown: google.maps.MapTypeControlStyle.DROPDOWN_MENU
|
|
911
965
|
});
|
|
912
966
|
}
|
|
913
967
|
static create(t) {
|
|
914
|
-
return new
|
|
968
|
+
return new ie(t.type, t.position, t.mapTypes);
|
|
915
969
|
}
|
|
916
970
|
onCreateOptions() {
|
|
917
971
|
const t = super.onCreateOptions();
|
|
918
|
-
return t.style =
|
|
972
|
+
return t.style = ie.type2google[this.type], t.mapTypeIds = this.mapTypes.map((e) => e instanceof B ? e.getGoogleMapTypeId() : e.id), t;
|
|
919
973
|
}
|
|
920
974
|
addTo(t) {
|
|
921
975
|
super.addTo(t), this.mapTypes.forEach((e) => {
|
|
@@ -923,37 +977,37 @@ const ne = class extends Qe {
|
|
|
923
977
|
});
|
|
924
978
|
}
|
|
925
979
|
};
|
|
926
|
-
let
|
|
927
|
-
c(
|
|
928
|
-
class
|
|
980
|
+
let xe = ie;
|
|
981
|
+
c(xe, "type2google");
|
|
982
|
+
class it extends et {
|
|
929
983
|
static create(t) {
|
|
930
984
|
const e = new BMap.ScaleControl({
|
|
931
985
|
anchor: t.position && A.getBaidu().toValue(t.position)
|
|
932
986
|
});
|
|
933
|
-
return new
|
|
987
|
+
return new it(e, t.position);
|
|
934
988
|
}
|
|
935
989
|
}
|
|
936
|
-
class
|
|
990
|
+
class st extends tt {
|
|
937
991
|
static create(t) {
|
|
938
|
-
return new
|
|
992
|
+
return new st(t.position);
|
|
939
993
|
}
|
|
940
994
|
constructor(t = k.BOTTOM_RIGHT) {
|
|
941
995
|
super("scale", t);
|
|
942
996
|
}
|
|
943
997
|
}
|
|
944
|
-
class
|
|
998
|
+
class nt extends et {
|
|
945
999
|
static create(t) {
|
|
946
1000
|
const e = new BMap.NavigationControl({
|
|
947
1001
|
type: BMAP_NAVIGATION_CONTROL_ZOOM,
|
|
948
1002
|
// enableGeolocation: true,
|
|
949
1003
|
anchor: t.position && A.getBaidu().toValue(t.position)
|
|
950
1004
|
});
|
|
951
|
-
return new
|
|
1005
|
+
return new nt(e, t.position);
|
|
952
1006
|
}
|
|
953
1007
|
}
|
|
954
|
-
class
|
|
1008
|
+
class ot extends tt {
|
|
955
1009
|
static create(t) {
|
|
956
|
-
return new
|
|
1010
|
+
return new ot(t.position);
|
|
957
1011
|
}
|
|
958
1012
|
constructor(t = k.RIGHT_BOTTOM) {
|
|
959
1013
|
super("zoom", t);
|
|
@@ -1064,7 +1118,7 @@ class ni extends rr {
|
|
|
1064
1118
|
const s = () => {
|
|
1065
1119
|
this.inner.setLocation(this.map.innerMap);
|
|
1066
1120
|
};
|
|
1067
|
-
this.removeableArray.push(
|
|
1121
|
+
this.removeableArray.push(Bt(this.map, "center-changed", s)), this.removeableArray.push(Bt(this.map, "zoom-changed", s));
|
|
1068
1122
|
}
|
|
1069
1123
|
}
|
|
1070
1124
|
setBounds(e) {
|
|
@@ -1535,7 +1589,7 @@ let oi = class ir {
|
|
|
1535
1589
|
}
|
|
1536
1590
|
}, ai = class {
|
|
1537
1591
|
constructor(t) {
|
|
1538
|
-
this.markerClusterer_ = t, this.map_ = t.getMap(), this.gridSize_ = t.getGridSize(), this.minClusterSize_ = t.getMinClusterSize(), this.averageCenter_ = t.isAverageCenter(), this.center_ = null, this.markers_ = [], this.bounds_ = null, this.clusterIcon_ = new
|
|
1592
|
+
this.markerClusterer_ = t, this.map_ = t.getMap(), this.gridSize_ = t.getGridSize(), this.minClusterSize_ = t.getMinClusterSize(), this.averageCenter_ = t.isAverageCenter(), this.center_ = null, this.markers_ = [], this.bounds_ = null, this.clusterIcon_ = new at(
|
|
1539
1593
|
this,
|
|
1540
1594
|
t.getStyles(),
|
|
1541
1595
|
t.getGridSize()
|
|
@@ -1669,9 +1723,9 @@ let oi = class ir {
|
|
|
1669
1723
|
this.clusterIcon_.setCenter(this.center_), this.clusterIcon_.setSums(a), this.clusterIcon_.show();
|
|
1670
1724
|
}
|
|
1671
1725
|
};
|
|
1672
|
-
class
|
|
1726
|
+
class at {
|
|
1673
1727
|
constructor(t, e, r) {
|
|
1674
|
-
t.getMarkerClusterer().extend(
|
|
1728
|
+
t.getMarkerClusterer().extend(at, google.maps.OverlayView), this.styles_ = e, this.padding_ = r || 0, this.cluster_ = t, this.center_ = null, this.map_ = t.getMap(), this.div_ = null, this.sums_ = null, this.visible_ = !1, this.setMap(this.map_);
|
|
1675
1729
|
}
|
|
1676
1730
|
/**
|
|
1677
1731
|
* Triggers the clusterclick event and zoom's if the option is set.
|
|
@@ -1806,7 +1860,7 @@ var sr = { exports: {} };
|
|
|
1806
1860
|
(function(i, t) {
|
|
1807
1861
|
(function(e, r) {
|
|
1808
1862
|
i.exports = r();
|
|
1809
|
-
})(
|
|
1863
|
+
})(Zt, function() {
|
|
1810
1864
|
var e, r = e = r || { version: "1.3.8" }, s = {};
|
|
1811
1865
|
r.guid = "$BAIDU$", s[r.guid] = s[r.guid] || {}, r.dom = r.dom || {}, r.dom.g = function(o) {
|
|
1812
1866
|
return typeof o == "string" || o instanceof String ? document.getElementById(o) : o && o.nodeName && (o.nodeType == 1 || o.nodeType == 9) ? o : null;
|
|
@@ -1997,7 +2051,7 @@ var sr = { exports: {} };
|
|
|
1997
2051
|
});
|
|
1998
2052
|
})(sr);
|
|
1999
2053
|
var li = sr.exports;
|
|
2000
|
-
const
|
|
2054
|
+
const St = /* @__PURE__ */ Je(li);
|
|
2001
2055
|
var nr = function(i, t, e) {
|
|
2002
2056
|
t = hi(t);
|
|
2003
2057
|
var r = i.pointToPixel(t.getNorthEast()), s = i.pointToPixel(t.getSouthWest());
|
|
@@ -2005,9 +2059,9 @@ var nr = function(i, t, e) {
|
|
|
2005
2059
|
var n = i.pixelToPoint(r), a = i.pixelToPoint(s);
|
|
2006
2060
|
return new BMap.Bounds(a, n);
|
|
2007
2061
|
}, hi = function(i) {
|
|
2008
|
-
var t =
|
|
2062
|
+
var t = Ee(i.getNorthEast().lng, -180, 180), e = Ee(i.getSouthWest().lng, -180, 180), r = Ee(i.getNorthEast().lat, -74, 74), s = Ee(i.getSouthWest().lat, -74, 74);
|
|
2009
2063
|
return new BMap.Bounds(new BMap.Point(e, s), new BMap.Point(t, r));
|
|
2010
|
-
},
|
|
2064
|
+
}, Ee = function(i, t, e) {
|
|
2011
2065
|
return t && (i = Math.max(i, t)), e && (i = Math.min(i, e)), i;
|
|
2012
2066
|
}, or = function(i) {
|
|
2013
2067
|
return Object.prototype.toString.call(i) === "[object Array]";
|
|
@@ -2177,7 +2231,7 @@ T.prototype.setStylesIndexCalculator = function(i) {
|
|
|
2177
2231
|
};
|
|
2178
2232
|
function $(i) {
|
|
2179
2233
|
var t = this;
|
|
2180
|
-
this._markerClusterer = i, this._map = i.getMap(), this._minClusterSize = i.getMinClusterSize(), this._isAverageCenter = i.isAverageCenter(), this._center = null, this._markers = [], this._gridBounds = null, this._isReal = !1, this._clusterMarker = new
|
|
2234
|
+
this._markerClusterer = i, this._map = i.getMap(), this._minClusterSize = i.getMinClusterSize(), this._isAverageCenter = i.isAverageCenter(), this._center = null, this._markers = [], this._gridBounds = null, this._isReal = !1, this._clusterMarker = new St(this._center, this._markers.length, {
|
|
2181
2235
|
styles: this._markerClusterer.getStyles(),
|
|
2182
2236
|
zIndex: i._zIndex
|
|
2183
2237
|
}), this._clusterMarker.getStyleByText = function(e, r) {
|
|
@@ -2185,7 +2239,7 @@ function $(i) {
|
|
|
2185
2239
|
var s = t._markerClusterer._stylesIndexCalculator(t._markers, r.length);
|
|
2186
2240
|
return r[s];
|
|
2187
2241
|
}
|
|
2188
|
-
return
|
|
2242
|
+
return St.prototype.getStyleByText.call(this, e, r);
|
|
2189
2243
|
}, this._clusterMarker.addEventListener && this._clusterMarker.addEventListener("click", function(e) {
|
|
2190
2244
|
t._map.setViewport(t.getBounds());
|
|
2191
2245
|
});
|
|
@@ -2255,7 +2309,7 @@ $.prototype.getBounds = function() {
|
|
|
2255
2309
|
$.prototype.getCenter = function() {
|
|
2256
2310
|
return this._center;
|
|
2257
2311
|
};
|
|
2258
|
-
var
|
|
2312
|
+
var Be;
|
|
2259
2313
|
((i) => {
|
|
2260
2314
|
function t(r) {
|
|
2261
2315
|
return {
|
|
@@ -2280,7 +2334,7 @@ var ke;
|
|
|
2280
2334
|
};
|
|
2281
2335
|
}
|
|
2282
2336
|
i.toGoogle = e;
|
|
2283
|
-
})(
|
|
2337
|
+
})(Be || (Be = {}));
|
|
2284
2338
|
class lr {
|
|
2285
2339
|
constructor(t) {
|
|
2286
2340
|
c(this, "inner");
|
|
@@ -2317,7 +2371,7 @@ class ci extends lr {
|
|
|
2317
2371
|
maxZoom: e.maxZoom,
|
|
2318
2372
|
minClusterSize: e.minClusterSize,
|
|
2319
2373
|
isAverageCenter: e.averageCenter,
|
|
2320
|
-
styles: (s = e.styles) == null ? void 0 : s.map((n) =>
|
|
2374
|
+
styles: (s = e.styles) == null ? void 0 : s.map((n) => Be.toBaidu(n)),
|
|
2321
2375
|
zIndex: e.zIndex
|
|
2322
2376
|
});
|
|
2323
2377
|
const r = e.stylesIndexCalculator;
|
|
@@ -2339,7 +2393,7 @@ class di extends lr {
|
|
|
2339
2393
|
maxZoom: e.maxZoom,
|
|
2340
2394
|
minimumClusterSize: e.minClusterSize,
|
|
2341
2395
|
averageCenter: e.averageCenter,
|
|
2342
|
-
styles: (n = e.styles) == null ? void 0 : n.map((a) =>
|
|
2396
|
+
styles: (n = e.styles) == null ? void 0 : n.map((a) => Be.toGoogle(a)),
|
|
2343
2397
|
zIndex: e.zIndex
|
|
2344
2398
|
}
|
|
2345
2399
|
);
|
|
@@ -2436,7 +2490,7 @@ class pi extends hr {
|
|
|
2436
2490
|
return new Promise((s, n) => {
|
|
2437
2491
|
const a = new BMap.LocalSearch(e ?? this.map.innerMap, {
|
|
2438
2492
|
onSearchComplete: (h) => {
|
|
2439
|
-
Array.isArray(h) &&
|
|
2493
|
+
Array.isArray(h) && Qe("当前只支持一次搜索一条数据");
|
|
2440
2494
|
const o = a.getStatus();
|
|
2441
2495
|
switch (o) {
|
|
2442
2496
|
case BMAP_STATUS_SUCCESS: {
|
|
@@ -2482,7 +2536,7 @@ class cr {
|
|
|
2482
2536
|
* @mustCallSuper 子类必须调用一次`super.setSearchListener`, 用来保存{@link onData}和{@link onError}
|
|
2483
2537
|
* */
|
|
2484
2538
|
setSearchListener(t, e) {
|
|
2485
|
-
return this.onData && E("setSearchListener只能调用一次"), this.onData = t, this.onError = e,
|
|
2539
|
+
return this.onData && E("setSearchListener只能调用一次"), this.onData = t, this.onError = e, fe;
|
|
2486
2540
|
}
|
|
2487
2541
|
}
|
|
2488
2542
|
class gi extends cr {
|
|
@@ -2521,7 +2575,7 @@ class mi extends cr {
|
|
|
2521
2575
|
}
|
|
2522
2576
|
}
|
|
2523
2577
|
var fi = /* @__PURE__ */ ((i) => (i[i.WORLD = 1] = "WORLD", i[i.STATE = 5] = "STATE", i[i.CITY = 10] = "CITY", i[i.STREET = 15] = "STREET", i[i.BUILDING = 20] = "BUILDING", i))(fi || {});
|
|
2524
|
-
class
|
|
2578
|
+
class lt {
|
|
2525
2579
|
constructor(t) {
|
|
2526
2580
|
c(this, "latestInfoWindow");
|
|
2527
2581
|
/** 使用{@link setEventTargetDelegate}初始化 */
|
|
@@ -2583,14 +2637,14 @@ function yi(i) {
|
|
|
2583
2637
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
2584
2638
|
* Released under the MIT License.
|
|
2585
2639
|
*/
|
|
2586
|
-
function
|
|
2640
|
+
function At(i) {
|
|
2587
2641
|
return yi(i) === !0 && Object.prototype.toString.call(i) === "[object Object]";
|
|
2588
2642
|
}
|
|
2589
2643
|
function dr(i) {
|
|
2590
2644
|
var t, e;
|
|
2591
|
-
return !(
|
|
2645
|
+
return !(At(i) === !1 || (t = i.constructor, typeof t != "function") || (e = t.prototype, At(e) === !1) || e.hasOwnProperty("isPrototypeOf") === !1);
|
|
2592
2646
|
}
|
|
2593
|
-
var
|
|
2647
|
+
var ve;
|
|
2594
2648
|
((i) => {
|
|
2595
2649
|
function t(h, o) {
|
|
2596
2650
|
return h.reduce((l, d) => (l[o(d)] = d, l), {});
|
|
@@ -2611,21 +2665,21 @@ var _e;
|
|
|
2611
2665
|
}
|
|
2612
2666
|
i.deleteUndefinedPropertyOnPlainObjectDeeply = s;
|
|
2613
2667
|
function n(h, ...o) {
|
|
2614
|
-
const l =
|
|
2668
|
+
const l = Rt(o), d = {};
|
|
2615
2669
|
for (const u in h)
|
|
2616
2670
|
l(u) || (d[u] = h[u]);
|
|
2617
2671
|
return d;
|
|
2618
2672
|
}
|
|
2619
2673
|
i.omit = n;
|
|
2620
2674
|
function a(h, ...o) {
|
|
2621
|
-
const l =
|
|
2675
|
+
const l = Rt(o), d = {};
|
|
2622
2676
|
for (const u in h)
|
|
2623
2677
|
l(u) && (d[u] = h[u]);
|
|
2624
2678
|
return d;
|
|
2625
2679
|
}
|
|
2626
2680
|
i.pick = a;
|
|
2627
|
-
})(
|
|
2628
|
-
function
|
|
2681
|
+
})(ve || (ve = {}));
|
|
2682
|
+
function Rt(i) {
|
|
2629
2683
|
if (i.length <= 4)
|
|
2630
2684
|
return i.includes.bind(i);
|
|
2631
2685
|
{
|
|
@@ -2633,19 +2687,19 @@ function At(i) {
|
|
|
2633
2687
|
return t.has.bind(t);
|
|
2634
2688
|
}
|
|
2635
2689
|
}
|
|
2636
|
-
|
|
2690
|
+
ve.toJsonSafely;
|
|
2637
2691
|
const vi = ["single", "multi"];
|
|
2638
|
-
var Z = /* @__PURE__ */ ((i) => (i.auto = "auto", i.none = "none", i.greedy = "greedy", i.cooperative = "cooperative", i))(Z || {}),
|
|
2692
|
+
var Z = /* @__PURE__ */ ((i) => (i.auto = "auto", i.none = "none", i.greedy = "greedy", i.cooperative = "cooperative", i))(Z || {}), Ke;
|
|
2639
2693
|
((i) => {
|
|
2640
2694
|
function t(e) {
|
|
2641
|
-
|
|
2695
|
+
ve.deleteUndefinedPropertyOnPlainObjectDeeply(e);
|
|
2642
2696
|
const r = { center: y.ZERO, zoom: 5 };
|
|
2643
2697
|
return jt(r, e || {}, {
|
|
2644
2698
|
isMergeableObject: dr
|
|
2645
2699
|
});
|
|
2646
2700
|
}
|
|
2647
2701
|
i.create = t;
|
|
2648
|
-
})(
|
|
2702
|
+
})(Ke || (Ke = {}));
|
|
2649
2703
|
class ur {
|
|
2650
2704
|
constructor(t, e, r) {
|
|
2651
2705
|
c(this, "_delegate");
|
|
@@ -2664,7 +2718,7 @@ class ur {
|
|
|
2664
2718
|
this.map.removeOverlay(this);
|
|
2665
2719
|
}
|
|
2666
2720
|
}
|
|
2667
|
-
class
|
|
2721
|
+
class ht extends ur {
|
|
2668
2722
|
constructor(t, e, r) {
|
|
2669
2723
|
super(t, e, r);
|
|
2670
2724
|
}
|
|
@@ -2678,12 +2732,12 @@ class at extends ur {
|
|
|
2678
2732
|
this.innerOverlay.setVisible(t);
|
|
2679
2733
|
}
|
|
2680
2734
|
}
|
|
2681
|
-
class
|
|
2735
|
+
class Ne extends ur {
|
|
2682
2736
|
constructor(t, e, r) {
|
|
2683
2737
|
super(t, e, r);
|
|
2684
2738
|
}
|
|
2685
2739
|
createDelegate() {
|
|
2686
|
-
return new
|
|
2740
|
+
return new ne(this.innerOverlay, this.map);
|
|
2687
2741
|
}
|
|
2688
2742
|
/** 仅限内部使用; 设为private时, 生成的d.ts文件中, 方法返回值会变成any, 故改成了public */
|
|
2689
2743
|
get overlay() {
|
|
@@ -2700,7 +2754,7 @@ class ze extends ur {
|
|
|
2700
2754
|
return t !== void 0 && (t || this.setVisible(!1)), this;
|
|
2701
2755
|
}
|
|
2702
2756
|
}
|
|
2703
|
-
class pr extends
|
|
2757
|
+
class pr extends Ne {
|
|
2704
2758
|
constructor(t, e, r, s) {
|
|
2705
2759
|
super(t, e, r), this.state = s;
|
|
2706
2760
|
}
|
|
@@ -2726,7 +2780,7 @@ class pr extends ze {
|
|
|
2726
2780
|
this.innerOverlay.setFillOpacity(t);
|
|
2727
2781
|
}
|
|
2728
2782
|
}
|
|
2729
|
-
class
|
|
2783
|
+
class Ge extends ht {
|
|
2730
2784
|
isEditable() {
|
|
2731
2785
|
return this.innerOverlay.getEditable();
|
|
2732
2786
|
}
|
|
@@ -2749,7 +2803,7 @@ class Ne extends at {
|
|
|
2749
2803
|
this.innerOverlay.setOptions({ fillOpacity: t });
|
|
2750
2804
|
}
|
|
2751
2805
|
}
|
|
2752
|
-
class
|
|
2806
|
+
class ct extends pr {
|
|
2753
2807
|
constructor() {
|
|
2754
2808
|
super(...arguments);
|
|
2755
2809
|
c(this, "prevCenter");
|
|
@@ -2780,13 +2834,13 @@ class lt extends pr {
|
|
|
2780
2834
|
strokeWeight: e.strokeWeight,
|
|
2781
2835
|
fillColor: e.fillColor,
|
|
2782
2836
|
fillOpacity: e.fillOpacity
|
|
2783
|
-
}), n = new
|
|
2837
|
+
}), n = new ct(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
|
|
2784
2838
|
return n.state.editable && setTimeout(() => {
|
|
2785
2839
|
n.state.editable && s.enableEditing();
|
|
2786
2840
|
}, 0), n;
|
|
2787
2841
|
}
|
|
2788
2842
|
createDelegate() {
|
|
2789
|
-
return this.eventHubDelegate = new
|
|
2843
|
+
return this.eventHubDelegate = new ze(super.createDelegate(), {
|
|
2790
2844
|
types: ["radius-changed", "center-changed"],
|
|
2791
2845
|
onListen: (e) => {
|
|
2792
2846
|
e === "radius-changed" ? (this.prevRadius = this.innerOverlay.getRadius(), this.innerOverlay.addEventListener("lineupdate", this.onRadiusChanged)) : (this.prevCenter = this.innerOverlay.getCenter(), this.innerOverlay.addEventListener("lineupdate", this.onCenterChanged));
|
|
@@ -2811,7 +2865,7 @@ class lt extends pr {
|
|
|
2811
2865
|
return this.innerOverlay.getRadius();
|
|
2812
2866
|
}
|
|
2813
2867
|
}
|
|
2814
|
-
class
|
|
2868
|
+
class dt extends Ge {
|
|
2815
2869
|
static create(t) {
|
|
2816
2870
|
const e = this.coordType, r = new google.maps.Circle({
|
|
2817
2871
|
center: t.center.toGoogle(e),
|
|
@@ -2825,7 +2879,7 @@ class ht extends Ne {
|
|
|
2825
2879
|
fillOpacity: t.fillOpacity,
|
|
2826
2880
|
visible: t.visible
|
|
2827
2881
|
});
|
|
2828
|
-
return new
|
|
2882
|
+
return new dt(r, e, this);
|
|
2829
2883
|
}
|
|
2830
2884
|
setCenter(t) {
|
|
2831
2885
|
this.coordType = this.map.coordType, this.innerOverlay.setCenter(t.toGoogle(this.coordType));
|
|
@@ -2843,7 +2897,7 @@ class ht extends Ne {
|
|
|
2843
2897
|
function gr() {
|
|
2844
2898
|
BMap.OverlayV3 || (BMap.OverlayV3 = BMap.Overlay);
|
|
2845
2899
|
}
|
|
2846
|
-
const
|
|
2900
|
+
const $t = {
|
|
2847
2901
|
/** {@link BMap.Point.equals} 无效, 故需要自己写一个 */
|
|
2848
2902
|
equals(i, t) {
|
|
2849
2903
|
return i.lat === t.lat && i.lng === t.lng;
|
|
@@ -2853,9 +2907,9 @@ var q;
|
|
|
2853
2907
|
((i) => {
|
|
2854
2908
|
i.ZERO = { x: 0, y: 0 };
|
|
2855
2909
|
})(q || (q = {}));
|
|
2856
|
-
let
|
|
2910
|
+
let je;
|
|
2857
2911
|
function _i(i, t, e, r, s, n) {
|
|
2858
|
-
return
|
|
2912
|
+
return je || (je = bi()), new je(i, t, e, r, s, n);
|
|
2859
2913
|
}
|
|
2860
2914
|
function bi() {
|
|
2861
2915
|
gr();
|
|
@@ -2924,7 +2978,7 @@ function bi() {
|
|
|
2924
2978
|
}
|
|
2925
2979
|
};
|
|
2926
2980
|
}
|
|
2927
|
-
class
|
|
2981
|
+
class ut {
|
|
2928
2982
|
constructor(t) {
|
|
2929
2983
|
this.delegate = t, this.delegate.setTarget(this);
|
|
2930
2984
|
}
|
|
@@ -2935,9 +2989,9 @@ class ct {
|
|
|
2935
2989
|
this.delegate.removeEventListener(t, e);
|
|
2936
2990
|
}
|
|
2937
2991
|
}
|
|
2938
|
-
class
|
|
2992
|
+
class pt extends ut {
|
|
2939
2993
|
constructor(t, e, r) {
|
|
2940
|
-
super(new
|
|
2994
|
+
super(new ne(t, e)), this.inner = t, this.map = e, this.state = r;
|
|
2941
2995
|
}
|
|
2942
2996
|
static create(t) {
|
|
2943
2997
|
const e = t.position || y.ZERO, r = new BMap.InfoWindow(t.content, {
|
|
@@ -2945,7 +2999,7 @@ class dt extends ct {
|
|
|
2945
2999
|
offset: t.offset && new BMap.Size(t.offset.x, t.offset.y),
|
|
2946
3000
|
enableAutoPan: !t.disableAutoPan
|
|
2947
3001
|
});
|
|
2948
|
-
return new
|
|
3002
|
+
return new pt(r, this, { position: e });
|
|
2949
3003
|
}
|
|
2950
3004
|
isOpen() {
|
|
2951
3005
|
return this.inner.isOpen();
|
|
@@ -2964,7 +3018,7 @@ class dt extends ct {
|
|
|
2964
3018
|
this.state.position = t, this.inner.isOpen() && this.open();
|
|
2965
3019
|
}
|
|
2966
3020
|
}
|
|
2967
|
-
class
|
|
3021
|
+
class gt extends ut {
|
|
2968
3022
|
constructor(e, r) {
|
|
2969
3023
|
super(new ee(e, r));
|
|
2970
3024
|
c(this, "eventHub", new Yt());
|
|
@@ -2984,7 +3038,7 @@ class ut extends ct {
|
|
|
2984
3038
|
position: r.toGoogle(this.coordType),
|
|
2985
3039
|
disableAutoPan: e.disableAutoPan
|
|
2986
3040
|
});
|
|
2987
|
-
return new
|
|
3041
|
+
return new gt(s, this);
|
|
2988
3042
|
}
|
|
2989
3043
|
isOpen() {
|
|
2990
3044
|
return this.isOpened;
|
|
@@ -3022,7 +3076,7 @@ class ut extends ct {
|
|
|
3022
3076
|
this.inner.setPosition(e.toGoogle(this.map.coordType));
|
|
3023
3077
|
}
|
|
3024
3078
|
}
|
|
3025
|
-
class
|
|
3079
|
+
class mt extends Ne {
|
|
3026
3080
|
constructor(t, e, r) {
|
|
3027
3081
|
super(t, e, r), this.baiduMap = r;
|
|
3028
3082
|
}
|
|
@@ -3036,7 +3090,7 @@ class pt extends ze {
|
|
|
3036
3090
|
t.maxWidth,
|
|
3037
3091
|
t.borderClass
|
|
3038
3092
|
);
|
|
3039
|
-
return new
|
|
3093
|
+
return new mt(r, e, this);
|
|
3040
3094
|
}
|
|
3041
3095
|
open(t) {
|
|
3042
3096
|
this.innerOverlay.open(this.baiduMap.innerMap, t == null ? void 0 : t.innerOverlay);
|
|
@@ -3057,7 +3111,7 @@ class pt extends ze {
|
|
|
3057
3111
|
this.innerOverlay.setZIndex(t);
|
|
3058
3112
|
}
|
|
3059
3113
|
}
|
|
3060
|
-
class
|
|
3114
|
+
class ft extends ut {
|
|
3061
3115
|
constructor(t, e, r) {
|
|
3062
3116
|
super(new ee(t, r)), this.inner = t, this.coordType = e, this.map = r;
|
|
3063
3117
|
}
|
|
@@ -3074,7 +3128,7 @@ class gt extends ct {
|
|
|
3074
3128
|
var h;
|
|
3075
3129
|
const a = (h = t.content.parentElement) == null ? void 0 : h.parentElement;
|
|
3076
3130
|
a && a.className.includes("gm-style-iw-c") && !a.className.includes(s) && (a.className += ` ${s}`);
|
|
3077
|
-
}), new
|
|
3131
|
+
}), new ft(r, e, this);
|
|
3078
3132
|
}
|
|
3079
3133
|
open(t) {
|
|
3080
3134
|
this.inner.open(this.map.innerMap, t == null ? void 0 : t.innerOverlay);
|
|
@@ -3102,7 +3156,7 @@ class gt extends ct {
|
|
|
3102
3156
|
this.inner.setZIndex(t);
|
|
3103
3157
|
}
|
|
3104
3158
|
}
|
|
3105
|
-
var
|
|
3159
|
+
var _e;
|
|
3106
3160
|
((i) => {
|
|
3107
3161
|
function t(s, n) {
|
|
3108
3162
|
if (s !== void 0)
|
|
@@ -3119,7 +3173,7 @@ var be;
|
|
|
3119
3173
|
return s.replace(/([^A-Z]?)([A-Z])/g, (n, a, h) => a ? `${a}-${h.toLowerCase()}` : h.toLowerCase());
|
|
3120
3174
|
}
|
|
3121
3175
|
i.pascal2kebab = r;
|
|
3122
|
-
})(
|
|
3176
|
+
})(_e || (_e = {}));
|
|
3123
3177
|
const Mi = {
|
|
3124
3178
|
/** @see https://nodejs.org/docs/v10.3.0/api/path.html#path_path_basename_path_ext */
|
|
3125
3179
|
basename(i, t) {
|
|
@@ -3127,7 +3181,7 @@ const Mi = {
|
|
|
3127
3181
|
return t && s.endsWith(t) ? s.slice(0, -t.length) : s;
|
|
3128
3182
|
}
|
|
3129
3183
|
};
|
|
3130
|
-
var
|
|
3184
|
+
var be = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overlayMouseTarget = "overlayMouseTarget", i.float = "float", i))(be || {}), Me;
|
|
3131
3185
|
((i) => {
|
|
3132
3186
|
function t(r, s) {
|
|
3133
3187
|
switch (r) {
|
|
@@ -3140,7 +3194,7 @@ var Me = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overla
|
|
|
3140
3194
|
case "map":
|
|
3141
3195
|
return s.mapPane;
|
|
3142
3196
|
default:
|
|
3143
|
-
|
|
3197
|
+
Ue(r);
|
|
3144
3198
|
}
|
|
3145
3199
|
}
|
|
3146
3200
|
i.toGoogle = t;
|
|
@@ -3155,11 +3209,11 @@ var Me = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overla
|
|
|
3155
3209
|
case "map":
|
|
3156
3210
|
return s.mapPane;
|
|
3157
3211
|
default:
|
|
3158
|
-
|
|
3212
|
+
Ue(r);
|
|
3159
3213
|
}
|
|
3160
3214
|
}
|
|
3161
3215
|
i.toBaidu = e;
|
|
3162
|
-
})(
|
|
3216
|
+
})(Me || (Me = {}));
|
|
3163
3217
|
class Ti {
|
|
3164
3218
|
constructor(t, e) {
|
|
3165
3219
|
c(this, "baidu");
|
|
@@ -3186,7 +3240,7 @@ class Ti {
|
|
|
3186
3240
|
initialize(n) {
|
|
3187
3241
|
var o;
|
|
3188
3242
|
const a = t.create(), h = n.getPanes();
|
|
3189
|
-
return (o =
|
|
3243
|
+
return (o = Me.toBaidu(t.mapPane, h)) == null || o.appendChild(a), a;
|
|
3190
3244
|
}
|
|
3191
3245
|
draw() {
|
|
3192
3246
|
t.draw();
|
|
@@ -3211,7 +3265,7 @@ class Ti {
|
|
|
3211
3265
|
class e extends google.maps.OverlayView {
|
|
3212
3266
|
onAdd() {
|
|
3213
3267
|
const s = t.create(), n = this.getPanes() ?? E("onAdd回调中一定会有panes");
|
|
3214
|
-
|
|
3268
|
+
Me.toGoogle(t.mapPane, n).appendChild(s);
|
|
3215
3269
|
}
|
|
3216
3270
|
draw() {
|
|
3217
3271
|
t.draw();
|
|
@@ -3233,13 +3287,13 @@ class Ti {
|
|
|
3233
3287
|
return this.google;
|
|
3234
3288
|
}
|
|
3235
3289
|
}
|
|
3236
|
-
let
|
|
3290
|
+
let Ve;
|
|
3237
3291
|
function Oi(i, t, e, r, s) {
|
|
3238
|
-
return
|
|
3292
|
+
return Ve || (Ve = Ci()), new Ve(i, t, e, r, s);
|
|
3239
3293
|
}
|
|
3240
3294
|
function Ci() {
|
|
3241
3295
|
return class extends google.maps.OverlayView {
|
|
3242
|
-
constructor(e, r, s, n =
|
|
3296
|
+
constructor(e, r, s, n = be.overlayMouseTarget, a) {
|
|
3243
3297
|
super();
|
|
3244
3298
|
c(this, "container");
|
|
3245
3299
|
this.position = r, this.offset = s, this._mapPane = n, this.container = document.createElement("div"), this.container.className = "label-container", this.container.style.position = "absolute", a && this.setZIndex(a), this.container.addEventListener("click", () => {
|
|
@@ -3255,7 +3309,7 @@ function Ci() {
|
|
|
3255
3309
|
}
|
|
3256
3310
|
onAdd() {
|
|
3257
3311
|
const e = this.getPanes() ?? E("onAdd回调中一定能够获取panes");
|
|
3258
|
-
|
|
3312
|
+
Me.toGoogle(this._mapPane, e).appendChild(this.container);
|
|
3259
3313
|
}
|
|
3260
3314
|
draw() {
|
|
3261
3315
|
var e, r;
|
|
@@ -3291,7 +3345,7 @@ function Ci() {
|
|
|
3291
3345
|
}
|
|
3292
3346
|
};
|
|
3293
3347
|
}
|
|
3294
|
-
var
|
|
3348
|
+
var he;
|
|
3295
3349
|
((i) => {
|
|
3296
3350
|
function t(r) {
|
|
3297
3351
|
return typeof r == "string" ? r : r.outerHTML;
|
|
@@ -3305,8 +3359,8 @@ var de;
|
|
|
3305
3359
|
return r;
|
|
3306
3360
|
}
|
|
3307
3361
|
i.toElement = e;
|
|
3308
|
-
})(
|
|
3309
|
-
class
|
|
3362
|
+
})(he || (he = {}));
|
|
3363
|
+
class yt extends Ne {
|
|
3310
3364
|
constructor(e, r, s, n) {
|
|
3311
3365
|
super(e, r, s);
|
|
3312
3366
|
c(this, "icon");
|
|
@@ -3317,7 +3371,7 @@ class mt extends ze {
|
|
|
3317
3371
|
}
|
|
3318
3372
|
static create(e) {
|
|
3319
3373
|
var a;
|
|
3320
|
-
const r = this.coordType, s = new BMap.Label(
|
|
3374
|
+
const r = this.coordType, s = new BMap.Label(he.toString(e.content), {
|
|
3321
3375
|
position: (a = e.position) == null ? void 0 : a.toBaidu(r),
|
|
3322
3376
|
offset: e.offset && new BMap.Size(e.offset.x, e.offset.y)
|
|
3323
3377
|
});
|
|
@@ -3326,7 +3380,7 @@ class mt extends ze {
|
|
|
3326
3380
|
padding: "0px",
|
|
3327
3381
|
backgroundColor: "unset"
|
|
3328
3382
|
});
|
|
3329
|
-
const n = new
|
|
3383
|
+
const n = new yt(s, r, this, e.content);
|
|
3330
3384
|
return s.__label__ = n, n;
|
|
3331
3385
|
}
|
|
3332
3386
|
setContentInternal(e, r = !1) {
|
|
@@ -3337,7 +3391,7 @@ class mt extends ze {
|
|
|
3337
3391
|
characterData: !0,
|
|
3338
3392
|
childList: !0,
|
|
3339
3393
|
subtree: !0
|
|
3340
|
-
})), r || this.innerOverlay.setContent(
|
|
3394
|
+
})), r || this.innerOverlay.setContent(he.toString(e)), this.content = e);
|
|
3341
3395
|
}
|
|
3342
3396
|
setZIndex(e) {
|
|
3343
3397
|
this.innerOverlay.setZIndex(e);
|
|
@@ -3379,7 +3433,7 @@ class mt extends ze {
|
|
|
3379
3433
|
height: e.style.anchor.height + o.y
|
|
3380
3434
|
}, process.env.NODE_ENV !== "production" && setTimeout(() => {
|
|
3381
3435
|
var u, p;
|
|
3382
|
-
if (
|
|
3436
|
+
if (se(e.__icon__, `${e}必须是由'SymbolIcon.toBaidu()'创建的`), !e.anchor) {
|
|
3383
3437
|
console.log("BaiduLabelOverlay.attachIcon", "Bmap.Symbol.anchor尚未计算完成");
|
|
3384
3438
|
return;
|
|
3385
3439
|
}
|
|
@@ -3392,7 +3446,7 @@ class mt extends ze {
|
|
|
3392
3446
|
e.__icon__.scale,
|
|
3393
3447
|
e.__icon__.strokeWeight
|
|
3394
3448
|
].map((_) => _ ?? "").join(",");
|
|
3395
|
-
console.warn("BaiduLabelOverlay.attachIcon", e.__icon__,
|
|
3449
|
+
console.warn("BaiduLabelOverlay.attachIcon", e.__icon__, _e.trimIndent(
|
|
3396
3450
|
`
|
|
3397
3451
|
为了保证Label的位置正确, 请将SymbolIcon(${b})中baiduLabelOffset的值改写成:
|
|
3398
3452
|
${JSON.stringify({ x: l, y: d })}
|
|
@@ -3406,23 +3460,23 @@ class mt extends ze {
|
|
|
3406
3460
|
this.iconAnchor && (n -= this.iconAnchor.width, a -= this.iconAnchor.height), r && (n += r.width, a += r.height), this.innerOverlay.setOffset(new BMap.Size(n, a)), this.icon = e, this.iconAnchor = r;
|
|
3407
3461
|
}
|
|
3408
3462
|
}
|
|
3409
|
-
class
|
|
3463
|
+
class vt extends ht {
|
|
3410
3464
|
static create(t) {
|
|
3411
3465
|
var s;
|
|
3412
3466
|
const e = this.coordType, r = Oi(
|
|
3413
|
-
|
|
3467
|
+
he.toElement(t.content),
|
|
3414
3468
|
(s = t.position) == null ? void 0 : s.toGoogle(e),
|
|
3415
3469
|
t.offset,
|
|
3416
3470
|
t.mapPane,
|
|
3417
3471
|
t.zIndex
|
|
3418
3472
|
);
|
|
3419
|
-
return new
|
|
3473
|
+
return new vt(r, e, this);
|
|
3420
3474
|
}
|
|
3421
3475
|
setZIndex(t) {
|
|
3422
3476
|
this.innerOverlay.setZIndex(t);
|
|
3423
3477
|
}
|
|
3424
3478
|
setContent(t) {
|
|
3425
|
-
this.innerOverlay.setElement(
|
|
3479
|
+
this.innerOverlay.setElement(he.toElement(t));
|
|
3426
3480
|
}
|
|
3427
3481
|
getPosition() {
|
|
3428
3482
|
const t = this.innerOverlay.getPosition();
|
|
@@ -3438,11 +3492,11 @@ class ft extends at {
|
|
|
3438
3492
|
this.innerOverlay.setOffset(t);
|
|
3439
3493
|
}
|
|
3440
3494
|
}
|
|
3441
|
-
const
|
|
3442
|
-
toGoogle: (i) => "url" in i ?
|
|
3443
|
-
toBaidu: (i) => "url" in i ?
|
|
3495
|
+
const Ie = {
|
|
3496
|
+
toGoogle: (i) => "url" in i ? Se.toGoogle(i) : Ae.toGoogle(i),
|
|
3497
|
+
toBaidu: (i) => "url" in i ? Se.toBaidu(i) : Ae.toBaidu(i)
|
|
3444
3498
|
};
|
|
3445
|
-
var
|
|
3499
|
+
var Se;
|
|
3446
3500
|
((i) => {
|
|
3447
3501
|
function t(r) {
|
|
3448
3502
|
return {
|
|
@@ -3466,8 +3520,8 @@ var Ie;
|
|
|
3466
3520
|
});
|
|
3467
3521
|
}
|
|
3468
3522
|
i.toBaidu = e;
|
|
3469
|
-
})(
|
|
3470
|
-
var
|
|
3523
|
+
})(Se || (Se = {}));
|
|
3524
|
+
var Ae;
|
|
3471
3525
|
((i) => {
|
|
3472
3526
|
function t(r) {
|
|
3473
3527
|
return {
|
|
@@ -3498,22 +3552,22 @@ var Se;
|
|
|
3498
3552
|
return s.__icon__ = r, s;
|
|
3499
3553
|
}
|
|
3500
3554
|
i.toBaidu = e;
|
|
3501
|
-
})(
|
|
3502
|
-
const
|
|
3555
|
+
})(Ae || (Ae = {}));
|
|
3556
|
+
const Ms = {
|
|
3503
3557
|
CIRCLE: { baidu: () => BMap_Symbol_SHAPE_CIRCLE, google: () => google.maps.SymbolPath.CIRCLE },
|
|
3504
3558
|
BACKWARD_CLOSED_ARROW: { baidu: () => BMap_Symbol_SHAPE_BACKWARD_CLOSED_ARROW, google: () => google.maps.SymbolPath.BACKWARD_CLOSED_ARROW },
|
|
3505
3559
|
BACKWARD_OPEN_ARROW: { baidu: () => BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW, google: () => google.maps.SymbolPath.BACKWARD_OPEN_ARROW },
|
|
3506
3560
|
FORWARD_CLOSED_ARROW: { baidu: () => BMap_Symbol_SHAPE_FORWARD_CLOSED_ARROW, google: () => google.maps.SymbolPath.FORWARD_CLOSED_ARROW },
|
|
3507
3561
|
FORWARD_OPEN_ARROW: { baidu: () => BMap_Symbol_SHAPE_FORWARD_OPEN_ARROW, google: () => google.maps.SymbolPath.FORWARD_OPEN_ARROW }
|
|
3508
3562
|
};
|
|
3509
|
-
class
|
|
3563
|
+
class Te extends Ne {
|
|
3510
3564
|
constructor(t, e, r, s) {
|
|
3511
3565
|
super(t, e, r), this.state = s;
|
|
3512
3566
|
}
|
|
3513
3567
|
static create(t) {
|
|
3514
3568
|
const e = this.coordType, r = t.icon, s = {
|
|
3515
3569
|
title: t.title,
|
|
3516
|
-
icon: r &&
|
|
3570
|
+
icon: r && Ie.toBaidu(r),
|
|
3517
3571
|
enableClicking: t.clickable,
|
|
3518
3572
|
enableDragging: t.draggable,
|
|
3519
3573
|
// baidu的raiseOnDrag属性, 默认为false, 而我们的options.crossOnDrag默认为true, 故这里需要转换下
|
|
@@ -3522,7 +3576,7 @@ class Oe extends ze {
|
|
|
3522
3576
|
}, n = new BMap.Marker(t.position.toBaidu(e), s);
|
|
3523
3577
|
t.zIndex !== void 0 && n.setZIndex(t.zIndex);
|
|
3524
3578
|
const a = t.clickable === void 0 ? !0 : t.clickable, h = !!t.draggable;
|
|
3525
|
-
return new
|
|
3579
|
+
return new Te(n, e, this, { clickable: a, draggable: h, zIndex: t.zIndex }).visibleOptionInternal(t.visible);
|
|
3526
3580
|
}
|
|
3527
3581
|
getPosition() {
|
|
3528
3582
|
return y.fromBaidu(this.innerOverlay.getPosition(), this.coordType);
|
|
@@ -3538,7 +3592,7 @@ class Oe extends ze {
|
|
|
3538
3592
|
return this.innerOverlay.getTitle();
|
|
3539
3593
|
}
|
|
3540
3594
|
setIcon(t) {
|
|
3541
|
-
const e =
|
|
3595
|
+
const e = Ie.toBaidu(t);
|
|
3542
3596
|
this.innerOverlay.setIcon(e);
|
|
3543
3597
|
const r = this.getLabel();
|
|
3544
3598
|
r && r.attachIcon(e);
|
|
@@ -3573,7 +3627,7 @@ class Oe extends ze {
|
|
|
3573
3627
|
return (t = this.innerOverlay.getLabel()) == null ? void 0 : t.__label__;
|
|
3574
3628
|
}
|
|
3575
3629
|
}
|
|
3576
|
-
class
|
|
3630
|
+
class _t extends ht {
|
|
3577
3631
|
constructor() {
|
|
3578
3632
|
super(...arguments);
|
|
3579
3633
|
c(this, "label");
|
|
@@ -3587,7 +3641,7 @@ class yt extends at {
|
|
|
3587
3641
|
title: e.title,
|
|
3588
3642
|
zIndex: e.zIndex,
|
|
3589
3643
|
visible: e.visible,
|
|
3590
|
-
icon: s &&
|
|
3644
|
+
icon: s && Ie.toGoogle(s),
|
|
3591
3645
|
clickable: e.clickable,
|
|
3592
3646
|
draggable: e.draggable,
|
|
3593
3647
|
// google的crossOnDrag和我们的crossOnDrag是匹配的, 不需要转换
|
|
@@ -3596,7 +3650,7 @@ class yt extends at {
|
|
|
3596
3650
|
// InfoWindow相对marker的position的偏移量, 若不指定, 则偏移到marker的icon的上部中央
|
|
3597
3651
|
anchorPoint: new google.maps.Point(0, 0)
|
|
3598
3652
|
};
|
|
3599
|
-
return new
|
|
3653
|
+
return new _t(new google.maps.Marker(n), r, this);
|
|
3600
3654
|
}
|
|
3601
3655
|
getPosition() {
|
|
3602
3656
|
return y.fromGoogle(this.innerOverlay.getPosition(), this.coordType);
|
|
@@ -3611,7 +3665,7 @@ class yt extends at {
|
|
|
3611
3665
|
return this.innerOverlay.getTitle() || "";
|
|
3612
3666
|
}
|
|
3613
3667
|
setIcon(e) {
|
|
3614
|
-
this.innerOverlay.setIcon(
|
|
3668
|
+
this.innerOverlay.setIcon(Ie.toGoogle(e));
|
|
3615
3669
|
}
|
|
3616
3670
|
getIcon() {
|
|
3617
3671
|
return this.innerOverlay.getIcon();
|
|
@@ -3649,7 +3703,7 @@ class yt extends at {
|
|
|
3649
3703
|
this.label = void 0, this.labelPositionListener = void 0, this.labelVisibleListener = void 0, this.labelMapChangedListener = void 0;
|
|
3650
3704
|
}
|
|
3651
3705
|
}
|
|
3652
|
-
class
|
|
3706
|
+
class bt extends pr {
|
|
3653
3707
|
constructor() {
|
|
3654
3708
|
super(...arguments);
|
|
3655
3709
|
c(this, "eventHubDelegate");
|
|
@@ -3674,7 +3728,7 @@ class vt extends pr {
|
|
|
3674
3728
|
this.isDoingSetPath = !0, this.innerOverlay.setPath(e), this.isDoingSetPath = !1;
|
|
3675
3729
|
}
|
|
3676
3730
|
createDelegate() {
|
|
3677
|
-
return this.eventHubDelegate = new
|
|
3731
|
+
return this.eventHubDelegate = new ze(super.createDelegate(), {
|
|
3678
3732
|
types: [this.pathEditedEventType],
|
|
3679
3733
|
onListen: () => {
|
|
3680
3734
|
this.prevPath = this.innerOverlay.getPath(), this.innerOverlay.addEventListener("lineupdate", this.onLineUpdate);
|
|
@@ -3685,7 +3739,7 @@ class vt extends pr {
|
|
|
3685
3739
|
});
|
|
3686
3740
|
}
|
|
3687
3741
|
}
|
|
3688
|
-
class
|
|
3742
|
+
class Mt extends bt {
|
|
3689
3743
|
constructor() {
|
|
3690
3744
|
super(...arguments);
|
|
3691
3745
|
c(this, "pathEditedEventType", "path-edited");
|
|
@@ -3698,7 +3752,7 @@ class _t extends vt {
|
|
|
3698
3752
|
strokeOpacity: e.strokeOpacity,
|
|
3699
3753
|
strokeWeight: e.strokeWeight
|
|
3700
3754
|
});
|
|
3701
|
-
return new
|
|
3755
|
+
return new Mt(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
|
|
3702
3756
|
}
|
|
3703
3757
|
getPath() {
|
|
3704
3758
|
return this.innerOverlay.getPath().map((e) => y.fromBaidu(e, this.coordType));
|
|
@@ -3707,7 +3761,7 @@ class _t extends vt {
|
|
|
3707
3761
|
this.coordType = this.map.coordType, this.setPathInternal(e.map((r) => r.toBaidu(this.coordType)));
|
|
3708
3762
|
}
|
|
3709
3763
|
}
|
|
3710
|
-
class
|
|
3764
|
+
class Tt extends Ge {
|
|
3711
3765
|
constructor() {
|
|
3712
3766
|
super(...arguments);
|
|
3713
3767
|
c(this, "pathChangedListeners");
|
|
@@ -3723,21 +3777,21 @@ class bt extends Ne {
|
|
|
3723
3777
|
strokeWeight: e.strokeWeight,
|
|
3724
3778
|
visible: e.visible
|
|
3725
3779
|
});
|
|
3726
|
-
return new
|
|
3780
|
+
return new Tt(s, r, this);
|
|
3727
3781
|
}
|
|
3728
3782
|
setupPathChangedListeners() {
|
|
3729
3783
|
const e = () => {
|
|
3730
3784
|
var s;
|
|
3731
3785
|
return (s = this.eventHubDelegate) == null ? void 0 : s.notify({ type: "path-edited", target: this });
|
|
3732
3786
|
}, r = this.innerOverlay.getPath();
|
|
3733
|
-
this.pathChangedListeners =
|
|
3787
|
+
this.pathChangedListeners = le.listenChanged(r, e);
|
|
3734
3788
|
}
|
|
3735
3789
|
clearPathChangedListeners() {
|
|
3736
3790
|
var e;
|
|
3737
3791
|
(e = this.pathChangedListeners) == null || e.forEach((r) => r.remove()), this.pathChangedListeners = void 0;
|
|
3738
3792
|
}
|
|
3739
3793
|
createDelegate() {
|
|
3740
|
-
return this.eventHubDelegate = new
|
|
3794
|
+
return this.eventHubDelegate = new ze(super.createDelegate(), {
|
|
3741
3795
|
types: ["path-edited"],
|
|
3742
3796
|
onListen: () => this.setupPathChangedListeners(),
|
|
3743
3797
|
onCancel: () => this.clearPathChangedListeners()
|
|
@@ -3754,7 +3808,7 @@ class bt extends Ne {
|
|
|
3754
3808
|
this.coordType = this.map.coordType, this.innerOverlay.setPath(e.map((s) => s.toGoogle(this.coordType))), (r = this.eventHubDelegate) != null && r.hasListener("path-edited") && this.setupPathChangedListeners();
|
|
3755
3809
|
}
|
|
3756
3810
|
}
|
|
3757
|
-
class
|
|
3811
|
+
class Ot extends bt {
|
|
3758
3812
|
constructor() {
|
|
3759
3813
|
super(...arguments);
|
|
3760
3814
|
c(this, "pathEditedEventType", "paths-edited");
|
|
@@ -3771,7 +3825,7 @@ class Mt extends vt {
|
|
|
3771
3825
|
fillColor: e.fillColor,
|
|
3772
3826
|
fillOpacity: e.fillOpacity
|
|
3773
3827
|
});
|
|
3774
|
-
return new
|
|
3828
|
+
return new Ot(n, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
|
|
3775
3829
|
}
|
|
3776
3830
|
getPaths() {
|
|
3777
3831
|
return [this.innerOverlay.getPath().map((e) => y.fromBaidu(e, this.coordType))];
|
|
@@ -3780,7 +3834,7 @@ class Mt extends vt {
|
|
|
3780
3834
|
e.length > 1 && console.warn("baidu不支持多path, 只会显示paths[0]"), this.coordType = this.map.coordType, this.setPathInternal((e[0] || []).map((r) => r.toBaidu(this.coordType)));
|
|
3781
3835
|
}
|
|
3782
3836
|
}
|
|
3783
|
-
class
|
|
3837
|
+
class Ct extends Ge {
|
|
3784
3838
|
constructor() {
|
|
3785
3839
|
super(...arguments);
|
|
3786
3840
|
c(this, "pathChangedListeners");
|
|
@@ -3798,7 +3852,7 @@ class Tt extends Ne {
|
|
|
3798
3852
|
fillOpacity: e.fillOpacity,
|
|
3799
3853
|
visible: e.visible
|
|
3800
3854
|
});
|
|
3801
|
-
return new
|
|
3855
|
+
return new Ct(s, r, this);
|
|
3802
3856
|
}
|
|
3803
3857
|
setupPathChangedListeners() {
|
|
3804
3858
|
const e = () => {
|
|
@@ -3806,7 +3860,7 @@ class Tt extends Ne {
|
|
|
3806
3860
|
return (s = this.eventHubDelegate) == null ? void 0 : s.notify({ type: "paths-edited", target: this });
|
|
3807
3861
|
}, r = this.innerOverlay.getPaths();
|
|
3808
3862
|
this.pathChangedListeners = [], r.forEach((s) => {
|
|
3809
|
-
this.pathChangedListeners.push(...
|
|
3863
|
+
this.pathChangedListeners.push(...le.listenChanged(s, e));
|
|
3810
3864
|
});
|
|
3811
3865
|
}
|
|
3812
3866
|
clearPathChangedListeners() {
|
|
@@ -3814,7 +3868,7 @@ class Tt extends Ne {
|
|
|
3814
3868
|
(e = this.pathChangedListeners) == null || e.forEach((r) => r.remove()), this.pathChangedListeners = void 0;
|
|
3815
3869
|
}
|
|
3816
3870
|
createDelegate() {
|
|
3817
|
-
return this.eventHubDelegate = new
|
|
3871
|
+
return this.eventHubDelegate = new ze(super.createDelegate(), {
|
|
3818
3872
|
types: ["paths-edited"],
|
|
3819
3873
|
onListen: () => this.setupPathChangedListeners(),
|
|
3820
3874
|
onCancel: () => this.clearPathChangedListeners()
|
|
@@ -3834,7 +3888,7 @@ class Tt extends Ne {
|
|
|
3834
3888
|
this.coordType = this.map.coordType, this.innerOverlay.setPaths(e.map((s) => s.map((n) => n.toGoogle(this.coordType)))), (r = this.eventHubDelegate) != null && r.hasListener("paths-edited") && this.setupPathChangedListeners();
|
|
3835
3889
|
}
|
|
3836
3890
|
}
|
|
3837
|
-
class
|
|
3891
|
+
class wt extends bt {
|
|
3838
3892
|
constructor(e, r, s, n) {
|
|
3839
3893
|
super(e, r, s, n);
|
|
3840
3894
|
c(this, "pathEditedEventType", "bounds-changed");
|
|
@@ -3849,7 +3903,7 @@ class Ot extends vt {
|
|
|
3849
3903
|
if (r.length === 4)
|
|
3850
3904
|
if (a > r.length) {
|
|
3851
3905
|
for (let o = 0; o < a; o++)
|
|
3852
|
-
if (r[o] == null ||
|
|
3906
|
+
if (r[o] == null || !$t.equals(s[o], r[o])) {
|
|
3853
3907
|
const l = s[(o - 2 + a) % a], d = s[(o - 1 + a) % a], u = s[o], p = s[(o + 1) % a], b = s[(o + 2) % a];
|
|
3854
3908
|
let _;
|
|
3855
3909
|
d.lat === p.lat ? _ = new BMap.Point(d.lng, u.lat) : d.lng === p.lng ? _ = new BMap.Point(u.lng, d.lat) : _ = u, n = [l, b, _];
|
|
@@ -3857,7 +3911,7 @@ class Ot extends vt {
|
|
|
3857
3911
|
}
|
|
3858
3912
|
} else if (a === r.length) {
|
|
3859
3913
|
for (let o = 0; o < a; o++)
|
|
3860
|
-
if (
|
|
3914
|
+
if (!$t.equals(s[o], r[o])) {
|
|
3861
3915
|
n = [
|
|
3862
3916
|
s[o],
|
|
3863
3917
|
s[(o + 2) % 4]
|
|
@@ -3882,7 +3936,7 @@ class Ot extends vt {
|
|
|
3882
3936
|
fillColor: e.fillColor,
|
|
3883
3937
|
fillOpacity: e.fillOpacity
|
|
3884
3938
|
});
|
|
3885
|
-
return new
|
|
3939
|
+
return new wt(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
|
|
3886
3940
|
}
|
|
3887
3941
|
getBounds() {
|
|
3888
3942
|
return I.fromBaidu(this.innerOverlay.getBounds(), this.coordType);
|
|
@@ -3894,7 +3948,7 @@ class Ot extends vt {
|
|
|
3894
3948
|
}) : this.setPathInternal(r.map((s) => s.toBaidu(this.coordType)));
|
|
3895
3949
|
}
|
|
3896
3950
|
}
|
|
3897
|
-
class
|
|
3951
|
+
class Et extends Ge {
|
|
3898
3952
|
static create(t) {
|
|
3899
3953
|
const e = this.coordType, r = new google.maps.Rectangle({
|
|
3900
3954
|
bounds: t.bounds.toGoogle(e),
|
|
@@ -3907,7 +3961,7 @@ class Ct extends Ne {
|
|
|
3907
3961
|
fillOpacity: t.fillOpacity,
|
|
3908
3962
|
visible: t.visible
|
|
3909
3963
|
});
|
|
3910
|
-
return new
|
|
3964
|
+
return new Et(r, e, this);
|
|
3911
3965
|
}
|
|
3912
3966
|
getBounds() {
|
|
3913
3967
|
return I.fromGoogle(this.innerOverlay.getBounds() ?? Y.BOUNDS_ZERO, this.coordType);
|
|
@@ -3918,31 +3972,31 @@ class Ct extends Ne {
|
|
|
3918
3972
|
}
|
|
3919
3973
|
}
|
|
3920
3974
|
const X = 1;
|
|
3921
|
-
class wi extends
|
|
3975
|
+
class wi extends lt {
|
|
3922
3976
|
constructor(e, r) {
|
|
3923
3977
|
var s;
|
|
3924
3978
|
super(e);
|
|
3925
3979
|
c(this, "buildInMapTypeId2BIMT");
|
|
3926
3980
|
c(this, "baiduMapType2BIMT");
|
|
3927
3981
|
c(this, "map");
|
|
3928
|
-
c(this, "createLabel",
|
|
3929
|
-
c(this, "createCircle",
|
|
3930
|
-
c(this, "createPolygon",
|
|
3931
|
-
c(this, "createPolyline",
|
|
3932
|
-
c(this, "createRectangle",
|
|
3933
|
-
c(this, "createInfoWindow",
|
|
3934
|
-
c(this, "createInfoBox",
|
|
3935
|
-
c(this, "createMarker",
|
|
3936
|
-
c(this, "createMapTypeControl",
|
|
3937
|
-
c(this, "createZoomControl",
|
|
3938
|
-
c(this, "createScaleControl",
|
|
3982
|
+
c(this, "createLabel", yt.create);
|
|
3983
|
+
c(this, "createCircle", ct.create);
|
|
3984
|
+
c(this, "createPolygon", Ot.create);
|
|
3985
|
+
c(this, "createPolyline", Mt.create);
|
|
3986
|
+
c(this, "createRectangle", wt.create);
|
|
3987
|
+
c(this, "createInfoWindow", pt.create);
|
|
3988
|
+
c(this, "createInfoBox", mt.create);
|
|
3989
|
+
c(this, "createMarker", Te.create);
|
|
3990
|
+
c(this, "createMapTypeControl", rt.create);
|
|
3991
|
+
c(this, "createZoomControl", nt.create);
|
|
3992
|
+
c(this, "createScaleControl", it.create);
|
|
3939
3993
|
this.buildInMapTypeId2BIMT = S.BUILD_IN_MAP_TYPES.getValueMap(B.prototype.getId), this.baiduMapType2BIMT = S.BUILD_IN_MAP_TYPES.getValueMap(B.prototype.asBaiduMapType), this.map = new BMap.Map(e, {
|
|
3940
3994
|
minZoom: r.minZoom && r.minZoom + X,
|
|
3941
3995
|
maxZoom: r.maxZoom && r.maxZoom + X,
|
|
3942
3996
|
mapType: r.buildInMapTypeId && ((s = this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId)) == null ? void 0 : s.asBaiduMapType()),
|
|
3943
3997
|
enableMapClick: !1
|
|
3944
3998
|
// 关闭底图点击功能
|
|
3945
|
-
}), this.map.centerAndZoom(r.center.toBaidu(this.coordType), r.zoom + X), this.setGestureHandling(r.gestureHandling), r.infoWindowMode === "multi" && console.warn("baidu不支持多个InfoWindow, 可能会出现未知问题"), r.mapStyle && this.map.setMapStyleV2(r.mapStyle.toBaidu()), this.setEventTargetDelegate(new
|
|
3999
|
+
}), this.map.centerAndZoom(r.center.toBaidu(this.coordType), r.zoom + X), this.setGestureHandling(r.gestureHandling), r.infoWindowMode === "multi" && console.warn("baidu不支持多个InfoWindow, 可能会出现未知问题"), r.mapStyle && this.map.setMapStyleV2(r.mapStyle.toBaidu()), this.setEventTargetDelegate(new ne(this.map, this)), this.map.addEventListener("addoverlay", (n) => {
|
|
3946
4000
|
const a = n.target.__info_box__;
|
|
3947
4001
|
a && (console.debug("add:info-box", a), this.map.addOverlay(a));
|
|
3948
4002
|
}), this.map.addEventListener("removeoverlay", (n) => {
|
|
@@ -3951,7 +4005,7 @@ class wi extends ot {
|
|
|
3951
4005
|
});
|
|
3952
4006
|
}
|
|
3953
4007
|
setGestureHandling(e = Z.auto) {
|
|
3954
|
-
switch (e === Z.auto && (e = this.element.parentElement &&
|
|
4008
|
+
switch (e === Z.auto && (e = this.element.parentElement && Ye.isScrollable(this.element.parentElement) ? Z.cooperative : Z.greedy), e) {
|
|
3955
4009
|
case Z.cooperative:
|
|
3956
4010
|
this.map.disableScrollWheelZoom(), this.map.enableDragging(), this.map.enableDoubleClickZoom();
|
|
3957
4011
|
break;
|
|
@@ -4081,7 +4135,7 @@ class wi extends ot {
|
|
|
4081
4135
|
}
|
|
4082
4136
|
}
|
|
4083
4137
|
removeCustomControl(e) {
|
|
4084
|
-
e.inner && (
|
|
4138
|
+
e.inner && (se(e.inner instanceof BMap.Control, `control.inner(${e.inner})需要是BMap.Control`), this.map.removeControl(e.inner));
|
|
4085
4139
|
}
|
|
4086
4140
|
createMarkerClusterer(e) {
|
|
4087
4141
|
return new ci(this, e);
|
|
@@ -4096,24 +4150,24 @@ class wi extends ot {
|
|
|
4096
4150
|
return new pi(this, e);
|
|
4097
4151
|
}
|
|
4098
4152
|
}
|
|
4099
|
-
class Ei extends
|
|
4153
|
+
class Ei extends lt {
|
|
4100
4154
|
constructor(e, r) {
|
|
4101
4155
|
var n;
|
|
4102
4156
|
super(e);
|
|
4103
4157
|
c(this, "buildInMapTypeId2BIMT");
|
|
4104
4158
|
c(this, "googleMapTypeId2BIMT");
|
|
4105
4159
|
c(this, "map");
|
|
4106
|
-
c(this, "createLabel",
|
|
4107
|
-
c(this, "createCircle",
|
|
4108
|
-
c(this, "createPolygon",
|
|
4109
|
-
c(this, "createPolyline",
|
|
4110
|
-
c(this, "createRectangle",
|
|
4111
|
-
c(this, "createInfoWindow",
|
|
4112
|
-
c(this, "createInfoBox",
|
|
4113
|
-
c(this, "createMarker",
|
|
4114
|
-
c(this, "createMapTypeControl",
|
|
4115
|
-
c(this, "createZoomControl",
|
|
4116
|
-
c(this, "createScaleControl",
|
|
4160
|
+
c(this, "createLabel", vt.create);
|
|
4161
|
+
c(this, "createCircle", dt.create);
|
|
4162
|
+
c(this, "createPolygon", Ct.create);
|
|
4163
|
+
c(this, "createPolyline", Tt.create);
|
|
4164
|
+
c(this, "createRectangle", Et.create);
|
|
4165
|
+
c(this, "createInfoWindow", gt.create);
|
|
4166
|
+
c(this, "createInfoBox", ft.create);
|
|
4167
|
+
c(this, "createMarker", _t.create);
|
|
4168
|
+
c(this, "createMapTypeControl", xe.create);
|
|
4169
|
+
c(this, "createZoomControl", ot.create);
|
|
4170
|
+
c(this, "createScaleControl", st.create);
|
|
4117
4171
|
this.mapOptions = r, this.buildInMapTypeId2BIMT = S.BUILD_IN_MAP_TYPES.getValueMap(B.prototype.getId), this.googleMapTypeId2BIMT = S.BUILD_IN_MAP_TYPES.getValueMap(B.prototype.getGoogleMapTypeId);
|
|
4118
4172
|
const s = r.buildInMapTypeId && this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId);
|
|
4119
4173
|
this.map = new google.maps.Map(e, {
|
|
@@ -4199,7 +4253,7 @@ class Ei extends ot {
|
|
|
4199
4253
|
this.map.overlayMapTypes.push(e.asGoogleMapType());
|
|
4200
4254
|
}
|
|
4201
4255
|
removeOverlayMapType(e) {
|
|
4202
|
-
|
|
4256
|
+
le.remove(this.map.overlayMapTypes, e.asGoogleMapType());
|
|
4203
4257
|
}
|
|
4204
4258
|
addLayer(e) {
|
|
4205
4259
|
e.asGoogleLayer().setMap(this.map);
|
|
@@ -4238,7 +4292,7 @@ class Ei extends ot {
|
|
|
4238
4292
|
removeCustomControl(e) {
|
|
4239
4293
|
if (e.inner) {
|
|
4240
4294
|
const r = this.map.controls[A.getGoogle().toValue(e.position)];
|
|
4241
|
-
|
|
4295
|
+
le.remove(r, e.inner);
|
|
4242
4296
|
}
|
|
4243
4297
|
}
|
|
4244
4298
|
createMarkerClusterer(e) {
|
|
@@ -4254,7 +4308,7 @@ class Ei extends ot {
|
|
|
4254
4308
|
return new ui(this, e);
|
|
4255
4309
|
}
|
|
4256
4310
|
}
|
|
4257
|
-
class Li extends
|
|
4311
|
+
class Li extends lt {
|
|
4258
4312
|
constructor(e, r) {
|
|
4259
4313
|
var a;
|
|
4260
4314
|
super(e);
|
|
@@ -4262,7 +4316,7 @@ class Li extends ot {
|
|
|
4262
4316
|
c(this, "defaultLayers");
|
|
4263
4317
|
this.mapOptions = r;
|
|
4264
4318
|
const s = Ft().here;
|
|
4265
|
-
|
|
4319
|
+
ke.includes(s.version) || E(`不支持${s.version}, HereMap当前只支持如下版本: ${ke}`);
|
|
4266
4320
|
const n = new H.service.Platform({
|
|
4267
4321
|
app_id: s.key.split(",")[0],
|
|
4268
4322
|
app_code: s.key.split(",")[1]
|
|
@@ -4403,10 +4457,10 @@ class Li extends ot {
|
|
|
4403
4457
|
throw new Error("Method not implemented.");
|
|
4404
4458
|
}
|
|
4405
4459
|
}
|
|
4406
|
-
var z = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here = "here", i))(z || {}),
|
|
4460
|
+
var z = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here = "here", i))(z || {}), Xe;
|
|
4407
4461
|
((i) => {
|
|
4408
4462
|
function t(e, r, s) {
|
|
4409
|
-
const n =
|
|
4463
|
+
const n = Ke.create(s);
|
|
4410
4464
|
switch (e) {
|
|
4411
4465
|
case "google":
|
|
4412
4466
|
return new Ei(r, n);
|
|
@@ -4417,7 +4471,7 @@ var z = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here
|
|
|
4417
4471
|
}
|
|
4418
4472
|
}
|
|
4419
4473
|
i.createMap = t;
|
|
4420
|
-
})(
|
|
4474
|
+
})(Xe || (Xe = {}));
|
|
4421
4475
|
function xi({ type: i, config: t }) {
|
|
4422
4476
|
const e = window, r = Pi(i);
|
|
4423
4477
|
if (e[r])
|
|
@@ -4428,22 +4482,22 @@ function xi({ type: i, config: t }) {
|
|
|
4428
4482
|
key: t.key,
|
|
4429
4483
|
v: "3.52"
|
|
4430
4484
|
// v: config.version,
|
|
4431
|
-
}), google.maps.importLibrary("core")) :
|
|
4485
|
+
}), google.maps.importLibrary("core")) : Dt(`https://maps.googleapis.com/maps/api/js?key=${t.key}&language=${t.language}&v=${t.version}&libraries=${t.libraries.join(",")}`);
|
|
4432
4486
|
case z.baidu:
|
|
4433
|
-
return
|
|
4487
|
+
return Dt(`https://api.map.baidu.com/api?v=${t.version}&ak=${t.key}`);
|
|
4434
4488
|
case z.here:
|
|
4435
|
-
return
|
|
4489
|
+
return ue(de("core", t.version)).then(() => Promise.all([
|
|
4436
4490
|
// 其他大多数模块都可以同时载入
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4491
|
+
ue(de("service", t.version)),
|
|
4492
|
+
ue(de("mapevents", t.version)),
|
|
4493
|
+
ue(de("clustering", t.version)),
|
|
4494
|
+
ue(de("ui", t.version))
|
|
4441
4495
|
])).catch((s) => (delete e[r], Promise.reject(s)));
|
|
4442
4496
|
default:
|
|
4443
|
-
|
|
4497
|
+
Ue(i);
|
|
4444
4498
|
}
|
|
4445
4499
|
}
|
|
4446
|
-
function
|
|
4500
|
+
function de(i, t = ke[0]) {
|
|
4447
4501
|
return `https://js.api.here.com/v3/${t}/mapsjs-${i}.js`;
|
|
4448
4502
|
}
|
|
4449
4503
|
function Pi(i) {
|
|
@@ -4457,7 +4511,7 @@ function Pi(i) {
|
|
|
4457
4511
|
}
|
|
4458
4512
|
}
|
|
4459
4513
|
let ki = 0;
|
|
4460
|
-
function
|
|
4514
|
+
function Dt(i, t = "callback") {
|
|
4461
4515
|
return new Promise((e, r) => {
|
|
4462
4516
|
const s = `__callback${ki++}`;
|
|
4463
4517
|
window[s] = e;
|
|
@@ -4465,7 +4519,7 @@ function $t(i, t = "callback") {
|
|
|
4465
4519
|
n.src = `${i}&${t}=${s}`, n.onerror = r, document.body.appendChild(n);
|
|
4466
4520
|
});
|
|
4467
4521
|
}
|
|
4468
|
-
function
|
|
4522
|
+
function ue(i) {
|
|
4469
4523
|
return new Promise((t, e) => {
|
|
4470
4524
|
const r = document.createElement("script");
|
|
4471
4525
|
r.src = i, r.onload = t, r.onerror = e, document.body.appendChild(r);
|
|
@@ -4497,7 +4551,7 @@ function m(i, t) {
|
|
|
4497
4551
|
default: t
|
|
4498
4552
|
};
|
|
4499
4553
|
}
|
|
4500
|
-
function
|
|
4554
|
+
function Ts(i) {
|
|
4501
4555
|
const t = {};
|
|
4502
4556
|
return Object.entries(i).forEach(([e, r]) => {
|
|
4503
4557
|
const s = `__${e}`;
|
|
@@ -4514,37 +4568,37 @@ function Ms(i) {
|
|
|
4514
4568
|
};
|
|
4515
4569
|
}), t;
|
|
4516
4570
|
}
|
|
4517
|
-
const
|
|
4571
|
+
const pe = {
|
|
4518
4572
|
enumerable: !0,
|
|
4519
4573
|
configurable: !0,
|
|
4520
|
-
get:
|
|
4521
|
-
set:
|
|
4574
|
+
get: fe,
|
|
4575
|
+
set: fe
|
|
4522
4576
|
};
|
|
4523
4577
|
function Ii(i) {
|
|
4524
4578
|
return Object.keys(i).forEach((t) => {
|
|
4525
4579
|
const e = i[t];
|
|
4526
4580
|
let r = !1;
|
|
4527
|
-
typeof e == "function" ? (
|
|
4581
|
+
typeof e == "function" ? (pe.get = e, pe.set = fe, r = !0) : typeof e == "object" && typeof e.get == "function" && (pe.get = e.get, pe.set = e.set, r = !0), r && (i[t] = Object.defineProperty(i, t, pe));
|
|
4528
4582
|
}), i;
|
|
4529
4583
|
}
|
|
4530
|
-
function
|
|
4584
|
+
function Os(i) {
|
|
4531
4585
|
return Ii(i);
|
|
4532
4586
|
}
|
|
4533
4587
|
function mr() {
|
|
4534
|
-
return
|
|
4588
|
+
return Fe();
|
|
4535
4589
|
}
|
|
4536
|
-
function
|
|
4590
|
+
function Le(i, t) {
|
|
4537
4591
|
const e = i.$options[t];
|
|
4538
4592
|
if (e)
|
|
4539
4593
|
for (const r of e)
|
|
4540
4594
|
r.call(i);
|
|
4541
4595
|
}
|
|
4542
|
-
function
|
|
4596
|
+
function Cs(i, t) {
|
|
4543
4597
|
for (const e of i)
|
|
4544
4598
|
if (e.$options.name === t.name)
|
|
4545
4599
|
return e;
|
|
4546
4600
|
}
|
|
4547
|
-
function
|
|
4601
|
+
function ws(i, t) {
|
|
4548
4602
|
if (!i.default)
|
|
4549
4603
|
return;
|
|
4550
4604
|
const e = i.default();
|
|
@@ -4555,9 +4609,9 @@ function Cs(i, t) {
|
|
|
4555
4609
|
function Si(i, t) {
|
|
4556
4610
|
const e = {}, r = {}, s = {};
|
|
4557
4611
|
return Object.keys(i).forEach((n) => {
|
|
4558
|
-
n.startsWith("on") ? e[
|
|
4612
|
+
n.startsWith("on") ? e[_e.pascal2kebab(n.substring(2))] = i[n] : r[n] = i[n];
|
|
4559
4613
|
}), t && Object.keys(t).forEach((n) => {
|
|
4560
|
-
n.startsWith("on") && (s[
|
|
4614
|
+
n.startsWith("on") && (s[_e.pascal2kebab(n.substring(2))] = t[n]);
|
|
4561
4615
|
}), {
|
|
4562
4616
|
/** class/style/未声明的属性 等 */
|
|
4563
4617
|
binds: r,
|
|
@@ -4568,12 +4622,12 @@ function Si(i, t) {
|
|
|
4568
4622
|
};
|
|
4569
4623
|
}
|
|
4570
4624
|
function F(i, t) {
|
|
4571
|
-
return
|
|
4625
|
+
return Nt(() => Si(i, t));
|
|
4572
4626
|
}
|
|
4573
4627
|
function L() {
|
|
4574
4628
|
return Function;
|
|
4575
4629
|
}
|
|
4576
|
-
const
|
|
4630
|
+
const Es = () => {
|
|
4577
4631
|
let i, t;
|
|
4578
4632
|
function e(s) {
|
|
4579
4633
|
console.log(s), i = s && s.type, t = Date.now();
|
|
@@ -4582,18 +4636,17 @@ const ws = () => {
|
|
|
4582
4636
|
((s && s.type) !== i || Date.now() - (t ?? 0) > 1e3) && e(s);
|
|
4583
4637
|
}
|
|
4584
4638
|
return { eventLog: e, eventLogLess: r };
|
|
4585
|
-
},
|
|
4586
|
-
inject: [
|
|
4587
|
-
data: () => ({ $_isCreated: !1 }),
|
|
4639
|
+
}, Lt = "$map", Oe = "onCreate", Ce = "onDestroy", P = C({
|
|
4640
|
+
inject: [Lt],
|
|
4588
4641
|
mounted() {
|
|
4589
|
-
|
|
4642
|
+
Le(this, Oe);
|
|
4590
4643
|
},
|
|
4591
4644
|
beforeUnmount() {
|
|
4592
|
-
|
|
4645
|
+
Le(this, Ce);
|
|
4593
4646
|
},
|
|
4594
4647
|
methods: {
|
|
4595
4648
|
recreate() {
|
|
4596
|
-
|
|
4649
|
+
Le(this, Ce), Le(this, Oe);
|
|
4597
4650
|
}
|
|
4598
4651
|
},
|
|
4599
4652
|
render() {
|
|
@@ -4603,7 +4656,7 @@ const ws = () => {
|
|
|
4603
4656
|
name: "tg-map",
|
|
4604
4657
|
provide() {
|
|
4605
4658
|
return {
|
|
4606
|
-
[
|
|
4659
|
+
[Lt]: Nt(() => this.map)
|
|
4607
4660
|
};
|
|
4608
4661
|
},
|
|
4609
4662
|
inheritAttrs: !1,
|
|
@@ -4664,13 +4717,13 @@ const ws = () => {
|
|
|
4664
4717
|
},
|
|
4665
4718
|
data() {
|
|
4666
4719
|
return {
|
|
4667
|
-
map:
|
|
4720
|
+
map: qe(),
|
|
4668
4721
|
isDestroyed: !1
|
|
4669
4722
|
};
|
|
4670
4723
|
},
|
|
4671
4724
|
computed: {
|
|
4672
4725
|
propsJson() {
|
|
4673
|
-
return
|
|
4726
|
+
return ve.toJsonSafely(this.$props);
|
|
4674
4727
|
}
|
|
4675
4728
|
},
|
|
4676
4729
|
watch: {
|
|
@@ -4711,7 +4764,7 @@ const ws = () => {
|
|
|
4711
4764
|
console.warn(`tg-map(type=${i})已销毁, 不需要继续执行`);
|
|
4712
4765
|
return;
|
|
4713
4766
|
}
|
|
4714
|
-
const t =
|
|
4767
|
+
const t = Xe.createMap(
|
|
4715
4768
|
i,
|
|
4716
4769
|
this.$refs.map,
|
|
4717
4770
|
/* options: */
|
|
@@ -4731,7 +4784,7 @@ const ws = () => {
|
|
|
4731
4784
|
t,
|
|
4732
4785
|
/* excludes: */
|
|
4733
4786
|
["load"]
|
|
4734
|
-
), this.$emit("load", t),
|
|
4787
|
+
), this.$emit("load", t), Gt([
|
|
4735
4788
|
() => this.zoom,
|
|
4736
4789
|
() => this.center
|
|
4737
4790
|
//
|
|
@@ -4766,16 +4819,16 @@ const U = (i, t) => {
|
|
|
4766
4819
|
return e;
|
|
4767
4820
|
};
|
|
4768
4821
|
function Ri(i, t, e, r, s, n) {
|
|
4769
|
-
return W(), j("div",
|
|
4822
|
+
return W(), j("div", ce({ class: "tg-map" }, i.attrs.binds), [
|
|
4770
4823
|
Or("div", {
|
|
4771
4824
|
ref: "map",
|
|
4772
|
-
class:
|
|
4825
|
+
class: $e({
|
|
4773
4826
|
"tg-map__map": !0,
|
|
4774
4827
|
[`tg-map__map--hide-logo-${i.type}`]: i.hideLogo
|
|
4775
4828
|
})
|
|
4776
4829
|
}, null, 2),
|
|
4777
|
-
|
|
4778
|
-
i.map ? G(i.$slots, "default", { key: 1 }) :
|
|
4830
|
+
Fe("", !0),
|
|
4831
|
+
i.map ? G(i.$slots, "default", { key: 1 }) : Fe("", !0),
|
|
4779
4832
|
G(i.$slots, "overlay")
|
|
4780
4833
|
], 16);
|
|
4781
4834
|
}
|
|
@@ -4822,13 +4875,13 @@ const zi = C({
|
|
|
4822
4875
|
});
|
|
4823
4876
|
function Ni(i, t, e, r, s, n) {
|
|
4824
4877
|
return W(), j("div", {
|
|
4825
|
-
class:
|
|
4878
|
+
class: $e(i.$options.name),
|
|
4826
4879
|
style: Cr({ left: i.dimen(i.left), top: i.dimen(i.topValue), right: i.dimen(i.right), bottom: i.dimen(i.bottom) })
|
|
4827
4880
|
}, [
|
|
4828
4881
|
G(i.$slots, "default")
|
|
4829
4882
|
], 6);
|
|
4830
4883
|
}
|
|
4831
|
-
const
|
|
4884
|
+
const Ls = /* @__PURE__ */ U(zi, [["render", Ni]]), Gi = C({
|
|
4832
4885
|
name: "tg-custom-control",
|
|
4833
4886
|
mixins: [P],
|
|
4834
4887
|
props: {
|
|
@@ -4845,7 +4898,7 @@ const Es = /* @__PURE__ */ U(zi, [["render", Ni]]), Gi = C({
|
|
|
4845
4898
|
}
|
|
4846
4899
|
},
|
|
4847
4900
|
onCreate() {
|
|
4848
|
-
|
|
4901
|
+
we(this.$parent, $i) || console.warn("请将tg-custom-control放到tg-map中");
|
|
4849
4902
|
const { $el: i } = this, t = class extends Qr {
|
|
4850
4903
|
onCreateElement() {
|
|
4851
4904
|
return i;
|
|
@@ -4859,12 +4912,12 @@ const Es = /* @__PURE__ */ U(zi, [["render", Ni]]), Gi = C({
|
|
|
4859
4912
|
});
|
|
4860
4913
|
function Zi(i, t, e, r, s, n) {
|
|
4861
4914
|
return W(), j("div", {
|
|
4862
|
-
class:
|
|
4915
|
+
class: $e(i.$options.name)
|
|
4863
4916
|
}, [
|
|
4864
4917
|
G(i.$slots, "default")
|
|
4865
4918
|
], 2);
|
|
4866
4919
|
}
|
|
4867
|
-
const
|
|
4920
|
+
const xs = /* @__PURE__ */ U(Gi, [["render", Zi]]), Ps = C({
|
|
4868
4921
|
name: "tg-map-type-control",
|
|
4869
4922
|
mixins: [P],
|
|
4870
4923
|
props: {
|
|
@@ -4897,7 +4950,7 @@ const Ls = /* @__PURE__ */ U(Gi, [["render", Zi]]), xs = C({
|
|
|
4897
4950
|
onDestroy() {
|
|
4898
4951
|
this.$map.removeControl(this.control);
|
|
4899
4952
|
}
|
|
4900
|
-
}),
|
|
4953
|
+
}), ks = C({
|
|
4901
4954
|
name: "tg-scale-control",
|
|
4902
4955
|
mixins: [P],
|
|
4903
4956
|
props: {
|
|
@@ -4931,29 +4984,21 @@ function fr() {
|
|
|
4931
4984
|
return t;
|
|
4932
4985
|
}
|
|
4933
4986
|
function Wi() {
|
|
4934
|
-
const i = Er(
|
|
4987
|
+
const i = Er(Lt);
|
|
4935
4988
|
let t, e;
|
|
4936
|
-
i == null && E(`<${fr() || "unknown"}>必须作为<tg-map>的子代组件`)
|
|
4937
|
-
let r = !1;
|
|
4938
|
-
return {
|
|
4989
|
+
return i == null && E(`<${fr() || "unknown"}>必须作为<tg-map>的子代组件`), {
|
|
4939
4990
|
mapRef: i,
|
|
4940
4991
|
/** 读取map对象, 只要放在<tg-map>里面的组件(除#overlay插槽外)都能够立即读取到map对象 */
|
|
4941
4992
|
get map() {
|
|
4942
4993
|
return i.value ?? E("map尚未初始化");
|
|
4943
4994
|
},
|
|
4944
4995
|
/** 地图元素创建回调 */
|
|
4945
|
-
[
|
|
4946
|
-
|
|
4947
|
-
r ? process.env.NODE_ENV !== "production" && console.warn(`${te}调用时机不对, 原因未知, 虚拟DOM太过频繁的刷新可能导致该问题🤔️`) : (s(), r = !0);
|
|
4948
|
-
};
|
|
4949
|
-
Lr(n), t && E(`${te}只能调用一次`), t = n;
|
|
4996
|
+
[Oe](r) {
|
|
4997
|
+
Lr(r), t && E(`${Oe}只能调用一次`), t = r;
|
|
4950
4998
|
},
|
|
4951
4999
|
/** 地图元素销毁回调 */
|
|
4952
|
-
[
|
|
4953
|
-
|
|
4954
|
-
r ? (s(), r = !1) : process.env.NODE_ENV !== "production" && console.warn(`${re}调用时机不对, 原因未知, 虚拟DOM太过频繁的刷新可能导致该问题🤔️`);
|
|
4955
|
-
};
|
|
4956
|
-
xr(n), e && E(`${re}只能调用一次`), e = n;
|
|
5000
|
+
[Ce](r) {
|
|
5001
|
+
xr(r), e && E(`${Ce}只能调用一次`), e = r;
|
|
4957
5002
|
},
|
|
4958
5003
|
/** 重新创建地图元素 */
|
|
4959
5004
|
recreate() {
|
|
@@ -4961,7 +5006,7 @@ function Wi() {
|
|
|
4961
5006
|
}
|
|
4962
5007
|
};
|
|
4963
5008
|
}
|
|
4964
|
-
const
|
|
5009
|
+
const Bs = C({
|
|
4965
5010
|
name: "tg-zoom-control",
|
|
4966
5011
|
props: {
|
|
4967
5012
|
position: N(k, k.RIGHT_BOTTOM)
|
|
@@ -4973,7 +5018,7 @@ const ks = C({
|
|
|
4973
5018
|
t = e.createZoomControl(i), e.addControl(t);
|
|
4974
5019
|
}), s(() => {
|
|
4975
5020
|
e.removeControl(t);
|
|
4976
|
-
}),
|
|
5021
|
+
}), Gt(() => i.position, (n) => {
|
|
4977
5022
|
t.setPosition(n);
|
|
4978
5023
|
}), mr;
|
|
4979
5024
|
}
|
|
@@ -5037,18 +5082,18 @@ const ks = C({
|
|
|
5037
5082
|
this.markers.push(i), this.isInitiated() && this.clusterer.addMarker(i);
|
|
5038
5083
|
},
|
|
5039
5084
|
onRemoveMarker(i) {
|
|
5040
|
-
this.isInitiated() && this.clusterer.removeMarker(i),
|
|
5085
|
+
this.isInitiated() && this.clusterer.removeMarker(i), ae.remove(this.markers, i);
|
|
5041
5086
|
}
|
|
5042
5087
|
}
|
|
5043
5088
|
});
|
|
5044
5089
|
function ji(i, t, e, r, s, n) {
|
|
5045
5090
|
return W(), j("div", {
|
|
5046
|
-
class:
|
|
5091
|
+
class: $e(i.$options.name)
|
|
5047
5092
|
}, [
|
|
5048
5093
|
G(i.$slots, "default")
|
|
5049
5094
|
], 2);
|
|
5050
5095
|
}
|
|
5051
|
-
const Vi = /* @__PURE__ */ U(Hi, [["render", ji]]),
|
|
5096
|
+
const Vi = /* @__PURE__ */ U(Hi, [["render", ji]]), Is = C({
|
|
5052
5097
|
name: "tg-traffic-layer",
|
|
5053
5098
|
mixins: [P],
|
|
5054
5099
|
// 请直接使用v-if来控制它的显隐
|
|
@@ -5066,7 +5111,7 @@ const Vi = /* @__PURE__ */ U(Hi, [["render", ji]]), Bs = C({
|
|
|
5066
5111
|
onDestroy() {
|
|
5067
5112
|
this.$map.removeLayer(this.layer);
|
|
5068
5113
|
}
|
|
5069
|
-
}),
|
|
5114
|
+
}), Ss = C({
|
|
5070
5115
|
name: "tg-circle",
|
|
5071
5116
|
mixins: [P],
|
|
5072
5117
|
inheritAttrs: !1,
|
|
@@ -5097,7 +5142,7 @@ const Vi = /* @__PURE__ */ U(Hi, [["render", ji]]), Bs = C({
|
|
|
5097
5142
|
center(i) {
|
|
5098
5143
|
if (this.emittedCenter != null) {
|
|
5099
5144
|
const t = this.emittedCenter;
|
|
5100
|
-
if (this.emittedCenter = void 0, t ===
|
|
5145
|
+
if (this.emittedCenter = void 0, t === De(i))
|
|
5101
5146
|
return;
|
|
5102
5147
|
}
|
|
5103
5148
|
this.overlay.setCenter(i);
|
|
@@ -5165,7 +5210,7 @@ const Ui = C({
|
|
|
5165
5210
|
name: "tg-element-overlay",
|
|
5166
5211
|
mixins: [P],
|
|
5167
5212
|
props: {
|
|
5168
|
-
mapPane: N(
|
|
5213
|
+
mapPane: N(be, be.overlayMouseTarget),
|
|
5169
5214
|
position: R(y)
|
|
5170
5215
|
},
|
|
5171
5216
|
setup() {
|
|
@@ -5194,13 +5239,13 @@ const Ui = C({
|
|
|
5194
5239
|
}
|
|
5195
5240
|
});
|
|
5196
5241
|
function qi(i, t, e, r, s, n) {
|
|
5197
|
-
return W(), j("div",
|
|
5242
|
+
return W(), j("div", ce({
|
|
5198
5243
|
class: i.$options.name
|
|
5199
5244
|
}, i.$attrs), [
|
|
5200
5245
|
G(i.$slots, "default")
|
|
5201
5246
|
], 16);
|
|
5202
5247
|
}
|
|
5203
|
-
const
|
|
5248
|
+
const As = /* @__PURE__ */ U(Ui, [["render", qi]]), Yi = C({
|
|
5204
5249
|
name: "tg-marker",
|
|
5205
5250
|
mixins: [P],
|
|
5206
5251
|
inheritAttrs: !1,
|
|
@@ -5221,8 +5266,8 @@ const Ss = /* @__PURE__ */ U(Ui, [["render", qi]]), Yi = C({
|
|
|
5221
5266
|
return {
|
|
5222
5267
|
attrs: F(t, i),
|
|
5223
5268
|
marker: void 0,
|
|
5224
|
-
label:
|
|
5225
|
-
info:
|
|
5269
|
+
label: qe(),
|
|
5270
|
+
info: qe(),
|
|
5226
5271
|
emittedPosition: void 0
|
|
5227
5272
|
};
|
|
5228
5273
|
},
|
|
@@ -5230,7 +5275,7 @@ const Ss = /* @__PURE__ */ U(Ui, [["render", qi]]), Yi = C({
|
|
|
5230
5275
|
position(i) {
|
|
5231
5276
|
if (this.emittedPosition != null) {
|
|
5232
5277
|
const t = this.emittedPosition;
|
|
5233
|
-
if (this.emittedPosition = void 0, t ===
|
|
5278
|
+
if (this.emittedPosition = void 0, t === De(i))
|
|
5234
5279
|
return;
|
|
5235
5280
|
}
|
|
5236
5281
|
this.marker.setPosition(i);
|
|
@@ -5242,7 +5287,7 @@ const Ss = /* @__PURE__ */ U(Ui, [["render", qi]]), Yi = C({
|
|
|
5242
5287
|
i ? this.marker.setIcon(i) : this.recreate();
|
|
5243
5288
|
},
|
|
5244
5289
|
clickable(i) {
|
|
5245
|
-
this.marker instanceof
|
|
5290
|
+
this.marker instanceof Te ? this.recreate() : this.marker.setClickable(i);
|
|
5246
5291
|
},
|
|
5247
5292
|
draggable(i) {
|
|
5248
5293
|
this.marker.setDraggable(i);
|
|
@@ -5254,7 +5299,7 @@ const Ss = /* @__PURE__ */ U(Ui, [["render", qi]]), Yi = C({
|
|
|
5254
5299
|
this.recreate();
|
|
5255
5300
|
},
|
|
5256
5301
|
zIndex(i) {
|
|
5257
|
-
this.marker instanceof
|
|
5302
|
+
this.marker instanceof Te ? this.recreate() : this.marker.setZIndex(i);
|
|
5258
5303
|
},
|
|
5259
5304
|
visible(i) {
|
|
5260
5305
|
this.marker.setVisible(i);
|
|
@@ -5270,7 +5315,7 @@ const Ss = /* @__PURE__ */ U(Ui, [["render", qi]]), Yi = C({
|
|
|
5270
5315
|
},
|
|
5271
5316
|
methods: {
|
|
5272
5317
|
$clusterer() {
|
|
5273
|
-
return
|
|
5318
|
+
return we(this.$parent, Vi);
|
|
5274
5319
|
},
|
|
5275
5320
|
onAddLabel(i) {
|
|
5276
5321
|
this.label = i, this.marker && this.marker.setLabel(i.overlay);
|
|
@@ -5290,13 +5335,13 @@ const Ss = /* @__PURE__ */ U(Ui, [["render", qi]]), Yi = C({
|
|
|
5290
5335
|
}
|
|
5291
5336
|
});
|
|
5292
5337
|
function Ki(i, t, e, r, s, n) {
|
|
5293
|
-
return W(), j("div",
|
|
5338
|
+
return W(), j("div", ce({
|
|
5294
5339
|
class: i.$options.name
|
|
5295
5340
|
}, i.attrs.binds), [
|
|
5296
5341
|
G(i.$slots, "default")
|
|
5297
5342
|
], 16);
|
|
5298
5343
|
}
|
|
5299
|
-
const
|
|
5344
|
+
const xt = /* @__PURE__ */ U(Yi, [["render", Ki]]), Xi = C({
|
|
5300
5345
|
name: "tg-info-box",
|
|
5301
5346
|
mixins: [P],
|
|
5302
5347
|
inheritAttrs: !1,
|
|
@@ -5359,7 +5404,7 @@ const Et = /* @__PURE__ */ U(Yi, [["render", Ki]]), Xi = C({
|
|
|
5359
5404
|
return this.$el;
|
|
5360
5405
|
},
|
|
5361
5406
|
$marker() {
|
|
5362
|
-
return
|
|
5407
|
+
return we(this.$parent, xt);
|
|
5363
5408
|
},
|
|
5364
5409
|
open(i) {
|
|
5365
5410
|
this.overlay.open(i);
|
|
@@ -5370,13 +5415,13 @@ const Et = /* @__PURE__ */ U(Yi, [["render", Ki]]), Xi = C({
|
|
|
5370
5415
|
}
|
|
5371
5416
|
});
|
|
5372
5417
|
function Ji(i, t, e, r, s, n) {
|
|
5373
|
-
return W(), j("div",
|
|
5418
|
+
return W(), j("div", ce({
|
|
5374
5419
|
class: i.$options.name
|
|
5375
5420
|
}, i.attrs.binds), [
|
|
5376
5421
|
G(i.$slots, "default")
|
|
5377
5422
|
], 16);
|
|
5378
5423
|
}
|
|
5379
|
-
const
|
|
5424
|
+
const Rs = /* @__PURE__ */ U(Xi, [["render", Ji]]), Qi = C({
|
|
5380
5425
|
name: "tg-info-window",
|
|
5381
5426
|
mixins: [P],
|
|
5382
5427
|
inheritAttrs: !1,
|
|
@@ -5417,7 +5462,7 @@ const As = /* @__PURE__ */ U(Xi, [["render", Ji]]), Qi = C({
|
|
|
5417
5462
|
return this.$el;
|
|
5418
5463
|
},
|
|
5419
5464
|
$marker() {
|
|
5420
|
-
return
|
|
5465
|
+
return we(this.$parent, xt);
|
|
5421
5466
|
},
|
|
5422
5467
|
getOptions() {
|
|
5423
5468
|
return {
|
|
@@ -5441,7 +5486,7 @@ const As = /* @__PURE__ */ U(Xi, [["render", Ji]]), Qi = C({
|
|
|
5441
5486
|
}
|
|
5442
5487
|
});
|
|
5443
5488
|
function es(i, t, e, r, s, n) {
|
|
5444
|
-
return Pr((W(), j("div",
|
|
5489
|
+
return Pr((W(), j("div", ce({
|
|
5445
5490
|
class: i.$options.name
|
|
5446
5491
|
}, i.attrs.binds), [
|
|
5447
5492
|
G(i.$slots, "default")
|
|
@@ -5449,7 +5494,7 @@ function es(i, t, e, r, s, n) {
|
|
|
5449
5494
|
[kr, i.show]
|
|
5450
5495
|
]);
|
|
5451
5496
|
}
|
|
5452
|
-
const
|
|
5497
|
+
const $s = /* @__PURE__ */ U(Qi, [["render", es]]), ts = C({
|
|
5453
5498
|
name: "tg-label",
|
|
5454
5499
|
mixins: [P],
|
|
5455
5500
|
inheritAttrs: !1,
|
|
@@ -5457,7 +5502,7 @@ const Rs = /* @__PURE__ */ U(Qi, [["render", es]]), ts = C({
|
|
|
5457
5502
|
position: m(y),
|
|
5458
5503
|
offset: m(Object),
|
|
5459
5504
|
zIndex: m(Number),
|
|
5460
|
-
mapPane: N(
|
|
5505
|
+
mapPane: N(be)
|
|
5461
5506
|
},
|
|
5462
5507
|
emits: void 0,
|
|
5463
5508
|
setup(i, { attrs: t }) {
|
|
@@ -5492,7 +5537,7 @@ const Rs = /* @__PURE__ */ U(Qi, [["render", es]]), ts = C({
|
|
|
5492
5537
|
return (i = this.$marker()) == null ? void 0 : i.marker;
|
|
5493
5538
|
},
|
|
5494
5539
|
$marker() {
|
|
5495
|
-
return
|
|
5540
|
+
return we(this.$parent, xt);
|
|
5496
5541
|
},
|
|
5497
5542
|
getOptions() {
|
|
5498
5543
|
return {
|
|
@@ -5512,13 +5557,13 @@ const Rs = /* @__PURE__ */ U(Qi, [["render", es]]), ts = C({
|
|
|
5512
5557
|
}
|
|
5513
5558
|
});
|
|
5514
5559
|
function rs(i, t, e, r, s, n) {
|
|
5515
|
-
return W(), j("div",
|
|
5560
|
+
return W(), j("div", ce({
|
|
5516
5561
|
class: i.$options.name
|
|
5517
5562
|
}, i.attrs.binds), [
|
|
5518
5563
|
G(i.$slots, "default")
|
|
5519
5564
|
], 16);
|
|
5520
5565
|
}
|
|
5521
|
-
const
|
|
5566
|
+
const Ds = /* @__PURE__ */ U(ts, [["render", rs]]), zs = C({
|
|
5522
5567
|
name: "tg-polygon",
|
|
5523
5568
|
mixins: [P],
|
|
5524
5569
|
inheritAttrs: !1,
|
|
@@ -5547,7 +5592,7 @@ const $s = /* @__PURE__ */ U(ts, [["render", rs]]), Ds = C({
|
|
|
5547
5592
|
handler(i) {
|
|
5548
5593
|
if (this.emittedPaths != null) {
|
|
5549
5594
|
const t = this.emittedPaths;
|
|
5550
|
-
if (this.emittedPaths = void 0, t.length === i.length && t.every((e, r) => e ===
|
|
5595
|
+
if (this.emittedPaths = void 0, t.length === i.length && t.every((e, r) => e === De(i[r])))
|
|
5551
5596
|
return;
|
|
5552
5597
|
}
|
|
5553
5598
|
this.overlay.setPaths(i);
|
|
@@ -5587,7 +5632,7 @@ const $s = /* @__PURE__ */ U(ts, [["render", rs]]), Ds = C({
|
|
|
5587
5632
|
onDestroy() {
|
|
5588
5633
|
this.$map.removeOverlay(this.overlay);
|
|
5589
5634
|
}
|
|
5590
|
-
}),
|
|
5635
|
+
}), Ns = C({
|
|
5591
5636
|
name: "tg-polyline",
|
|
5592
5637
|
mixins: [P],
|
|
5593
5638
|
inheritAttrs: !1,
|
|
@@ -5614,7 +5659,7 @@ const $s = /* @__PURE__ */ U(ts, [["render", rs]]), Ds = C({
|
|
|
5614
5659
|
handler(i) {
|
|
5615
5660
|
if (this.emittedPath != null) {
|
|
5616
5661
|
const t = this.emittedPath;
|
|
5617
|
-
if (this.emittedPath = void 0, t ===
|
|
5662
|
+
if (this.emittedPath = void 0, t === De(i))
|
|
5618
5663
|
return;
|
|
5619
5664
|
}
|
|
5620
5665
|
this.overlay.setPath(i);
|
|
@@ -5648,7 +5693,7 @@ const $s = /* @__PURE__ */ U(ts, [["render", rs]]), Ds = C({
|
|
|
5648
5693
|
onDestroy() {
|
|
5649
5694
|
this.$map.removeOverlay(this.overlay);
|
|
5650
5695
|
}
|
|
5651
|
-
}),
|
|
5696
|
+
}), Gs = C({
|
|
5652
5697
|
name: "tg-rectangle",
|
|
5653
5698
|
mixins: [P],
|
|
5654
5699
|
inheritAttrs: !1,
|
|
@@ -5714,14 +5759,14 @@ const $s = /* @__PURE__ */ U(ts, [["render", rs]]), Ds = C({
|
|
|
5714
5759
|
onDestroy() {
|
|
5715
5760
|
this.$map.removeOverlay(this.overlay);
|
|
5716
5761
|
}
|
|
5717
|
-
}), is = ["beforeUpdate", "updated"],
|
|
5762
|
+
}), is = ["beforeUpdate", "updated"], Zs = {
|
|
5718
5763
|
install(i, t = {}) {
|
|
5719
5764
|
if (t.enable !== !1) {
|
|
5720
5765
|
const e = C({
|
|
5721
5766
|
beforeCreate() {
|
|
5722
5767
|
const r = fr() ?? "", n = (t.nameRegex || /^[A-Z]/).test(r) ? (a) => {
|
|
5723
5768
|
t.hookNames ? t.hookNames.includes(a) && console.debug("[lifecycle]", r, a) : is.includes(a) || console.debug("[lifecycle]", r, a);
|
|
5724
|
-
} :
|
|
5769
|
+
} : fe;
|
|
5725
5770
|
n("beforeCreate"), this.__life_impl = n;
|
|
5726
5771
|
},
|
|
5727
5772
|
created() {
|
|
@@ -5761,16 +5806,16 @@ const $s = /* @__PURE__ */ U(ts, [["render", rs]]), Ds = C({
|
|
|
5761
5806
|
}
|
|
5762
5807
|
}
|
|
5763
5808
|
}, ss = 6378137;
|
|
5764
|
-
function
|
|
5809
|
+
function me(i) {
|
|
5765
5810
|
return i * Math.PI / 180;
|
|
5766
5811
|
}
|
|
5767
|
-
function
|
|
5812
|
+
function zt(i) {
|
|
5768
5813
|
return i * 180 / Math.PI;
|
|
5769
5814
|
}
|
|
5770
5815
|
function ns(i, t) {
|
|
5771
5816
|
if (i.lat === t.lat && i.lng === t.lng)
|
|
5772
5817
|
return 0;
|
|
5773
|
-
const e =
|
|
5818
|
+
const e = me((i.lat + t.lat) / 2), r = me((i.lat - t.lat) / 2), s = me((i.lng - t.lng) / 2);
|
|
5774
5819
|
let n = Math.sin(r), a = Math.sin(s), h = Math.sin(e);
|
|
5775
5820
|
const o = ss, l = 1 / 298.257;
|
|
5776
5821
|
n = n * n, a = a * a, h = h * h;
|
|
@@ -5778,149 +5823,154 @@ function ns(i, t) {
|
|
|
5778
5823
|
return _ * (1 + l * (M * h * (1 - n) - g * (1 - h) * n));
|
|
5779
5824
|
}
|
|
5780
5825
|
function os(i, t, e) {
|
|
5781
|
-
const s = 63567523142e-4, n = 1 / 298.257223563, a =
|
|
5826
|
+
const s = 63567523142e-4, n = 1 / 298.257223563, a = me(t), h = Math.sin(a), o = Math.cos(a), l = (1 - n) * Math.tan(me(i.lat)), d = 1 / Math.sqrt(1 + l * l), u = l * d, p = Math.atan2(l, o), b = d * h, _ = 1 - b * b, M = _ * (6378137 * 6378137 - s * s) / (s * s), g = 1 + M / 16384 * (4096 + M * (-768 + M * (320 - 175 * M))), f = M / 1024 * (256 + M * (-128 + M * (74 - 47 * M)));
|
|
5782
5827
|
let v = 0, O = 0, x = 0, w = e / (s * g), K = 2 * Math.PI;
|
|
5783
5828
|
for (; Math.abs(w - K) > 1e-12; ) {
|
|
5784
5829
|
v = Math.cos(2 * p + w), O = Math.sin(w), x = Math.cos(w);
|
|
5785
5830
|
const _r = f * O * (v + f / 4 * (x * (-1 + 2 * v * v) - f / 6 * v * (-3 + 4 * O * O) * (-3 + 4 * v * v)));
|
|
5786
5831
|
K = w, w = e / (s * g) + _r;
|
|
5787
5832
|
}
|
|
5788
|
-
const
|
|
5833
|
+
const te = u * O - d * x * o, Ze = Math.atan2(
|
|
5789
5834
|
u * x + d * O * o,
|
|
5790
|
-
(1 - n) * Math.sqrt(b * b +
|
|
5791
|
-
), yr = Math.atan2(O * h, d * x - u * O * o),
|
|
5792
|
-
return { lng: i.lng +
|
|
5835
|
+
(1 - n) * Math.sqrt(b * b + te * te)
|
|
5836
|
+
), yr = Math.atan2(O * h, d * x - u * O * o), We = n / 16 * _ * (4 + n * (4 - 3 * _)), vr = yr - (1 - We) * n * b * (w + We * O * (v + We * x * (-1 + 2 * v * v)));
|
|
5837
|
+
return { lng: i.lng + zt(vr), lat: zt(Ze) };
|
|
5793
5838
|
}
|
|
5794
|
-
const
|
|
5839
|
+
const Ws = {
|
|
5795
5840
|
getDistance: ns,
|
|
5796
5841
|
getDestination: os
|
|
5797
|
-
},
|
|
5842
|
+
}, Hs = {
|
|
5798
5843
|
install(i, t) {
|
|
5799
5844
|
Yr(t);
|
|
5800
5845
|
const e = i.config.optionMergeStrategies;
|
|
5801
|
-
e[
|
|
5846
|
+
e[Oe] = e[Ce] = (r, s) => r ? [...new Set([].concat(r, s))] : Array.isArray(s) ? s : [s];
|
|
5802
5847
|
}
|
|
5803
5848
|
};
|
|
5804
5849
|
export {
|
|
5805
5850
|
Kt as AbstractControl,
|
|
5806
|
-
|
|
5807
|
-
|
|
5851
|
+
lt as AbstractMap,
|
|
5852
|
+
ae as Arrays,
|
|
5808
5853
|
rr as Autocomplete,
|
|
5809
5854
|
ni as BaiduAutocomplete,
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5855
|
+
ct as BaiduCircle,
|
|
5856
|
+
et as BaiduControl,
|
|
5857
|
+
mt as BaiduInfoBoxOverlay,
|
|
5858
|
+
pt as BaiduInfoWindow,
|
|
5859
|
+
rt as BaiduMapTypeControl,
|
|
5860
|
+
Te as BaiduMarker,
|
|
5816
5861
|
ci as BaiduMarkerClusterer,
|
|
5817
|
-
|
|
5862
|
+
Ne as BaiduOverlay,
|
|
5818
5863
|
pi as BaiduPlacesService,
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5864
|
+
bt as BaiduPolyShape,
|
|
5865
|
+
Ot as BaiduPolygon,
|
|
5866
|
+
Mt as BaiduPolyline,
|
|
5867
|
+
wt as BaiduRectangle,
|
|
5868
|
+
it as BaiduScaleControl,
|
|
5824
5869
|
mi as BaiduSearchBox,
|
|
5825
|
-
|
|
5826
|
-
|
|
5870
|
+
nt as BaiduZoomControl,
|
|
5871
|
+
B as BuildInMapType,
|
|
5872
|
+
Xt as BuildInMapTypeId,
|
|
5873
|
+
ge as CachedValue,
|
|
5827
5874
|
k as ControlPosition,
|
|
5828
5875
|
A as ControlPositionConverter,
|
|
5829
5876
|
Q as CoordType,
|
|
5830
5877
|
Qr as CustomControl,
|
|
5831
5878
|
Jr as FastFindValues,
|
|
5832
5879
|
si as GoogleAutocomplete,
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5880
|
+
dt as GoogleCircle,
|
|
5881
|
+
tt as GoogleControl,
|
|
5882
|
+
ft as GoogleInfoBoxOverlay,
|
|
5883
|
+
gt as GoogleInfoWindow,
|
|
5884
|
+
xe as GoogleMapTypeControl,
|
|
5885
|
+
_t as GoogleMarker,
|
|
5839
5886
|
di as GoogleMarkerClusterer,
|
|
5840
|
-
|
|
5887
|
+
ht as GoogleOverlay,
|
|
5841
5888
|
ui as GooglePlacesService,
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5889
|
+
Ct as GooglePolygon,
|
|
5890
|
+
Tt as GooglePolyline,
|
|
5891
|
+
Et as GoogleRectangle,
|
|
5892
|
+
st as GoogleScaleControl,
|
|
5846
5893
|
gi as GoogleSearchBox,
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5894
|
+
ot as GoogleZoomControl,
|
|
5895
|
+
Se as Icon,
|
|
5896
|
+
ys as ImageMapType,
|
|
5897
|
+
ut as InfoWindow,
|
|
5898
|
+
It as KeyValue,
|
|
5851
5899
|
y as LatLng,
|
|
5852
5900
|
I as LatLngBounds,
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5901
|
+
Zs as LifecycleLogPlugin,
|
|
5902
|
+
Oe as MIXIN_HOOK_CREATE,
|
|
5903
|
+
Ce as MIXIN_HOOK_DESTROY,
|
|
5904
|
+
Lt as MIXIN_MAP_NAME,
|
|
5905
|
+
le as MVCArrays,
|
|
5858
5906
|
P as MapMixin,
|
|
5907
|
+
S as MapType,
|
|
5859
5908
|
Jt as MapTypeControlType,
|
|
5860
5909
|
fi as MapZoom,
|
|
5861
5910
|
lr as MarkerClusterer,
|
|
5862
|
-
|
|
5911
|
+
ve as Objects,
|
|
5863
5912
|
ur as Overlay,
|
|
5864
5913
|
hr as PlacesService,
|
|
5865
5914
|
q as Point,
|
|
5866
5915
|
cr as SearchBox,
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5916
|
+
Ws as SphericalUtils,
|
|
5917
|
+
_e as Strings,
|
|
5918
|
+
Ae as SymbolIcon,
|
|
5919
|
+
Ms as SymbolPath,
|
|
5920
|
+
Ss as TgCircle,
|
|
5921
|
+
xs as TgCustomControl,
|
|
5922
|
+
As as TgElementOverlay,
|
|
5923
|
+
Rs as TgInfoBox,
|
|
5924
|
+
$s as TgInfoWindow,
|
|
5925
|
+
Ds as TgLabel,
|
|
5877
5926
|
$i as TgMap,
|
|
5878
|
-
|
|
5927
|
+
Xe as TgMapFactory,
|
|
5879
5928
|
z as TgMapType,
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5929
|
+
Ps as TgMapTypeControl,
|
|
5930
|
+
Ls as TgMapWidget,
|
|
5931
|
+
xt as TgMarker,
|
|
5883
5932
|
Vi as TgMarkerClusterer,
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5933
|
+
zs as TgPolygon,
|
|
5934
|
+
Ns as TgPolyline,
|
|
5935
|
+
Gs as TgRectangle,
|
|
5936
|
+
ks as TgScaleControl,
|
|
5937
|
+
Is as TgTrafficLayer,
|
|
5938
|
+
Bs as TgZoomControl,
|
|
5939
|
+
ei as TrafficLayer,
|
|
5940
|
+
Ie as UnionIcon,
|
|
5941
|
+
se as assert,
|
|
5942
|
+
Ue as assertNever,
|
|
5943
|
+
Le as callHook,
|
|
5944
|
+
Ts as computedSaveOnThis,
|
|
5895
5945
|
mr as createEmptyVNode,
|
|
5896
5946
|
Ii as createPropertyObject,
|
|
5897
|
-
|
|
5947
|
+
Os as createPropertyObjectTyped,
|
|
5898
5948
|
ms as debug,
|
|
5899
|
-
|
|
5949
|
+
Hs as default,
|
|
5900
5950
|
L as eventProp,
|
|
5901
|
-
|
|
5902
|
-
|
|
5951
|
+
ws as extractVNodeFromSlotsByComponent,
|
|
5952
|
+
Cs as findByComponentType,
|
|
5903
5953
|
os as getDestination,
|
|
5904
5954
|
Ft as getTgMapConfig,
|
|
5905
5955
|
fs as isDef,
|
|
5906
5956
|
ds as isInstanceOf,
|
|
5907
5957
|
cs as lateinit,
|
|
5908
|
-
|
|
5958
|
+
fe as noop,
|
|
5909
5959
|
m as optionalProp,
|
|
5910
5960
|
Mi as path,
|
|
5911
5961
|
R as requiredProp,
|
|
5912
5962
|
us as safeAs,
|
|
5913
|
-
|
|
5963
|
+
we as safeAsComponent,
|
|
5914
5964
|
Yr as setTgMapConfig,
|
|
5915
5965
|
Si as splitAttrs,
|
|
5916
5966
|
N as stringEnumProp,
|
|
5917
5967
|
Bi as stringUnionPropFromValues,
|
|
5918
5968
|
E as throwError,
|
|
5919
|
-
|
|
5969
|
+
Qe as throwUnsupported,
|
|
5920
5970
|
gs as todo,
|
|
5921
|
-
|
|
5971
|
+
qe as typed,
|
|
5922
5972
|
ps as unwrapStringEnumValue,
|
|
5923
|
-
|
|
5973
|
+
Es as useEventLogMethods,
|
|
5924
5974
|
F as useSplittedAttrs,
|
|
5925
5975
|
Wi as useTgMapInner
|
|
5926
5976
|
};
|