tg-map-vue3 3.6.2 → 3.6.4
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 +4 -0
- package/dist/src/components/overlays/TgInfoBox.vue.d.ts +5 -5
- package/dist/src/components/overlays/TgInfoWindow.vue.d.ts +5 -5
- package/dist/src/components/overlays/TgLabel.vue.d.ts +3 -3
- package/dist/src/utils/mapped-types.d.ts +10 -0
- package/dist/tg-map.js +503 -489
- package/dist/tg-map.js.map +1 -1
- package/dist/tg-map.umd.cjs +5 -5
- package/dist/tg-map.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/tg-map.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.baidu-info-box-container{transform:translateY(-11px);font-size:13px;font-weight:300;width:100vw}.baidu-info-box-container__border{position:absolute;padding:12px;background-color:#fff;box-shadow:0 2px 7px 1px #0000004d;border-radius:8px;transform:translate(-50%,-100%)}.baidu-info-box-container__inner{overflow:auto}.baidu-info-box-container__close{position:absolute;right:-6px;top:-6px;width:14px;height:14px;margin:8px;opacity:.6;cursor:pointer}.baidu-info-box-container__close:hover{opacity:1}.baidu-info-box-container:after{position:absolute;background-color:#fff;content:"";width:15px;height:15px;left:0px;top:0px;box-shadow:-2px 2px 2px #b2b2b266;transform:translate(-50%,-50%) rotate(-45deg)}.element-overlay{position:absolute}.tg-map{height:100%;position:relative}.tg-map__map{width:100%;height:100%}.tg-map__map--hide-logo-google .gm-style a[target=_blank]:has(> div > img){display:none!important}.tg-map__map--hide-logo-google .gm-style>div:last-child>div:last-child>div{display:none}.tg-map__map--hide-logo-baidu div.anchorBL>a[target=_blank]>img{display:none}.tg-map__map--hide-logo-baidu div.BMap_cpyCtrl{display:none}.tg-map-widget{position:absolute}.tg-map>.tg-custom-control{display:none}.tg-map .tg-element-overlay{display:none}.tg-map__map .tg-element-overlay{display:block}.tg-map .tg-info-box{display:none}.tg-map__map .tg-info-box{display:block}.tg-map .tg-label{display:none}.tg-map__map .tg-label{display:block}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var c = (i, t, e) => (
|
|
5
|
-
import { createCommentVNode as Je, computed as
|
|
2
|
+
var Ir = Object.defineProperty;
|
|
3
|
+
var Sr = (i, t, e) => t in i ? Ir(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
4
|
+
var c = (i, t, e) => (Sr(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
5
|
+
import { createCommentVNode as Je, computed as Yt, defineComponent as w, markRaw as Ar, watch as qt, openBlock as V, createElementBlock as F, mergeProps as ue, createElementVNode as Rr, normalizeClass as Ze, renderSlot as W, normalizeStyle as $r, getCurrentInstance as Dr, inject as zr, onMounted as Nr, onBeforeUnmount as Gr, toRaw as We, withDirectives as Zr, vShow as Wr } from "vue";
|
|
6
6
|
function U(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]);
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
let
|
|
12
|
-
function
|
|
13
|
-
return
|
|
11
|
+
let Hr = 1;
|
|
12
|
+
function jr() {
|
|
13
|
+
return Hr++;
|
|
14
14
|
}
|
|
15
15
|
function Se(i, t) {
|
|
16
|
-
return t.__id__ || (t.__id__ =
|
|
16
|
+
return t.__id__ || (t.__id__ = jr()), `${i}::${t.__id__}`;
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
function
|
|
18
|
+
var Kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
19
|
+
function nt(i) {
|
|
20
20
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var Xt = { exports: {} };
|
|
23
23
|
(function(i) {
|
|
24
24
|
(function(t, e) {
|
|
25
25
|
i.exports ? i.exports = e() : t.coordtransform = e();
|
|
26
|
-
})(
|
|
26
|
+
})(Kt, 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);
|
|
@@ -115,9 +115,9 @@ var qt = { exports: {} };
|
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
});
|
|
118
|
-
})(
|
|
119
|
-
var
|
|
120
|
-
const se = /* @__PURE__ */
|
|
118
|
+
})(Xt);
|
|
119
|
+
var Vr = Xt.exports;
|
|
120
|
+
const se = /* @__PURE__ */ nt(Vr);
|
|
121
121
|
function oe(i, t) {
|
|
122
122
|
if (!i)
|
|
123
123
|
throw new Error(`AssertionError: ${t}`);
|
|
@@ -125,46 +125,58 @@ function oe(i, t) {
|
|
|
125
125
|
function Qe(i) {
|
|
126
126
|
throw new Error(`Unexpected object: ${i}`);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function As() {
|
|
129
129
|
}
|
|
130
130
|
function et(i) {
|
|
131
131
|
return i;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Rs(i, t) {
|
|
134
134
|
return i instanceof t;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function $s(i, t) {
|
|
137
137
|
if (i instanceof t)
|
|
138
138
|
return i;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
function tt(i, t) {
|
|
141
|
+
return (i == null ? void 0 : i.$options.name) === t.name;
|
|
142
|
+
}
|
|
143
|
+
function Jt(i, t) {
|
|
144
|
+
return tt(i, t) ? i : void 0;
|
|
145
|
+
}
|
|
146
|
+
function ot(i, t, e) {
|
|
147
|
+
let r = t;
|
|
148
|
+
for (; r; ) {
|
|
149
|
+
if (tt(r, i))
|
|
150
|
+
return r;
|
|
151
|
+
if (e && tt(r, e))
|
|
152
|
+
return;
|
|
153
|
+
r = r.$parent;
|
|
154
|
+
}
|
|
143
155
|
}
|
|
144
|
-
function
|
|
156
|
+
function Ds(i) {
|
|
145
157
|
return i;
|
|
146
158
|
}
|
|
147
159
|
function C(i) {
|
|
148
160
|
throw new Error(i);
|
|
149
161
|
}
|
|
150
|
-
function
|
|
162
|
+
function at(i) {
|
|
151
163
|
throw new Error(`Unsupported: ${i}`);
|
|
152
164
|
}
|
|
153
|
-
function
|
|
165
|
+
function zs(i) {
|
|
154
166
|
throw new Error(`todo: ${i}`);
|
|
155
167
|
}
|
|
156
|
-
function
|
|
168
|
+
function Ns(i) {
|
|
157
169
|
return i;
|
|
158
170
|
}
|
|
159
171
|
function ve(...i) {
|
|
160
172
|
}
|
|
161
|
-
function
|
|
173
|
+
function Gs(i) {
|
|
162
174
|
return i != null;
|
|
163
175
|
}
|
|
164
|
-
function
|
|
176
|
+
function Qt(i) {
|
|
165
177
|
return i[1] != null;
|
|
166
178
|
}
|
|
167
|
-
var
|
|
179
|
+
var I = /* @__PURE__ */ ((i) => (i.wgs84 = "wgs84", i.gcj02 = "gcj02", i.bd09 = "bd09", i))(I || {});
|
|
168
180
|
const qe = "wgs84", N = class {
|
|
169
181
|
constructor(t, e, r) {
|
|
170
182
|
this.lat = t, this.lng = e, this.coord = r;
|
|
@@ -365,67 +377,67 @@ var K;
|
|
|
365
377
|
}
|
|
366
378
|
i.getCoordType = e;
|
|
367
379
|
})(K || (K = {}));
|
|
368
|
-
var
|
|
369
|
-
return
|
|
380
|
+
var Fr = function(t) {
|
|
381
|
+
return Ur(t) && !Yr(t);
|
|
370
382
|
};
|
|
371
|
-
function
|
|
383
|
+
function Ur(i) {
|
|
372
384
|
return !!i && typeof i == "object";
|
|
373
385
|
}
|
|
374
|
-
function
|
|
386
|
+
function Yr(i) {
|
|
375
387
|
var t = Object.prototype.toString.call(i);
|
|
376
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
388
|
+
return t === "[object RegExp]" || t === "[object Date]" || Xr(i);
|
|
377
389
|
}
|
|
378
|
-
var
|
|
379
|
-
function
|
|
380
|
-
return i.$$typeof ===
|
|
390
|
+
var qr = typeof Symbol == "function" && Symbol.for, Kr = qr ? Symbol.for("react.element") : 60103;
|
|
391
|
+
function Xr(i) {
|
|
392
|
+
return i.$$typeof === Kr;
|
|
381
393
|
}
|
|
382
|
-
function
|
|
394
|
+
function Jr(i) {
|
|
383
395
|
return Array.isArray(i) ? [] : {};
|
|
384
396
|
}
|
|
385
397
|
function _e(i, t) {
|
|
386
|
-
return t.clone !== !1 && t.isMergeableObject(i) ? le(
|
|
398
|
+
return t.clone !== !1 && t.isMergeableObject(i) ? le(Jr(i), i, t) : i;
|
|
387
399
|
}
|
|
388
|
-
function
|
|
400
|
+
function Qr(i, t, e) {
|
|
389
401
|
return i.concat(t).map(function(r) {
|
|
390
402
|
return _e(r, e);
|
|
391
403
|
});
|
|
392
404
|
}
|
|
393
|
-
function
|
|
405
|
+
function ei(i, t) {
|
|
394
406
|
if (!t.customMerge)
|
|
395
407
|
return le;
|
|
396
408
|
var e = t.customMerge(i);
|
|
397
409
|
return typeof e == "function" ? e : le;
|
|
398
410
|
}
|
|
399
|
-
function
|
|
411
|
+
function ti(i) {
|
|
400
412
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(i).filter(function(t) {
|
|
401
413
|
return Object.propertyIsEnumerable.call(i, t);
|
|
402
414
|
}) : [];
|
|
403
415
|
}
|
|
404
|
-
function
|
|
405
|
-
return Object.keys(i).concat(
|
|
416
|
+
function Nt(i) {
|
|
417
|
+
return Object.keys(i).concat(ti(i));
|
|
406
418
|
}
|
|
407
|
-
function
|
|
419
|
+
function er(i, t) {
|
|
408
420
|
try {
|
|
409
421
|
return t in i;
|
|
410
422
|
} catch {
|
|
411
423
|
return !1;
|
|
412
424
|
}
|
|
413
425
|
}
|
|
414
|
-
function
|
|
415
|
-
return
|
|
426
|
+
function ri(i, t) {
|
|
427
|
+
return er(i, t) && !(Object.hasOwnProperty.call(i, t) && Object.propertyIsEnumerable.call(i, t));
|
|
416
428
|
}
|
|
417
|
-
function
|
|
429
|
+
function ii(i, t, e) {
|
|
418
430
|
var r = {};
|
|
419
|
-
return e.isMergeableObject(i) &&
|
|
431
|
+
return e.isMergeableObject(i) && Nt(i).forEach(function(s) {
|
|
420
432
|
r[s] = _e(i[s], e);
|
|
421
|
-
}),
|
|
422
|
-
|
|
433
|
+
}), Nt(t).forEach(function(s) {
|
|
434
|
+
ri(i, s) || (er(i, s) && e.isMergeableObject(t[s]) ? r[s] = ei(s, e)(i[s], t[s], e) : r[s] = _e(t[s], e));
|
|
423
435
|
}), r;
|
|
424
436
|
}
|
|
425
437
|
function le(i, t, e) {
|
|
426
|
-
e = e || {}, e.arrayMerge = e.arrayMerge ||
|
|
438
|
+
e = e || {}, e.arrayMerge = e.arrayMerge || Qr, e.isMergeableObject = e.isMergeableObject || Fr, e.cloneUnlessOtherwiseSpecified = _e;
|
|
427
439
|
var r = Array.isArray(t), s = Array.isArray(i), n = r === s;
|
|
428
|
-
return n ? r ? e.arrayMerge(i, t, e) :
|
|
440
|
+
return n ? r ? e.arrayMerge(i, t, e) : ii(i, t, e) : _e(t, e);
|
|
429
441
|
}
|
|
430
442
|
le.all = function(t, e) {
|
|
431
443
|
if (!Array.isArray(t))
|
|
@@ -434,8 +446,8 @@ le.all = function(t, e) {
|
|
|
434
446
|
return le(r, s, e);
|
|
435
447
|
}, {});
|
|
436
448
|
};
|
|
437
|
-
var
|
|
438
|
-
const
|
|
449
|
+
var si = le, ni = si;
|
|
450
|
+
const tr = /* @__PURE__ */ nt(ni), Ae = ["3.0"], oi = {
|
|
439
451
|
baidu: {
|
|
440
452
|
version: "3.0",
|
|
441
453
|
// 在build时会被静态替换, 导致使用者不能无法设置它
|
|
@@ -454,20 +466,20 @@ const Jt = /* @__PURE__ */ st(ii), Ae = ["3.0"], si = {
|
|
|
454
466
|
key: ""
|
|
455
467
|
}
|
|
456
468
|
};
|
|
457
|
-
let
|
|
458
|
-
function
|
|
459
|
-
return
|
|
469
|
+
let rr;
|
|
470
|
+
function ir() {
|
|
471
|
+
return rr || C("请先安装: Vue<PartialTgMapConfig>.use(TgMap, {})");
|
|
460
472
|
}
|
|
461
|
-
function
|
|
462
|
-
i != null && (
|
|
473
|
+
function ai(i) {
|
|
474
|
+
i != null && (rr = tr(oi, i));
|
|
463
475
|
}
|
|
464
|
-
var
|
|
476
|
+
var rt;
|
|
465
477
|
((i) => {
|
|
466
478
|
function t(e) {
|
|
467
479
|
return e.scrollWidth > e.clientWidth || e.scrollHeight > e.clientHeight;
|
|
468
480
|
}
|
|
469
481
|
i.isScrollable = t;
|
|
470
|
-
})(
|
|
482
|
+
})(rt || (rt = {}));
|
|
471
483
|
var he;
|
|
472
484
|
((i) => {
|
|
473
485
|
function t(h, o) {
|
|
@@ -527,19 +539,19 @@ var ce;
|
|
|
527
539
|
}
|
|
528
540
|
i.listenChanged = r;
|
|
529
541
|
})(ce || (ce = {}));
|
|
530
|
-
function
|
|
542
|
+
function sr(i, t, e) {
|
|
531
543
|
return i.addListener(t, e).remove;
|
|
532
544
|
}
|
|
533
|
-
function
|
|
545
|
+
function li(i, t, e) {
|
|
534
546
|
return i.addEventListener(t, e), () => i.removeEventListener(t, e);
|
|
535
547
|
}
|
|
536
|
-
function
|
|
548
|
+
function hi(i, t, e, r) {
|
|
537
549
|
return i.addEventListener(t, e, r), () => i.removeEventListener(t, e, r);
|
|
538
550
|
}
|
|
539
|
-
function
|
|
551
|
+
function Gt(i, t, e) {
|
|
540
552
|
return i.addEventListener(t, e), () => i.removeEventListener(t, e);
|
|
541
553
|
}
|
|
542
|
-
class
|
|
554
|
+
class nr {
|
|
543
555
|
constructor(t, e) {
|
|
544
556
|
c(this, "eventMap", /* @__PURE__ */ new Map());
|
|
545
557
|
c(this, "target", void 0);
|
|
@@ -551,7 +563,7 @@ class rr {
|
|
|
551
563
|
}
|
|
552
564
|
class He {
|
|
553
565
|
constructor(t, e) {
|
|
554
|
-
c(this, "eventHub", new
|
|
566
|
+
c(this, "eventHub", new or());
|
|
555
567
|
this.delegate = t, this.options = e;
|
|
556
568
|
}
|
|
557
569
|
notify(t) {
|
|
@@ -578,14 +590,14 @@ class He {
|
|
|
578
590
|
this.delegate.removeEventListener(t, e);
|
|
579
591
|
}
|
|
580
592
|
}
|
|
581
|
-
const
|
|
593
|
+
const $t = class extends nr {
|
|
582
594
|
addEventListener(t, e) {
|
|
583
595
|
const r = Se(t, e);
|
|
584
596
|
if (this.eventMap.get(r)) {
|
|
585
597
|
console.warn("listener已经添加过了", r, e);
|
|
586
598
|
return;
|
|
587
599
|
}
|
|
588
|
-
const s = this.inner.addListener(
|
|
600
|
+
const s = this.inner.addListener($t.EVENT_TYPE_MAP[t] || t, (n) => {
|
|
589
601
|
const a = {
|
|
590
602
|
type: t,
|
|
591
603
|
target: this.target,
|
|
@@ -600,7 +612,7 @@ const At = class extends rr {
|
|
|
600
612
|
s ? (s.remove(), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, e);
|
|
601
613
|
}
|
|
602
614
|
};
|
|
603
|
-
let re =
|
|
615
|
+
let re = $t;
|
|
604
616
|
// 事件类型映射: tg => google
|
|
605
617
|
c(re, "EVENT_TYPE_MAP", {
|
|
606
618
|
"center-changed": "center_changed",
|
|
@@ -618,7 +630,7 @@ c(re, "EVENT_TYPE_MAP", {
|
|
|
618
630
|
"map-mouseup": "mouseup",
|
|
619
631
|
"map-dblclick": "dblclick"
|
|
620
632
|
});
|
|
621
|
-
const Ne = class extends
|
|
633
|
+
const Ne = class extends nr {
|
|
622
634
|
addEventListener(t, e) {
|
|
623
635
|
const r = Se(t, e);
|
|
624
636
|
if (this.eventMap.get(r)) {
|
|
@@ -651,7 +663,7 @@ c(ae, "EVENT_TYPE_MAP", {
|
|
|
651
663
|
"zoom-changed": "zoomend",
|
|
652
664
|
"map-type-changed": "maptypechange"
|
|
653
665
|
});
|
|
654
|
-
class
|
|
666
|
+
class or {
|
|
655
667
|
constructor() {
|
|
656
668
|
c(this, "typeMap", /* @__PURE__ */ new Map());
|
|
657
669
|
}
|
|
@@ -672,7 +684,7 @@ class ir {
|
|
|
672
684
|
e && e.forEach((r) => r.call(t.target, t));
|
|
673
685
|
}
|
|
674
686
|
}
|
|
675
|
-
class
|
|
687
|
+
class Zt {
|
|
676
688
|
/**
|
|
677
689
|
* `keys`和`values`数组中可以有相同的值, 若存在相同值, 则index越小的优先级越高
|
|
678
690
|
*/
|
|
@@ -690,7 +702,7 @@ class Nt {
|
|
|
690
702
|
return this.keyToValue.get(t) ?? C();
|
|
691
703
|
}
|
|
692
704
|
}
|
|
693
|
-
class
|
|
705
|
+
class ci {
|
|
694
706
|
constructor(t, e = 10) {
|
|
695
707
|
c(this, "map", /* @__PURE__ */ new Map());
|
|
696
708
|
this.values = t, this.maxSize4Debug = e;
|
|
@@ -728,7 +740,7 @@ class fe {
|
|
|
728
740
|
return this.value === void 0 && (this.value = this.creator()), this.value;
|
|
729
741
|
}
|
|
730
742
|
}
|
|
731
|
-
var
|
|
743
|
+
var B = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-center", i.TOP_RIGHT = "top-right", i.BOTTOM_LEFT = "bottom-left", i.BOTTOM_CENTER = "bottom-center", i.BOTTOM_RIGHT = "bottom-right", i.LEFT_TOP = "left-top", i.LEFT_CENTER = "left-center", i.LEFT_BOTTOM = "left-bottom", i.RIGHT_TOP = "right-top", i.RIGHT_CENTER = "right-center", i.RIGHT_BOTTOM = "right-bottom", i))(B || {}), $;
|
|
732
744
|
((i) => {
|
|
733
745
|
let t, e;
|
|
734
746
|
const r = [
|
|
@@ -747,7 +759,7 @@ var I = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
|
|
|
747
759
|
/* RIGHT_BOTTOM */
|
|
748
760
|
];
|
|
749
761
|
function s() {
|
|
750
|
-
return t || (t = new
|
|
762
|
+
return t || (t = new Zt(r, [
|
|
751
763
|
/* | @tg/map |名字相同| baidu | */
|
|
752
764
|
/* TOP_LEFT = */
|
|
753
765
|
BMAP_ANCHOR_TOP_LEFT,
|
|
@@ -777,7 +789,7 @@ var I = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
|
|
|
777
789
|
}
|
|
778
790
|
i.getBaidu = s;
|
|
779
791
|
function n() {
|
|
780
|
-
return e || (e = new
|
|
792
|
+
return e || (e = new Zt(r, [
|
|
781
793
|
google.maps.ControlPosition.TOP_LEFT,
|
|
782
794
|
google.maps.ControlPosition.TOP_CENTER,
|
|
783
795
|
google.maps.ControlPosition.TOP_RIGHT,
|
|
@@ -794,16 +806,16 @@ var I = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
|
|
|
794
806
|
}
|
|
795
807
|
i.getGoogle = n;
|
|
796
808
|
})($ || ($ = {}));
|
|
797
|
-
class
|
|
809
|
+
class di {
|
|
798
810
|
constructor(t) {
|
|
799
811
|
/** 实际添加到地图中的control对象 */
|
|
800
812
|
c(this, "inner");
|
|
801
813
|
this.position = t;
|
|
802
814
|
}
|
|
803
815
|
}
|
|
804
|
-
class
|
|
816
|
+
class ar {
|
|
805
817
|
}
|
|
806
|
-
class
|
|
818
|
+
class lt extends ar {
|
|
807
819
|
constructor(t, e) {
|
|
808
820
|
super(), this.inner = t, this.position = e;
|
|
809
821
|
}
|
|
@@ -826,7 +838,7 @@ class ot extends sr {
|
|
|
826
838
|
t.innerMap.removeControl(this.inner);
|
|
827
839
|
}
|
|
828
840
|
}
|
|
829
|
-
class
|
|
841
|
+
class ht extends ar {
|
|
830
842
|
constructor(e, r) {
|
|
831
843
|
super();
|
|
832
844
|
c(this, "visible", !1);
|
|
@@ -863,7 +875,7 @@ class at extends sr {
|
|
|
863
875
|
});
|
|
864
876
|
}
|
|
865
877
|
}
|
|
866
|
-
var
|
|
878
|
+
var lr = /* @__PURE__ */ ((i) => (i.normal = "normal", i.satellite = "satellite", i.hybrid = "hybrid", i))(lr || {});
|
|
867
879
|
class S {
|
|
868
880
|
constructor(t, e, r, s) {
|
|
869
881
|
this.id = t, this.baidu = e, this.google = r, this.googleCoordType = s;
|
|
@@ -872,7 +884,7 @@ class S {
|
|
|
872
884
|
return this.id;
|
|
873
885
|
}
|
|
874
886
|
getBaiduCoordType() {
|
|
875
|
-
return
|
|
887
|
+
return I.bd09;
|
|
876
888
|
}
|
|
877
889
|
asBaiduMapType() {
|
|
878
890
|
return this.baidu();
|
|
@@ -885,10 +897,10 @@ class S {
|
|
|
885
897
|
return this.google();
|
|
886
898
|
}
|
|
887
899
|
asGoogleMapType() {
|
|
888
|
-
|
|
900
|
+
at("google的内置地图没有对应的实例");
|
|
889
901
|
}
|
|
890
902
|
}
|
|
891
|
-
class
|
|
903
|
+
class Zs {
|
|
892
904
|
constructor(t, e) {
|
|
893
905
|
c(this, "baiduLayerCached", new fe(() => {
|
|
894
906
|
const t = new BMap.TileLayer({});
|
|
@@ -937,10 +949,10 @@ class Ns {
|
|
|
937
949
|
return this.googleCached.get();
|
|
938
950
|
}
|
|
939
951
|
asGoogleLayer() {
|
|
940
|
-
|
|
952
|
+
at("这个方法不会被调用");
|
|
941
953
|
}
|
|
942
954
|
}
|
|
943
|
-
class
|
|
955
|
+
class ui {
|
|
944
956
|
constructor() {
|
|
945
957
|
c(this, "baiduCache", new fe(() => new BMap.TrafficLayer()));
|
|
946
958
|
c(this, "googleCache", new fe(() => new google.maps.TrafficLayer()));
|
|
@@ -954,19 +966,19 @@ class ci {
|
|
|
954
966
|
}
|
|
955
967
|
var R;
|
|
956
968
|
((i) => {
|
|
957
|
-
i.NORMAL = new S("normal", () => BMAP_NORMAL_MAP, () => google.maps.MapTypeId.ROADMAP,
|
|
969
|
+
i.NORMAL = new S("normal", () => BMAP_NORMAL_MAP, () => google.maps.MapTypeId.ROADMAP, I.gcj02), i.SATELLITE = new S("satellite", () => BMAP_SATELLITE_MAP, () => google.maps.MapTypeId.SATELLITE, I.wgs84), i.HYBRID = new S("hybrid", () => BMAP_HYBRID_MAP, () => google.maps.MapTypeId.HYBRID, I.gcj02), i.TERRAIN = new S("terrain", () => (
|
|
958
970
|
/* 三维 */
|
|
959
971
|
BMAP_PERSPECTIVE_MAP
|
|
960
972
|
), () => (
|
|
961
973
|
/* 地形 */
|
|
962
974
|
google.maps.MapTypeId.TERRAIN
|
|
963
|
-
),
|
|
975
|
+
), I.wgs84), i.BUILD_IN_MAP_TYPES = new ci([i.NORMAL, i.SATELLITE, i.HYBRID, i.TERRAIN]);
|
|
964
976
|
})(R || (R = {}));
|
|
965
|
-
var
|
|
966
|
-
const
|
|
967
|
-
class
|
|
977
|
+
var hr = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(hr || {});
|
|
978
|
+
const cr = [R.NORMAL, R.SATELLITE, R.HYBRID];
|
|
979
|
+
class ct extends lt {
|
|
968
980
|
static create(t) {
|
|
969
|
-
const e = t.mapTypes ??
|
|
981
|
+
const e = t.mapTypes ?? cr, r = {
|
|
970
982
|
default: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
|
|
971
983
|
horizontal: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
|
|
972
984
|
dropdown: BMAP_MAPTYPE_CONTROL_DROPDOWN
|
|
@@ -974,11 +986,11 @@ class lt extends ot {
|
|
|
974
986
|
type: t.type && r[t.type],
|
|
975
987
|
mapTypes: e.map((n) => n.asBaiduMapType())
|
|
976
988
|
});
|
|
977
|
-
return t.position && s.setAnchor($.getBaidu().toValue(t.position)), new
|
|
989
|
+
return t.position && s.setAnchor($.getBaidu().toValue(t.position)), new ct(s, t.position);
|
|
978
990
|
}
|
|
979
991
|
}
|
|
980
|
-
const ne = class extends
|
|
981
|
-
constructor(t = "default", e =
|
|
992
|
+
const ne = class extends ht {
|
|
993
|
+
constructor(t = "default", e = B.TOP_LEFT, r = cr) {
|
|
982
994
|
super("mapType", e), this.type = t, this.mapTypes = r, ne.type2google || (ne.type2google = {
|
|
983
995
|
default: google.maps.MapTypeControlStyle.DEFAULT,
|
|
984
996
|
horizontal: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
|
|
@@ -1000,41 +1012,41 @@ const ne = class extends at {
|
|
|
1000
1012
|
};
|
|
1001
1013
|
let ke = ne;
|
|
1002
1014
|
c(ke, "type2google");
|
|
1003
|
-
class
|
|
1015
|
+
class dt extends lt {
|
|
1004
1016
|
static create(t) {
|
|
1005
1017
|
const e = new BMap.ScaleControl({
|
|
1006
1018
|
anchor: t.position && $.getBaidu().toValue(t.position)
|
|
1007
1019
|
});
|
|
1008
|
-
return new
|
|
1020
|
+
return new dt(e, t.position);
|
|
1009
1021
|
}
|
|
1010
1022
|
}
|
|
1011
|
-
class
|
|
1023
|
+
class ut extends ht {
|
|
1012
1024
|
static create(t) {
|
|
1013
|
-
return new
|
|
1025
|
+
return new ut(t.position);
|
|
1014
1026
|
}
|
|
1015
|
-
constructor(t =
|
|
1027
|
+
constructor(t = B.BOTTOM_RIGHT) {
|
|
1016
1028
|
super("scale", t);
|
|
1017
1029
|
}
|
|
1018
1030
|
}
|
|
1019
|
-
class
|
|
1031
|
+
class pt extends lt {
|
|
1020
1032
|
static create(t) {
|
|
1021
1033
|
const e = new BMap.NavigationControl({
|
|
1022
1034
|
type: BMAP_NAVIGATION_CONTROL_ZOOM,
|
|
1023
1035
|
// enableGeolocation: true,
|
|
1024
1036
|
anchor: t.position && $.getBaidu().toValue(t.position)
|
|
1025
1037
|
});
|
|
1026
|
-
return new
|
|
1038
|
+
return new pt(e, t.position);
|
|
1027
1039
|
}
|
|
1028
1040
|
}
|
|
1029
|
-
class
|
|
1041
|
+
class gt extends ht {
|
|
1030
1042
|
static create(t) {
|
|
1031
|
-
return new
|
|
1043
|
+
return new gt(t.position);
|
|
1032
1044
|
}
|
|
1033
|
-
constructor(t =
|
|
1045
|
+
constructor(t = B.RIGHT_BOTTOM) {
|
|
1034
1046
|
super("zoom", t);
|
|
1035
1047
|
}
|
|
1036
1048
|
}
|
|
1037
|
-
function
|
|
1049
|
+
function pi(i) {
|
|
1038
1050
|
let t, e, r;
|
|
1039
1051
|
const s = "The Google Maps JavaScript API", n = "google", a = "importLibrary", h = "__ib__", o = document, l = window, d = l[n] || (l[n] = {}), u = d.maps || (d.maps = {}), p = /* @__PURE__ */ new Set(), b = new URLSearchParams(), _ = () => t || (t = new Promise(async (T, g) => {
|
|
1040
1052
|
var f;
|
|
@@ -1045,17 +1057,17 @@ function di(i) {
|
|
|
1045
1057
|
}));
|
|
1046
1058
|
u[a] ? console.warn(s + " only loads once. Ignoring:", i) : u[a] = (T, ...g) => p.add(T) && _().then(() => u[a](T, ...g));
|
|
1047
1059
|
}
|
|
1048
|
-
let
|
|
1060
|
+
let gi, mi;
|
|
1049
1061
|
const J = {
|
|
1050
1062
|
/** Google的坐标0点 */
|
|
1051
1063
|
get LATLNG_ZERO() {
|
|
1052
|
-
return
|
|
1064
|
+
return gi ?? (gi = new google.maps.LatLng({ lat: 0, lng: 0 }));
|
|
1053
1065
|
},
|
|
1054
1066
|
get BOUNDS_ZERO() {
|
|
1055
|
-
return
|
|
1067
|
+
return mi ?? (mi = new google.maps.LatLngBounds(this.LATLNG_ZERO, this.LATLNG_ZERO));
|
|
1056
1068
|
}
|
|
1057
1069
|
};
|
|
1058
|
-
function
|
|
1070
|
+
function dr(i, t = { country: "", province: "", city: "", district: "", street: "", streetNumber: "" }) {
|
|
1059
1071
|
for (const e of i)
|
|
1060
1072
|
for (const r of e.types)
|
|
1061
1073
|
switch (r) {
|
|
@@ -1080,9 +1092,9 @@ function lr(i, t = { country: "", province: "", city: "", district: "", street:
|
|
|
1080
1092
|
}
|
|
1081
1093
|
return t;
|
|
1082
1094
|
}
|
|
1083
|
-
function
|
|
1095
|
+
function ur(i, t) {
|
|
1084
1096
|
var r;
|
|
1085
|
-
const e = i.address_components &&
|
|
1097
|
+
const e = i.address_components && dr(i.address_components);
|
|
1086
1098
|
return {
|
|
1087
1099
|
country: (e == null ? void 0 : e.country) ?? "",
|
|
1088
1100
|
province: (e == null ? void 0 : e.province) ?? "",
|
|
@@ -1093,9 +1105,9 @@ function hr(i, t) {
|
|
|
1093
1105
|
title: i.name ?? ""
|
|
1094
1106
|
};
|
|
1095
1107
|
}
|
|
1096
|
-
class
|
|
1108
|
+
class pr {
|
|
1097
1109
|
}
|
|
1098
|
-
class
|
|
1110
|
+
class fi extends pr {
|
|
1099
1111
|
constructor(e, r) {
|
|
1100
1112
|
super();
|
|
1101
1113
|
c(this, "inner");
|
|
@@ -1111,7 +1123,7 @@ class gi extends cr {
|
|
|
1111
1123
|
this.inner.setBounds(e.toGoogle(this.map.coordType));
|
|
1112
1124
|
}
|
|
1113
1125
|
addResultListener(e) {
|
|
1114
|
-
return
|
|
1126
|
+
return sr(this.inner, "place_changed", () => {
|
|
1115
1127
|
const r = this.inner.getPlace(), s = {
|
|
1116
1128
|
title: r.name ?? "",
|
|
1117
1129
|
province: "",
|
|
@@ -1121,11 +1133,11 @@ class gi extends cr {
|
|
|
1121
1133
|
streetNumber: "",
|
|
1122
1134
|
country: ""
|
|
1123
1135
|
};
|
|
1124
|
-
r.address_components &&
|
|
1136
|
+
r.address_components && dr(r.address_components, s), e(s);
|
|
1125
1137
|
});
|
|
1126
1138
|
}
|
|
1127
1139
|
}
|
|
1128
|
-
class
|
|
1140
|
+
class yi extends pr {
|
|
1129
1141
|
constructor(e, r) {
|
|
1130
1142
|
super();
|
|
1131
1143
|
c(this, "inner");
|
|
@@ -1139,7 +1151,7 @@ class mi extends cr {
|
|
|
1139
1151
|
const s = () => {
|
|
1140
1152
|
this.inner.setLocation(this.map.innerMap);
|
|
1141
1153
|
};
|
|
1142
|
-
this.removeableArray.push(
|
|
1154
|
+
this.removeableArray.push(Gt(this.map, "center-changed", s)), this.removeableArray.push(Gt(this.map, "zoom-changed", s));
|
|
1143
1155
|
}
|
|
1144
1156
|
}
|
|
1145
1157
|
setBounds(e) {
|
|
@@ -1147,14 +1159,14 @@ class mi extends cr {
|
|
|
1147
1159
|
}
|
|
1148
1160
|
addResultListener(e) {
|
|
1149
1161
|
let r = 0;
|
|
1150
|
-
const s =
|
|
1162
|
+
const s = li(this.inner, "confirm", (a) => {
|
|
1151
1163
|
const h = a.item.value;
|
|
1152
1164
|
r = Date.now(), e(Object.assign({
|
|
1153
1165
|
title: h.business,
|
|
1154
1166
|
country: ""
|
|
1155
1167
|
// Baidu的自动完成只支持中国
|
|
1156
1168
|
}, h));
|
|
1157
|
-
}), n =
|
|
1169
|
+
}), n = hi(this.input, "keyup", (a) => {
|
|
1158
1170
|
a.key === "Enter" && Date.now() - r > 100 && e({
|
|
1159
1171
|
title: this.input.value,
|
|
1160
1172
|
country: "",
|
|
@@ -1170,47 +1182,47 @@ class mi extends cr {
|
|
|
1170
1182
|
};
|
|
1171
1183
|
}
|
|
1172
1184
|
}
|
|
1173
|
-
class
|
|
1185
|
+
class gr {
|
|
1174
1186
|
constructor(t) {
|
|
1175
1187
|
this.options = t;
|
|
1176
1188
|
}
|
|
1177
1189
|
}
|
|
1178
|
-
const
|
|
1190
|
+
const Dt = class extends gr {
|
|
1179
1191
|
/** @see https://developers.google.com/maps/documentation/urls/get-started#directions-action */
|
|
1180
1192
|
directions(t, e, r) {
|
|
1181
|
-
const s = new URL("dir/",
|
|
1193
|
+
const s = new URL("dir/", Dt.BASE_URL), n = new URLSearchParams(Object.entries({
|
|
1182
1194
|
api: "1",
|
|
1183
|
-
origin: K.toString(t,
|
|
1184
|
-
destination: K.toString(e,
|
|
1195
|
+
origin: K.toString(t, I.wgs84),
|
|
1196
|
+
destination: K.toString(e, I.wgs84),
|
|
1185
1197
|
travelmode: r
|
|
1186
|
-
}).filter(
|
|
1198
|
+
}).filter(Qt));
|
|
1187
1199
|
return s.search = "?" + n.toString(), s;
|
|
1188
1200
|
}
|
|
1189
1201
|
};
|
|
1190
|
-
let
|
|
1191
|
-
c(
|
|
1192
|
-
const
|
|
1202
|
+
let Be = Dt;
|
|
1203
|
+
c(Be, "BASE_URL", "https://www.google.com/maps/");
|
|
1204
|
+
const zt = class extends gr {
|
|
1193
1205
|
/** @see https://lbsyun.baidu.com/faq/api?title=webapi/uri/web#:~:text=%E6%9C%8D%E5%8A%A1%E5%9C%B0%E5%9D%80-,http%3A//api.map.baidu.com/direction,-//PC%26Webapp%E6%9C%8D%E5%8A%A1 */
|
|
1194
1206
|
directions(t, e, r = "driving") {
|
|
1195
|
-
const s = new URL("direction",
|
|
1207
|
+
const s = new URL("direction", zt.BASE_URL), n = K.getCoordType(e) ?? K.getCoordType(t) ?? I.bd09, a = K.toString(e, n), h = new URLSearchParams(Object.entries({
|
|
1196
1208
|
// baidu地图, 一定要有起点, 故这里用终点当起点, 防止导航失败
|
|
1197
1209
|
origin: K.toString(t, n) ?? (typeof e != "string" ? `name:请选择起点|latlng:${a}` : a),
|
|
1198
1210
|
destination: a,
|
|
1199
1211
|
// 默认就是bd09
|
|
1200
|
-
coord_type: n ===
|
|
1212
|
+
coord_type: n === I.bd09 ? void 0 : n,
|
|
1201
1213
|
mode: r,
|
|
1202
1214
|
output: "html",
|
|
1203
1215
|
region: "中国",
|
|
1204
1216
|
src: window.location.hostname
|
|
1205
|
-
}).filter(
|
|
1217
|
+
}).filter(Qt));
|
|
1206
1218
|
return s.search = "?" + h.toString(), s;
|
|
1207
1219
|
}
|
|
1208
1220
|
};
|
|
1209
|
-
let
|
|
1210
|
-
c(
|
|
1211
|
-
let
|
|
1221
|
+
let Ie = zt;
|
|
1222
|
+
c(Ie, "BASE_URL", "https://api.map.baidu.com/");
|
|
1223
|
+
let vi = class mr {
|
|
1212
1224
|
constructor(t, e, r) {
|
|
1213
|
-
this.extend(
|
|
1225
|
+
this.extend(mr, google.maps.OverlayView), this.map_ = t, this.MARKER_CLUSTER_IMAGE_PATH_ = "../images/m", this.MARKER_CLUSTER_IMAGE_EXTENSION_ = "png", this.markers_ = [], this.clusters_ = [], this.sizes = [53, 56, 66, 78, 90], this.styles_ = [], this.ready_ = !1;
|
|
1214
1226
|
var s = r || {};
|
|
1215
1227
|
this.zIndex_ = s.zIndex || google.maps.Marker.MAX_ZINDEX + 1, this.gridSize_ = s.gridSize || 60, this.minClusterSize_ = s.minimumClusterSize || 2, this.maxZoom_ = s.maxZoom || null, this.styles_ = s.styles || [], this.imagePath_ = s.imagePath || this.MARKER_CLUSTER_IMAGE_PATH_, this.imageExtension_ = s.imageExtension || this.MARKER_CLUSTER_IMAGE_EXTENSION_, this.zoomOnClick_ = !0, s.zoomOnClick != null && (this.zoomOnClick_ = s.zoomOnClick), this.averageCenter_ = !1, s.averageCenter != null && (this.averageCenter_ = s.averageCenter), this.setupStyles_(), this.setMap(t), this.prevZoom_ = this.map_.getZoom();
|
|
1216
1228
|
var n = this;
|
|
@@ -1629,7 +1641,7 @@ let fi = class ur {
|
|
|
1629
1641
|
if (r && r.isMarkerInClusterBounds(t))
|
|
1630
1642
|
r.addMarker(t);
|
|
1631
1643
|
else {
|
|
1632
|
-
var o = new
|
|
1644
|
+
var o = new _i(this);
|
|
1633
1645
|
o.addMarker(t), this.clusters_.push(o);
|
|
1634
1646
|
}
|
|
1635
1647
|
}
|
|
@@ -1646,9 +1658,9 @@ let fi = class ur {
|
|
|
1646
1658
|
), e = this.getExtendedBounds(t), r = 0, s; s = this.markers_[r]; r++)
|
|
1647
1659
|
!s.isAdded && this.isMarkerInBounds_(s, e) && this.addToClosestCluster_(s);
|
|
1648
1660
|
}
|
|
1649
|
-
},
|
|
1661
|
+
}, _i = class {
|
|
1650
1662
|
constructor(t) {
|
|
1651
|
-
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
|
|
1663
|
+
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 mt(
|
|
1652
1664
|
this,
|
|
1653
1665
|
t.getStyles(),
|
|
1654
1666
|
t.getGridSize()
|
|
@@ -1782,9 +1794,9 @@ let fi = class ur {
|
|
|
1782
1794
|
this.clusterIcon_.setCenter(this.center_), this.clusterIcon_.setSums(a), this.clusterIcon_.show();
|
|
1783
1795
|
}
|
|
1784
1796
|
};
|
|
1785
|
-
class
|
|
1797
|
+
class mt {
|
|
1786
1798
|
constructor(t, e, r) {
|
|
1787
|
-
t.getMarkerClusterer().extend(
|
|
1799
|
+
t.getMarkerClusterer().extend(mt, 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_);
|
|
1788
1800
|
}
|
|
1789
1801
|
/**
|
|
1790
1802
|
* Triggers the clusterclick event and zoom's if the option is set.
|
|
@@ -1915,11 +1927,11 @@ class pt {
|
|
|
1915
1927
|
), e.join("");
|
|
1916
1928
|
}
|
|
1917
1929
|
}
|
|
1918
|
-
var
|
|
1930
|
+
var fr = { exports: {} };
|
|
1919
1931
|
(function(i, t) {
|
|
1920
1932
|
(function(e, r) {
|
|
1921
1933
|
i.exports = r();
|
|
1922
|
-
})(
|
|
1934
|
+
})(Kt, function() {
|
|
1923
1935
|
var e, r = e = r || { version: "1.3.8" }, s = {};
|
|
1924
1936
|
r.guid = "$BAIDU$", s[r.guid] = s[r.guid] || {}, r.dom = r.dom || {}, r.dom.g = function(o) {
|
|
1925
1937
|
return typeof o == "string" || o instanceof String ? document.getElementById(o) : o && o.nodeName && (o.nodeType == 1 || o.nodeType == 9) ? o : null;
|
|
@@ -2108,25 +2120,25 @@ var pr = { exports: {} };
|
|
|
2108
2120
|
});
|
|
2109
2121
|
}, h;
|
|
2110
2122
|
});
|
|
2111
|
-
})(
|
|
2112
|
-
var
|
|
2113
|
-
const
|
|
2114
|
-
var
|
|
2115
|
-
t =
|
|
2123
|
+
})(fr);
|
|
2124
|
+
var bi = fr.exports;
|
|
2125
|
+
const Wt = /* @__PURE__ */ nt(bi);
|
|
2126
|
+
var yr = function(i, t, e) {
|
|
2127
|
+
t = Ti(t);
|
|
2116
2128
|
var r = i.pointToPixel(t.getNorthEast()), s = i.pointToPixel(t.getSouthWest());
|
|
2117
2129
|
r.x += e, r.y -= e, s.x -= e, s.y += e;
|
|
2118
2130
|
var n = i.pixelToPoint(r), a = i.pixelToPoint(s);
|
|
2119
2131
|
return new BMap.Bounds(a, n);
|
|
2120
|
-
},
|
|
2132
|
+
}, Ti = function(i) {
|
|
2121
2133
|
var t = xe(i.getNorthEast().lng, -180, 180), e = xe(i.getSouthWest().lng, -180, 180), r = xe(i.getNorthEast().lat, -74, 74), s = xe(i.getSouthWest().lat, -74, 74);
|
|
2122
2134
|
return new BMap.Bounds(new BMap.Point(e, s), new BMap.Point(t, r));
|
|
2123
2135
|
}, xe = function(i, t, e) {
|
|
2124
2136
|
return t && (i = Math.max(i, t)), e && (i = Math.min(i, e)), i;
|
|
2125
|
-
},
|
|
2137
|
+
}, vr = function(i) {
|
|
2126
2138
|
return Object.prototype.toString.call(i) === "[object Array]";
|
|
2127
|
-
},
|
|
2139
|
+
}, _r = function(i, t) {
|
|
2128
2140
|
var e = -1;
|
|
2129
|
-
if (
|
|
2141
|
+
if (vr(t)) {
|
|
2130
2142
|
if (t.indexOf)
|
|
2131
2143
|
e = t.indexOf(i);
|
|
2132
2144
|
else
|
|
@@ -2154,7 +2166,7 @@ var gr = function(i, t, e) {
|
|
|
2154
2166
|
r._redraw();
|
|
2155
2167
|
});
|
|
2156
2168
|
var s = e.markers;
|
|
2157
|
-
|
|
2169
|
+
vr(s) && this.addMarkers(s);
|
|
2158
2170
|
}
|
|
2159
2171
|
};
|
|
2160
2172
|
M.prototype.addMarkers = function(i) {
|
|
@@ -2165,7 +2177,7 @@ M.prototype.addMarkers = function(i) {
|
|
|
2165
2177
|
}
|
|
2166
2178
|
};
|
|
2167
2179
|
M.prototype._pushMarkerTo = function(i) {
|
|
2168
|
-
var t =
|
|
2180
|
+
var t = _r(i, this._markers);
|
|
2169
2181
|
t === -1 && (i.isInCluster = !1, this._markers.push(i));
|
|
2170
2182
|
};
|
|
2171
2183
|
M.prototype.addMarker = function(i) {
|
|
@@ -2174,7 +2186,7 @@ M.prototype.addMarker = function(i) {
|
|
|
2174
2186
|
M.prototype._createClusters = function() {
|
|
2175
2187
|
var i = this._map.getBounds();
|
|
2176
2188
|
if (i.getCenter()) {
|
|
2177
|
-
for (var t =
|
|
2189
|
+
for (var t = yr(this._map, i, this._gridSize), e = 0, r; r = this._markers[e]; e++)
|
|
2178
2190
|
!r.isInCluster && t.containsPoint(r.getPosition()) && this._addToClosestCluster(r);
|
|
2179
2191
|
for (var s = this._markers.length, e = 0; e < s; e++)
|
|
2180
2192
|
this._clusters[e] && this._clusters[e].render();
|
|
@@ -2214,7 +2226,7 @@ M.prototype._removeMarkersFromMap = function() {
|
|
|
2214
2226
|
}
|
|
2215
2227
|
};
|
|
2216
2228
|
M.prototype._removeMarker = function(i) {
|
|
2217
|
-
var t =
|
|
2229
|
+
var t = _r(i, this._markers);
|
|
2218
2230
|
return t === -1 ? !1 : (this._map.removeOverlay(i), this._markers.splice(t, 1), !0);
|
|
2219
2231
|
};
|
|
2220
2232
|
M.prototype.removeMarker = function(i) {
|
|
@@ -2290,7 +2302,7 @@ M.prototype.setStylesIndexCalculator = function(i) {
|
|
|
2290
2302
|
};
|
|
2291
2303
|
function z(i) {
|
|
2292
2304
|
var t = this;
|
|
2293
|
-
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
|
|
2305
|
+
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 Wt(this._center, this._markers.length, {
|
|
2294
2306
|
styles: this._markerClusterer.getStyles(),
|
|
2295
2307
|
zIndex: i._zIndex
|
|
2296
2308
|
}), this._clusterMarker.getStyleByText = function(e, r) {
|
|
@@ -2298,7 +2310,7 @@ function z(i) {
|
|
|
2298
2310
|
var s = t._markerClusterer._stylesIndexCalculator(t._markers, r.length);
|
|
2299
2311
|
return r[s];
|
|
2300
2312
|
}
|
|
2301
|
-
return
|
|
2313
|
+
return Wt.prototype.getStyleByText.call(this, e, r);
|
|
2302
2314
|
}, this._clusterMarker.addEventListener && this._clusterMarker.addEventListener("click", function(e) {
|
|
2303
2315
|
t._map.setViewport(t.getBounds());
|
|
2304
2316
|
});
|
|
@@ -2338,7 +2350,7 @@ z.prototype.isReal = function(i) {
|
|
|
2338
2350
|
};
|
|
2339
2351
|
z.prototype.updateGridBounds = function() {
|
|
2340
2352
|
var i = new BMap.Bounds(this._center, this._center);
|
|
2341
|
-
this._gridBounds =
|
|
2353
|
+
this._gridBounds = yr(this._map, i, this._markerClusterer.getGridSize());
|
|
2342
2354
|
};
|
|
2343
2355
|
z.prototype.updateClusterMarker = function() {
|
|
2344
2356
|
if (this._map.getZoom() > this._markerClusterer.getMaxZoom()) {
|
|
@@ -2394,7 +2406,7 @@ var Re;
|
|
|
2394
2406
|
}
|
|
2395
2407
|
i.toGoogle = e;
|
|
2396
2408
|
})(Re || (Re = {}));
|
|
2397
|
-
class
|
|
2409
|
+
class br {
|
|
2398
2410
|
constructor(t) {
|
|
2399
2411
|
c(this, "inner");
|
|
2400
2412
|
this.map = t;
|
|
@@ -2420,7 +2432,7 @@ class yr {
|
|
|
2420
2432
|
return this.inner.removeMarkers(t.map((e) => e.innerOverlay));
|
|
2421
2433
|
}
|
|
2422
2434
|
}
|
|
2423
|
-
class
|
|
2435
|
+
class Mi extends br {
|
|
2424
2436
|
constructor(t, e) {
|
|
2425
2437
|
var s;
|
|
2426
2438
|
super(t), this.inner = new M(t.innerMap, {
|
|
@@ -2440,10 +2452,10 @@ class bi extends yr {
|
|
|
2440
2452
|
this.inner._redraw();
|
|
2441
2453
|
}
|
|
2442
2454
|
}
|
|
2443
|
-
class
|
|
2455
|
+
class Oi extends br {
|
|
2444
2456
|
constructor(t, e) {
|
|
2445
2457
|
var s, n;
|
|
2446
|
-
super(t), this.inner = new
|
|
2458
|
+
super(t), this.inner = new vi(
|
|
2447
2459
|
t.innerMap,
|
|
2448
2460
|
// google的构造器中的markers,不会触发重绘, 第一次绘制通过监听地图的'idle'事件触发, 可以直接设置
|
|
2449
2461
|
(s = e.markers) == null ? void 0 : s.map((a) => a.innerOverlay),
|
|
@@ -2467,11 +2479,11 @@ class Ti extends yr {
|
|
|
2467
2479
|
this.inner.repaint();
|
|
2468
2480
|
}
|
|
2469
2481
|
}
|
|
2470
|
-
class
|
|
2482
|
+
class Tr {
|
|
2471
2483
|
constructor() {
|
|
2472
2484
|
}
|
|
2473
2485
|
}
|
|
2474
|
-
class
|
|
2486
|
+
class Ci extends Tr {
|
|
2475
2487
|
constructor(e, r) {
|
|
2476
2488
|
super();
|
|
2477
2489
|
c(this, "inner");
|
|
@@ -2505,7 +2517,7 @@ class Mi extends vr {
|
|
|
2505
2517
|
switch (h) {
|
|
2506
2518
|
case google.maps.places.PlacesServiceStatus.ZERO_RESULTS:
|
|
2507
2519
|
case google.maps.places.PlacesServiceStatus.OK: {
|
|
2508
|
-
const o = (a ?? []).map((l) =>
|
|
2520
|
+
const o = (a ?? []).map((l) => ur(l, this.map));
|
|
2509
2521
|
s(o);
|
|
2510
2522
|
break;
|
|
2511
2523
|
}
|
|
@@ -2517,7 +2529,7 @@ class Mi extends vr {
|
|
|
2517
2529
|
});
|
|
2518
2530
|
}
|
|
2519
2531
|
}
|
|
2520
|
-
class
|
|
2532
|
+
class wi extends Tr {
|
|
2521
2533
|
constructor(e, r) {
|
|
2522
2534
|
super();
|
|
2523
2535
|
c(this, "searchRequestMap", /* @__PURE__ */ new Map());
|
|
@@ -2549,7 +2561,7 @@ class Oi extends vr {
|
|
|
2549
2561
|
return new Promise((s, n) => {
|
|
2550
2562
|
const a = new BMap.LocalSearch(e ?? this.map.innerMap, {
|
|
2551
2563
|
onSearchComplete: (h) => {
|
|
2552
|
-
Array.isArray(h) &&
|
|
2564
|
+
Array.isArray(h) && at("当前只支持一次搜索一条数据");
|
|
2553
2565
|
const o = a.getStatus();
|
|
2554
2566
|
switch (o) {
|
|
2555
2567
|
case BMAP_STATUS_SUCCESS: {
|
|
@@ -2583,7 +2595,7 @@ class Oi extends vr {
|
|
|
2583
2595
|
});
|
|
2584
2596
|
}
|
|
2585
2597
|
}
|
|
2586
|
-
class
|
|
2598
|
+
class Mr {
|
|
2587
2599
|
constructor(t, e) {
|
|
2588
2600
|
c(this, "onData");
|
|
2589
2601
|
c(this, "onError");
|
|
@@ -2598,23 +2610,23 @@ class _r {
|
|
|
2598
2610
|
return this.onData && C("setSearchListener只能调用一次"), this.onData = t, this.onError = e, ve;
|
|
2599
2611
|
}
|
|
2600
2612
|
}
|
|
2601
|
-
class
|
|
2613
|
+
class Ei extends Mr {
|
|
2602
2614
|
constructor(e, r) {
|
|
2603
2615
|
super(e, r.input);
|
|
2604
2616
|
c(this, "searchBox");
|
|
2605
2617
|
this.searchBox = new google.maps.places.SearchBox(r.input), this.searchBox.bindTo("bounds", e.innerMap);
|
|
2606
2618
|
}
|
|
2607
2619
|
setSearchListener(e, r) {
|
|
2608
|
-
return super.setSearchListener(e, r),
|
|
2620
|
+
return super.setSearchListener(e, r), sr(this.searchBox, "places_changed", () => {
|
|
2609
2621
|
const s = this.searchBox.getPlaces();
|
|
2610
|
-
e((s ?? []).map((n) =>
|
|
2622
|
+
e((s ?? []).map((n) => ur(n, this.map)));
|
|
2611
2623
|
});
|
|
2612
2624
|
}
|
|
2613
2625
|
search() {
|
|
2614
2626
|
this.input.value && (google.maps.event.trigger(this.input, "focus", {}), google.maps.event.trigger(this.input, "keydown", { keyCode: 13 }));
|
|
2615
2627
|
}
|
|
2616
2628
|
}
|
|
2617
|
-
class
|
|
2629
|
+
class Li extends Mr {
|
|
2618
2630
|
constructor(e, r) {
|
|
2619
2631
|
super(e, r.input);
|
|
2620
2632
|
c(this, "autocomplete");
|
|
@@ -2633,8 +2645,8 @@ class wi extends _r {
|
|
|
2633
2645
|
this.placesService.search(e).then(this.onData, this.onError);
|
|
2634
2646
|
}
|
|
2635
2647
|
}
|
|
2636
|
-
var
|
|
2637
|
-
class
|
|
2648
|
+
var xi = /* @__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))(xi || {});
|
|
2649
|
+
class ft {
|
|
2638
2650
|
constructor(t) {
|
|
2639
2651
|
c(this, "latestInfoWindow");
|
|
2640
2652
|
/** 使用{@link setEventTargetDelegate}初始化 */
|
|
@@ -2687,7 +2699,7 @@ class gt {
|
|
|
2687
2699
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
2688
2700
|
* Released under the MIT License.
|
|
2689
2701
|
*/
|
|
2690
|
-
function
|
|
2702
|
+
function Pi(i) {
|
|
2691
2703
|
return i != null && typeof i == "object" && Array.isArray(i) === !1;
|
|
2692
2704
|
}
|
|
2693
2705
|
/*!
|
|
@@ -2696,12 +2708,12 @@ function Li(i) {
|
|
|
2696
2708
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
2697
2709
|
* Released under the MIT License.
|
|
2698
2710
|
*/
|
|
2699
|
-
function
|
|
2700
|
-
return
|
|
2711
|
+
function Ht(i) {
|
|
2712
|
+
return Pi(i) === !0 && Object.prototype.toString.call(i) === "[object Object]";
|
|
2701
2713
|
}
|
|
2702
|
-
function
|
|
2714
|
+
function Or(i) {
|
|
2703
2715
|
var t, e;
|
|
2704
|
-
return !(
|
|
2716
|
+
return !(Ht(i) === !1 || (t = i.constructor, typeof t != "function") || (e = t.prototype, Ht(e) === !1) || e.hasOwnProperty("isPrototypeOf") === !1);
|
|
2705
2717
|
}
|
|
2706
2718
|
var be;
|
|
2707
2719
|
((i) => {
|
|
@@ -2718,27 +2730,27 @@ var be;
|
|
|
2718
2730
|
}
|
|
2719
2731
|
i.toJsonSafely = r;
|
|
2720
2732
|
function s(h) {
|
|
2721
|
-
|
|
2733
|
+
Or(h) && Object.keys(h).forEach((o) => {
|
|
2722
2734
|
h[o] === void 0 ? delete h[o] : s(h[o]);
|
|
2723
2735
|
});
|
|
2724
2736
|
}
|
|
2725
2737
|
i.deleteUndefinedPropertyOnPlainObjectDeeply = s;
|
|
2726
2738
|
function n(h, ...o) {
|
|
2727
|
-
const l =
|
|
2739
|
+
const l = jt(o), d = {};
|
|
2728
2740
|
for (const u in h)
|
|
2729
2741
|
l(u) || (d[u] = h[u]);
|
|
2730
2742
|
return d;
|
|
2731
2743
|
}
|
|
2732
2744
|
i.omit = n;
|
|
2733
2745
|
function a(h, ...o) {
|
|
2734
|
-
const l =
|
|
2746
|
+
const l = jt(o), d = {};
|
|
2735
2747
|
for (const u in h)
|
|
2736
2748
|
l(u) && (d[u] = h[u]);
|
|
2737
2749
|
return d;
|
|
2738
2750
|
}
|
|
2739
2751
|
i.pick = a;
|
|
2740
2752
|
})(be || (be = {}));
|
|
2741
|
-
function
|
|
2753
|
+
function jt(i) {
|
|
2742
2754
|
if (i.length <= 4)
|
|
2743
2755
|
return i.includes.bind(i);
|
|
2744
2756
|
{
|
|
@@ -2747,19 +2759,19 @@ function Wt(i) {
|
|
|
2747
2759
|
}
|
|
2748
2760
|
}
|
|
2749
2761
|
be.toJsonSafely;
|
|
2750
|
-
const
|
|
2751
|
-
var j = /* @__PURE__ */ ((i) => (i.auto = "auto", i.none = "none", i.greedy = "greedy", i.cooperative = "cooperative", i))(j || {}),
|
|
2762
|
+
const ki = ["single", "multi"];
|
|
2763
|
+
var j = /* @__PURE__ */ ((i) => (i.auto = "auto", i.none = "none", i.greedy = "greedy", i.cooperative = "cooperative", i))(j || {}), it;
|
|
2752
2764
|
((i) => {
|
|
2753
2765
|
function t(e) {
|
|
2754
2766
|
be.deleteUndefinedPropertyOnPlainObjectDeeply(e);
|
|
2755
2767
|
const r = { center: y.ZERO, zoom: 5 };
|
|
2756
|
-
return
|
|
2757
|
-
isMergeableObject:
|
|
2768
|
+
return tr(r, e || {}, {
|
|
2769
|
+
isMergeableObject: Or
|
|
2758
2770
|
});
|
|
2759
2771
|
}
|
|
2760
2772
|
i.create = t;
|
|
2761
|
-
})(
|
|
2762
|
-
class
|
|
2773
|
+
})(it || (it = {}));
|
|
2774
|
+
class Cr {
|
|
2763
2775
|
constructor(t, e, r) {
|
|
2764
2776
|
c(this, "_delegate");
|
|
2765
2777
|
this.innerOverlay = t, this.coordType = e, this.map = r;
|
|
@@ -2777,7 +2789,7 @@ class Tr {
|
|
|
2777
2789
|
this.map.removeOverlay(this);
|
|
2778
2790
|
}
|
|
2779
2791
|
}
|
|
2780
|
-
class
|
|
2792
|
+
class yt extends Cr {
|
|
2781
2793
|
constructor(t, e, r) {
|
|
2782
2794
|
super(t, e, r);
|
|
2783
2795
|
}
|
|
@@ -2791,7 +2803,7 @@ class mt extends Tr {
|
|
|
2791
2803
|
this.innerOverlay.setVisible(t);
|
|
2792
2804
|
}
|
|
2793
2805
|
}
|
|
2794
|
-
class je extends
|
|
2806
|
+
class je extends Cr {
|
|
2795
2807
|
constructor(t, e, r) {
|
|
2796
2808
|
super(t, e, r);
|
|
2797
2809
|
}
|
|
@@ -2847,7 +2859,7 @@ let k = Ge;
|
|
|
2847
2859
|
* 故统一加个0.001, 规避这些问题...
|
|
2848
2860
|
*/
|
|
2849
2861
|
c(k, "OPACITY_DELTA", 1e-3);
|
|
2850
|
-
class Ve extends
|
|
2862
|
+
class Ve extends yt {
|
|
2851
2863
|
isEditable() {
|
|
2852
2864
|
return this.innerOverlay.getEditable();
|
|
2853
2865
|
}
|
|
@@ -2870,7 +2882,7 @@ class Ve extends mt {
|
|
|
2870
2882
|
this.innerOverlay.setOptions({ fillOpacity: t });
|
|
2871
2883
|
}
|
|
2872
2884
|
}
|
|
2873
|
-
class
|
|
2885
|
+
class vt extends k {
|
|
2874
2886
|
constructor() {
|
|
2875
2887
|
super(...arguments);
|
|
2876
2888
|
c(this, "prevCenter");
|
|
@@ -2901,7 +2913,7 @@ class ft extends k {
|
|
|
2901
2913
|
strokeWeight: e.strokeWeight,
|
|
2902
2914
|
fillColor: e.fillColor,
|
|
2903
2915
|
fillOpacity: e.fillOpacity != null ? e.fillOpacity + k.OPACITY_DELTA : void 0
|
|
2904
|
-
}), n = new
|
|
2916
|
+
}), n = new vt(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
|
|
2905
2917
|
return n.state.editable && setTimeout(() => {
|
|
2906
2918
|
n.state.editable && s.enableEditing();
|
|
2907
2919
|
}, 0), n;
|
|
@@ -2932,7 +2944,7 @@ class ft extends k {
|
|
|
2932
2944
|
return this.innerOverlay.getRadius();
|
|
2933
2945
|
}
|
|
2934
2946
|
}
|
|
2935
|
-
class
|
|
2947
|
+
class _t extends Ve {
|
|
2936
2948
|
static create(t) {
|
|
2937
2949
|
const e = this.coordType, r = new google.maps.Circle({
|
|
2938
2950
|
center: t.center.toGoogle(e),
|
|
@@ -2946,7 +2958,7 @@ class yt extends Ve {
|
|
|
2946
2958
|
fillOpacity: t.fillOpacity,
|
|
2947
2959
|
visible: t.visible
|
|
2948
2960
|
});
|
|
2949
|
-
return new
|
|
2961
|
+
return new _t(r, e, this);
|
|
2950
2962
|
}
|
|
2951
2963
|
setCenter(t) {
|
|
2952
2964
|
this.coordType = this.map.coordType, this.innerOverlay.setCenter(t.toGoogle(this.coordType));
|
|
@@ -2961,10 +2973,10 @@ class yt extends Ve {
|
|
|
2961
2973
|
return this.innerOverlay.getRadius();
|
|
2962
2974
|
}
|
|
2963
2975
|
}
|
|
2964
|
-
function
|
|
2976
|
+
function wr() {
|
|
2965
2977
|
BMap.OverlayV3 || (BMap.OverlayV3 = BMap.Overlay);
|
|
2966
2978
|
}
|
|
2967
|
-
const
|
|
2979
|
+
const Vt = {
|
|
2968
2980
|
/** {@link BMap.Point.equals} 无效, 故需要自己写一个 */
|
|
2969
2981
|
equals(i, t) {
|
|
2970
2982
|
return i.lat === t.lat && i.lng === t.lng;
|
|
@@ -2975,11 +2987,11 @@ var X;
|
|
|
2975
2987
|
i.ZERO = { x: 0, y: 0 };
|
|
2976
2988
|
})(X || (X = {}));
|
|
2977
2989
|
let Ke;
|
|
2978
|
-
function
|
|
2979
|
-
return Ke || (Ke =
|
|
2990
|
+
function Bi(i, t, e, r, s, n) {
|
|
2991
|
+
return Ke || (Ke = Ii()), new Ke(i, t, e, r, s, n);
|
|
2980
2992
|
}
|
|
2981
|
-
function
|
|
2982
|
-
|
|
2993
|
+
function Ii() {
|
|
2994
|
+
wr();
|
|
2983
2995
|
const i = new BMap.Point(0, 0);
|
|
2984
2996
|
return class extends BMap.OverlayV3 {
|
|
2985
2997
|
constructor(r, s = i, n = X.ZERO, a, h = 654, o = "") {
|
|
@@ -3045,7 +3057,7 @@ function ki() {
|
|
|
3045
3057
|
}
|
|
3046
3058
|
};
|
|
3047
3059
|
}
|
|
3048
|
-
class
|
|
3060
|
+
class bt {
|
|
3049
3061
|
constructor(t) {
|
|
3050
3062
|
this.delegate = t, this.delegate.setTarget(this);
|
|
3051
3063
|
}
|
|
@@ -3056,7 +3068,7 @@ class vt {
|
|
|
3056
3068
|
this.delegate.removeEventListener(t, e);
|
|
3057
3069
|
}
|
|
3058
3070
|
}
|
|
3059
|
-
class
|
|
3071
|
+
class Tt extends bt {
|
|
3060
3072
|
constructor(t, e, r) {
|
|
3061
3073
|
super(new ae(t, e)), this.inner = t, this.map = e, this.state = r;
|
|
3062
3074
|
}
|
|
@@ -3066,7 +3078,7 @@ class _t extends vt {
|
|
|
3066
3078
|
offset: t.offset && new BMap.Size(t.offset.x, t.offset.y),
|
|
3067
3079
|
enableAutoPan: !t.disableAutoPan
|
|
3068
3080
|
});
|
|
3069
|
-
return new
|
|
3081
|
+
return new Tt(r, this, { position: e });
|
|
3070
3082
|
}
|
|
3071
3083
|
isOpen() {
|
|
3072
3084
|
return this.inner.isOpen();
|
|
@@ -3085,10 +3097,10 @@ class _t extends vt {
|
|
|
3085
3097
|
this.state.position = t, this.inner.isOpen() && this.open();
|
|
3086
3098
|
}
|
|
3087
3099
|
}
|
|
3088
|
-
class
|
|
3100
|
+
class Mt extends bt {
|
|
3089
3101
|
constructor(e, r) {
|
|
3090
3102
|
super(new re(e, r));
|
|
3091
|
-
c(this, "eventHub", new
|
|
3103
|
+
c(this, "eventHub", new or());
|
|
3092
3104
|
c(this, "isOpened", !1);
|
|
3093
3105
|
this.inner = e, this.map = r, e.addListener("closeclick", () => {
|
|
3094
3106
|
this.isOpened = !1, this.eventHub.hasListener("close") && this.eventHub.notify({ type: "close", target: this });
|
|
@@ -3105,7 +3117,7 @@ class bt extends vt {
|
|
|
3105
3117
|
position: r.toGoogle(this.coordType),
|
|
3106
3118
|
disableAutoPan: e.disableAutoPan
|
|
3107
3119
|
});
|
|
3108
|
-
return new
|
|
3120
|
+
return new Mt(s, this);
|
|
3109
3121
|
}
|
|
3110
3122
|
isOpen() {
|
|
3111
3123
|
return this.isOpened;
|
|
@@ -3143,13 +3155,13 @@ class bt extends vt {
|
|
|
3143
3155
|
this.inner.setPosition(e.toGoogle(this.map.coordType));
|
|
3144
3156
|
}
|
|
3145
3157
|
}
|
|
3146
|
-
class
|
|
3158
|
+
class Ot extends je {
|
|
3147
3159
|
constructor(t, e, r) {
|
|
3148
3160
|
super(t, e, r), this.baiduMap = r;
|
|
3149
3161
|
}
|
|
3150
3162
|
static create(t) {
|
|
3151
3163
|
var s;
|
|
3152
|
-
const e = this.coordType, r =
|
|
3164
|
+
const e = this.coordType, r = Bi(
|
|
3153
3165
|
t.content,
|
|
3154
3166
|
(s = t.position) == null ? void 0 : s.toBaidu(e),
|
|
3155
3167
|
t.offset,
|
|
@@ -3157,7 +3169,7 @@ class Tt extends je {
|
|
|
3157
3169
|
t.maxWidth,
|
|
3158
3170
|
t.borderClass
|
|
3159
3171
|
);
|
|
3160
|
-
return new
|
|
3172
|
+
return new Ot(r, e, this);
|
|
3161
3173
|
}
|
|
3162
3174
|
open(t) {
|
|
3163
3175
|
this.innerOverlay.open(this.baiduMap.innerMap, t == null ? void 0 : t.innerOverlay);
|
|
@@ -3178,7 +3190,7 @@ class Tt extends je {
|
|
|
3178
3190
|
this.innerOverlay.setZIndex(t);
|
|
3179
3191
|
}
|
|
3180
3192
|
}
|
|
3181
|
-
class
|
|
3193
|
+
class Ct extends bt {
|
|
3182
3194
|
constructor(t, e, r) {
|
|
3183
3195
|
super(new re(t, r)), this.inner = t, this.coordType = e, this.map = r;
|
|
3184
3196
|
}
|
|
@@ -3195,7 +3207,7 @@ class Mt extends vt {
|
|
|
3195
3207
|
var h;
|
|
3196
3208
|
const a = (h = t.content.parentElement) == null ? void 0 : h.parentElement;
|
|
3197
3209
|
a && a.className.includes("gm-style-iw-c") && !a.className.includes(s) && (a.className += ` ${s}`);
|
|
3198
|
-
}), new
|
|
3210
|
+
}), new Ct(r, e, this);
|
|
3199
3211
|
}
|
|
3200
3212
|
open(t) {
|
|
3201
3213
|
this.inner.open(this.map.innerMap, t == null ? void 0 : t.innerOverlay);
|
|
@@ -3241,7 +3253,7 @@ var Te;
|
|
|
3241
3253
|
}
|
|
3242
3254
|
i.pascal2kebab = r;
|
|
3243
3255
|
})(Te || (Te = {}));
|
|
3244
|
-
const
|
|
3256
|
+
const Si = {
|
|
3245
3257
|
/** @see https://nodejs.org/docs/v10.3.0/api/path.html#path_path_basename_path_ext */
|
|
3246
3258
|
basename(i, t) {
|
|
3247
3259
|
const e = i.endsWith("/") ? i.slice(0, -1) : i, r = e.lastIndexOf("/"), s = r >= 0 ? e.substring(r + 1) : e;
|
|
@@ -3281,7 +3293,7 @@ var Me = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overla
|
|
|
3281
3293
|
}
|
|
3282
3294
|
i.toBaidu = e;
|
|
3283
3295
|
})(Oe || (Oe = {}));
|
|
3284
|
-
class
|
|
3296
|
+
class Ai {
|
|
3285
3297
|
constructor(t, e) {
|
|
3286
3298
|
c(this, "baidu");
|
|
3287
3299
|
c(this, "google");
|
|
@@ -3302,7 +3314,7 @@ class Bi {
|
|
|
3302
3314
|
asBaidu() {
|
|
3303
3315
|
if (!this.baidu) {
|
|
3304
3316
|
const t = this;
|
|
3305
|
-
|
|
3317
|
+
wr();
|
|
3306
3318
|
class e extends BMap.OverlayV3 {
|
|
3307
3319
|
initialize(n) {
|
|
3308
3320
|
var o;
|
|
@@ -3355,10 +3367,10 @@ class Bi {
|
|
|
3355
3367
|
}
|
|
3356
3368
|
}
|
|
3357
3369
|
let Xe;
|
|
3358
|
-
function
|
|
3359
|
-
return Xe || (Xe =
|
|
3370
|
+
function Ri(i, t, e, r, s) {
|
|
3371
|
+
return Xe || (Xe = $i()), new Xe(i, t, e, r, s);
|
|
3360
3372
|
}
|
|
3361
|
-
function
|
|
3373
|
+
function $i() {
|
|
3362
3374
|
return class extends google.maps.OverlayView {
|
|
3363
3375
|
constructor(e, r, s, n = Me.overlayMouseTarget, a) {
|
|
3364
3376
|
super();
|
|
@@ -3427,7 +3439,7 @@ var de;
|
|
|
3427
3439
|
}
|
|
3428
3440
|
i.toElement = e;
|
|
3429
3441
|
})(de || (de = {}));
|
|
3430
|
-
class
|
|
3442
|
+
class wt extends je {
|
|
3431
3443
|
constructor(e, r, s, n) {
|
|
3432
3444
|
super(e, r, s);
|
|
3433
3445
|
c(this, "icon");
|
|
@@ -3447,7 +3459,7 @@ class Ot extends je {
|
|
|
3447
3459
|
padding: "0px",
|
|
3448
3460
|
backgroundColor: "unset"
|
|
3449
3461
|
});
|
|
3450
|
-
const n = new
|
|
3462
|
+
const n = new wt(s, r, this, e.content);
|
|
3451
3463
|
return s.__label__ = n, n;
|
|
3452
3464
|
}
|
|
3453
3465
|
setContentInternal(e, r = !1) {
|
|
@@ -3527,17 +3539,17 @@ class Ot extends je {
|
|
|
3527
3539
|
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;
|
|
3528
3540
|
}
|
|
3529
3541
|
}
|
|
3530
|
-
class
|
|
3542
|
+
class Et extends yt {
|
|
3531
3543
|
static create(t) {
|
|
3532
3544
|
var s;
|
|
3533
|
-
const e = this.coordType, r =
|
|
3545
|
+
const e = this.coordType, r = Ri(
|
|
3534
3546
|
de.toElement(t.content),
|
|
3535
3547
|
(s = t.position) == null ? void 0 : s.toGoogle(e),
|
|
3536
3548
|
t.offset,
|
|
3537
3549
|
t.mapPane,
|
|
3538
3550
|
t.zIndex
|
|
3539
3551
|
);
|
|
3540
|
-
return new
|
|
3552
|
+
return new Et(r, e, this);
|
|
3541
3553
|
}
|
|
3542
3554
|
setZIndex(t) {
|
|
3543
3555
|
this.innerOverlay.setZIndex(t);
|
|
@@ -3620,7 +3632,7 @@ var ze;
|
|
|
3620
3632
|
}
|
|
3621
3633
|
i.toBaidu = e;
|
|
3622
3634
|
})(ze || (ze = {}));
|
|
3623
|
-
const
|
|
3635
|
+
const Vs = {
|
|
3624
3636
|
CIRCLE: { baidu: () => BMap_Symbol_SHAPE_CIRCLE, google: () => google.maps.SymbolPath.CIRCLE },
|
|
3625
3637
|
BACKWARD_CLOSED_ARROW: { baidu: () => BMap_Symbol_SHAPE_BACKWARD_CLOSED_ARROW, google: () => google.maps.SymbolPath.BACKWARD_CLOSED_ARROW },
|
|
3626
3638
|
BACKWARD_OPEN_ARROW: { baidu: () => BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW, google: () => google.maps.SymbolPath.BACKWARD_OPEN_ARROW },
|
|
@@ -3694,7 +3706,7 @@ class Ce extends je {
|
|
|
3694
3706
|
return (t = this.innerOverlay.getLabel()) == null ? void 0 : t.__label__;
|
|
3695
3707
|
}
|
|
3696
3708
|
}
|
|
3697
|
-
class
|
|
3709
|
+
class Lt extends yt {
|
|
3698
3710
|
constructor() {
|
|
3699
3711
|
super(...arguments);
|
|
3700
3712
|
c(this, "label");
|
|
@@ -3717,7 +3729,7 @@ class wt extends mt {
|
|
|
3717
3729
|
// InfoWindow相对marker的position的偏移量, 若不指定, 则偏移到marker的icon的上部中央
|
|
3718
3730
|
anchorPoint: new google.maps.Point(0, 0)
|
|
3719
3731
|
};
|
|
3720
|
-
return new
|
|
3732
|
+
return new Lt(new google.maps.Marker(n), r, this);
|
|
3721
3733
|
}
|
|
3722
3734
|
getPosition() {
|
|
3723
3735
|
return y.fromGoogle(this.innerOverlay.getPosition(), this.coordType);
|
|
@@ -3770,7 +3782,7 @@ class wt extends mt {
|
|
|
3770
3782
|
this.label = void 0, this.labelPositionListener = void 0, this.labelVisibleListener = void 0, this.labelMapChangedListener = void 0;
|
|
3771
3783
|
}
|
|
3772
3784
|
}
|
|
3773
|
-
class
|
|
3785
|
+
class xt extends k {
|
|
3774
3786
|
constructor() {
|
|
3775
3787
|
super(...arguments);
|
|
3776
3788
|
c(this, "eventHubDelegate");
|
|
@@ -3806,7 +3818,7 @@ class Et extends k {
|
|
|
3806
3818
|
});
|
|
3807
3819
|
}
|
|
3808
3820
|
}
|
|
3809
|
-
class
|
|
3821
|
+
class Pt extends xt {
|
|
3810
3822
|
constructor() {
|
|
3811
3823
|
super(...arguments);
|
|
3812
3824
|
c(this, "pathEditedEventType", "path-edited");
|
|
@@ -3819,7 +3831,7 @@ class Lt extends Et {
|
|
|
3819
3831
|
strokeOpacity: e.strokeOpacity != null ? e.strokeOpacity + k.OPACITY_DELTA : void 0,
|
|
3820
3832
|
strokeWeight: e.strokeWeight
|
|
3821
3833
|
});
|
|
3822
|
-
return new
|
|
3834
|
+
return new Pt(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
|
|
3823
3835
|
}
|
|
3824
3836
|
getPath() {
|
|
3825
3837
|
return this.innerOverlay.getPath().map((e) => y.fromBaidu(e, this.coordType));
|
|
@@ -3828,7 +3840,7 @@ class Lt extends Et {
|
|
|
3828
3840
|
this.coordType = this.map.coordType, this.setPathInternal(e.map((r) => r.toBaidu(this.coordType)));
|
|
3829
3841
|
}
|
|
3830
3842
|
}
|
|
3831
|
-
class
|
|
3843
|
+
class kt extends Ve {
|
|
3832
3844
|
constructor() {
|
|
3833
3845
|
super(...arguments);
|
|
3834
3846
|
c(this, "pathChangedListeners");
|
|
@@ -3844,7 +3856,7 @@ class xt extends Ve {
|
|
|
3844
3856
|
strokeWeight: e.strokeWeight,
|
|
3845
3857
|
visible: e.visible
|
|
3846
3858
|
});
|
|
3847
|
-
return new
|
|
3859
|
+
return new kt(s, r, this);
|
|
3848
3860
|
}
|
|
3849
3861
|
setupPathChangedListeners() {
|
|
3850
3862
|
const e = () => {
|
|
@@ -3875,7 +3887,7 @@ class xt extends Ve {
|
|
|
3875
3887
|
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();
|
|
3876
3888
|
}
|
|
3877
3889
|
}
|
|
3878
|
-
class
|
|
3890
|
+
class Bt extends xt {
|
|
3879
3891
|
constructor() {
|
|
3880
3892
|
super(...arguments);
|
|
3881
3893
|
c(this, "pathEditedEventType", "paths-edited");
|
|
@@ -3892,7 +3904,7 @@ class Pt extends Et {
|
|
|
3892
3904
|
fillColor: e.fillColor,
|
|
3893
3905
|
fillOpacity: e.fillOpacity != null ? e.fillOpacity + k.OPACITY_DELTA : void 0
|
|
3894
3906
|
});
|
|
3895
|
-
return new
|
|
3907
|
+
return new Bt(n, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
|
|
3896
3908
|
}
|
|
3897
3909
|
getPaths() {
|
|
3898
3910
|
return [this.innerOverlay.getPath().map((e) => y.fromBaidu(e, this.coordType))];
|
|
@@ -3901,7 +3913,7 @@ class Pt extends Et {
|
|
|
3901
3913
|
e.length > 1 && console.warn("baidu不支持多path, 只会显示paths[0]"), this.coordType = this.map.coordType, this.setPathInternal((e[0] || []).map((r) => r.toBaidu(this.coordType)));
|
|
3902
3914
|
}
|
|
3903
3915
|
}
|
|
3904
|
-
class
|
|
3916
|
+
class It extends Ve {
|
|
3905
3917
|
constructor() {
|
|
3906
3918
|
super(...arguments);
|
|
3907
3919
|
c(this, "pathChangedListeners");
|
|
@@ -3919,7 +3931,7 @@ class kt extends Ve {
|
|
|
3919
3931
|
fillOpacity: e.fillOpacity,
|
|
3920
3932
|
visible: e.visible
|
|
3921
3933
|
});
|
|
3922
|
-
return new
|
|
3934
|
+
return new It(s, r, this);
|
|
3923
3935
|
}
|
|
3924
3936
|
setupPathChangedListeners() {
|
|
3925
3937
|
const e = () => {
|
|
@@ -3955,7 +3967,7 @@ class kt extends Ve {
|
|
|
3955
3967
|
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();
|
|
3956
3968
|
}
|
|
3957
3969
|
}
|
|
3958
|
-
class
|
|
3970
|
+
class St extends xt {
|
|
3959
3971
|
constructor(e, r, s, n) {
|
|
3960
3972
|
super(e, r, s, n);
|
|
3961
3973
|
c(this, "pathEditedEventType", "bounds-changed");
|
|
@@ -3970,7 +3982,7 @@ class It extends Et {
|
|
|
3970
3982
|
if (r.length === 4)
|
|
3971
3983
|
if (a > r.length) {
|
|
3972
3984
|
for (let o = 0; o < a; o++)
|
|
3973
|
-
if (r[o] == null || !
|
|
3985
|
+
if (r[o] == null || !Vt.equals(s[o], r[o])) {
|
|
3974
3986
|
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];
|
|
3975
3987
|
let _;
|
|
3976
3988
|
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, _];
|
|
@@ -3978,7 +3990,7 @@ class It extends Et {
|
|
|
3978
3990
|
}
|
|
3979
3991
|
} else if (a === r.length) {
|
|
3980
3992
|
for (let o = 0; o < a; o++)
|
|
3981
|
-
if (!
|
|
3993
|
+
if (!Vt.equals(s[o], r[o])) {
|
|
3982
3994
|
n = [
|
|
3983
3995
|
s[o],
|
|
3984
3996
|
s[(o + 2) % 4]
|
|
@@ -4003,7 +4015,7 @@ class It extends Et {
|
|
|
4003
4015
|
fillColor: e.fillColor,
|
|
4004
4016
|
fillOpacity: e.fillOpacity != null ? e.fillOpacity + k.OPACITY_DELTA : void 0
|
|
4005
4017
|
});
|
|
4006
|
-
return new
|
|
4018
|
+
return new St(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
|
|
4007
4019
|
}
|
|
4008
4020
|
getBounds() {
|
|
4009
4021
|
return A.fromBaidu(this.innerOverlay.getBounds(), this.coordType);
|
|
@@ -4015,7 +4027,7 @@ class It extends Et {
|
|
|
4015
4027
|
}) : this.setPathInternal(r.map((s) => s.toBaidu(this.coordType)));
|
|
4016
4028
|
}
|
|
4017
4029
|
}
|
|
4018
|
-
class
|
|
4030
|
+
class At extends Ve {
|
|
4019
4031
|
static create(t) {
|
|
4020
4032
|
const e = this.coordType, r = new google.maps.Rectangle({
|
|
4021
4033
|
bounds: t.bounds.toGoogle(e),
|
|
@@ -4028,7 +4040,7 @@ class Bt extends Ve {
|
|
|
4028
4040
|
fillOpacity: t.fillOpacity,
|
|
4029
4041
|
visible: t.visible
|
|
4030
4042
|
});
|
|
4031
|
-
return new
|
|
4043
|
+
return new At(r, e, this);
|
|
4032
4044
|
}
|
|
4033
4045
|
getBounds() {
|
|
4034
4046
|
return A.fromGoogle(this.innerOverlay.getBounds() ?? J.BOUNDS_ZERO, this.coordType);
|
|
@@ -4039,24 +4051,24 @@ class Bt extends Ve {
|
|
|
4039
4051
|
}
|
|
4040
4052
|
}
|
|
4041
4053
|
const ee = 1;
|
|
4042
|
-
class
|
|
4054
|
+
class Di extends ft {
|
|
4043
4055
|
constructor(e, r) {
|
|
4044
4056
|
var s;
|
|
4045
4057
|
super(e);
|
|
4046
4058
|
c(this, "buildInMapTypeId2BIMT");
|
|
4047
4059
|
c(this, "baiduMapType2BIMT");
|
|
4048
4060
|
c(this, "map");
|
|
4049
|
-
c(this, "createLabel",
|
|
4050
|
-
c(this, "createCircle",
|
|
4051
|
-
c(this, "createPolygon",
|
|
4052
|
-
c(this, "createPolyline",
|
|
4053
|
-
c(this, "createRectangle",
|
|
4054
|
-
c(this, "createInfoWindow",
|
|
4055
|
-
c(this, "createInfoBox",
|
|
4061
|
+
c(this, "createLabel", wt.create);
|
|
4062
|
+
c(this, "createCircle", vt.create);
|
|
4063
|
+
c(this, "createPolygon", Bt.create);
|
|
4064
|
+
c(this, "createPolyline", Pt.create);
|
|
4065
|
+
c(this, "createRectangle", St.create);
|
|
4066
|
+
c(this, "createInfoWindow", Tt.create);
|
|
4067
|
+
c(this, "createInfoBox", Ot.create);
|
|
4056
4068
|
c(this, "createMarker", Ce.create);
|
|
4057
|
-
c(this, "createMapTypeControl",
|
|
4058
|
-
c(this, "createZoomControl",
|
|
4059
|
-
c(this, "createScaleControl",
|
|
4069
|
+
c(this, "createMapTypeControl", ct.create);
|
|
4070
|
+
c(this, "createZoomControl", pt.create);
|
|
4071
|
+
c(this, "createScaleControl", dt.create);
|
|
4060
4072
|
this.buildInMapTypeId2BIMT = R.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.getId), this.baiduMapType2BIMT = R.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.asBaiduMapType), this.map = new BMap.Map(e, {
|
|
4061
4073
|
minZoom: r.minZoom && r.minZoom + ee,
|
|
4062
4074
|
maxZoom: r.maxZoom && r.maxZoom + ee,
|
|
@@ -4072,7 +4084,7 @@ class Ri extends gt {
|
|
|
4072
4084
|
});
|
|
4073
4085
|
}
|
|
4074
4086
|
setGestureHandling(e = j.auto) {
|
|
4075
|
-
switch (e === j.auto && (e = this.element.parentElement &&
|
|
4087
|
+
switch (e === j.auto && (e = this.element.parentElement && rt.isScrollable(this.element.parentElement) ? j.cooperative : j.greedy), e) {
|
|
4076
4088
|
case j.cooperative:
|
|
4077
4089
|
this.map.disableScrollWheelZoom(), this.map.enableDragging(), this.map.enableDoubleClickZoom();
|
|
4078
4090
|
break;
|
|
@@ -4205,39 +4217,39 @@ class Ri extends gt {
|
|
|
4205
4217
|
e.inner && (oe(e.inner instanceof BMap.Control, `control.inner(${e.inner})需要是BMap.Control`), this.map.removeControl(e.inner));
|
|
4206
4218
|
}
|
|
4207
4219
|
createMarkerClusterer(e) {
|
|
4208
|
-
return new
|
|
4220
|
+
return new Mi(this, e);
|
|
4209
4221
|
}
|
|
4210
4222
|
createAutocomplete(e) {
|
|
4211
|
-
return new
|
|
4223
|
+
return new yi(this, e);
|
|
4212
4224
|
}
|
|
4213
4225
|
createSearchBox(e) {
|
|
4214
|
-
return new
|
|
4226
|
+
return new Li(this, e);
|
|
4215
4227
|
}
|
|
4216
4228
|
createPlacesService(e) {
|
|
4217
|
-
return new
|
|
4229
|
+
return new wi(this, e);
|
|
4218
4230
|
}
|
|
4219
4231
|
createMapUrls(e) {
|
|
4220
|
-
return new
|
|
4232
|
+
return new Ie(e);
|
|
4221
4233
|
}
|
|
4222
4234
|
}
|
|
4223
|
-
class
|
|
4235
|
+
class zi extends ft {
|
|
4224
4236
|
constructor(e, r) {
|
|
4225
4237
|
var n;
|
|
4226
4238
|
super(e);
|
|
4227
4239
|
c(this, "buildInMapTypeId2BIMT");
|
|
4228
4240
|
c(this, "googleMapTypeId2BIMT");
|
|
4229
4241
|
c(this, "map");
|
|
4230
|
-
c(this, "createLabel",
|
|
4231
|
-
c(this, "createCircle",
|
|
4232
|
-
c(this, "createPolygon",
|
|
4233
|
-
c(this, "createPolyline",
|
|
4234
|
-
c(this, "createRectangle",
|
|
4235
|
-
c(this, "createInfoWindow",
|
|
4236
|
-
c(this, "createInfoBox",
|
|
4237
|
-
c(this, "createMarker",
|
|
4242
|
+
c(this, "createLabel", Et.create);
|
|
4243
|
+
c(this, "createCircle", _t.create);
|
|
4244
|
+
c(this, "createPolygon", It.create);
|
|
4245
|
+
c(this, "createPolyline", kt.create);
|
|
4246
|
+
c(this, "createRectangle", At.create);
|
|
4247
|
+
c(this, "createInfoWindow", Mt.create);
|
|
4248
|
+
c(this, "createInfoBox", Ct.create);
|
|
4249
|
+
c(this, "createMarker", Lt.create);
|
|
4238
4250
|
c(this, "createMapTypeControl", ke.create);
|
|
4239
|
-
c(this, "createZoomControl",
|
|
4240
|
-
c(this, "createScaleControl",
|
|
4251
|
+
c(this, "createZoomControl", gt.create);
|
|
4252
|
+
c(this, "createScaleControl", ut.create);
|
|
4241
4253
|
this.mapOptions = r, this.buildInMapTypeId2BIMT = R.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.getId), this.googleMapTypeId2BIMT = R.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.getGoogleMapTypeId);
|
|
4242
4254
|
const s = r.buildInMapTypeId && this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId);
|
|
4243
4255
|
this.map = new google.maps.Map(e, {
|
|
@@ -4366,29 +4378,29 @@ class $i extends gt {
|
|
|
4366
4378
|
}
|
|
4367
4379
|
}
|
|
4368
4380
|
createMarkerClusterer(e) {
|
|
4369
|
-
return new
|
|
4381
|
+
return new Oi(this, e);
|
|
4370
4382
|
}
|
|
4371
4383
|
createAutocomplete(e) {
|
|
4372
|
-
return new
|
|
4384
|
+
return new fi(this, e);
|
|
4373
4385
|
}
|
|
4374
4386
|
createSearchBox(e) {
|
|
4375
|
-
return new
|
|
4387
|
+
return new Ei(this, e);
|
|
4376
4388
|
}
|
|
4377
4389
|
createPlacesService(e) {
|
|
4378
|
-
return new
|
|
4390
|
+
return new Ci(this, e);
|
|
4379
4391
|
}
|
|
4380
4392
|
createMapUrls(e) {
|
|
4381
|
-
return new
|
|
4393
|
+
return new Be(e);
|
|
4382
4394
|
}
|
|
4383
4395
|
}
|
|
4384
|
-
class
|
|
4396
|
+
class Ni extends ft {
|
|
4385
4397
|
constructor(e, r) {
|
|
4386
4398
|
var a;
|
|
4387
4399
|
super(e);
|
|
4388
4400
|
c(this, "map");
|
|
4389
4401
|
c(this, "defaultLayers");
|
|
4390
4402
|
this.mapOptions = r;
|
|
4391
|
-
const s =
|
|
4403
|
+
const s = ir().here;
|
|
4392
4404
|
Ae.includes(s.version) || C(`不支持${s.version}, HereMap当前只支持如下版本: ${Ae}`);
|
|
4393
4405
|
const n = new H.service.Platform({
|
|
4394
4406
|
app_id: s.key.split(",")[0],
|
|
@@ -4403,7 +4415,7 @@ class Di extends gt {
|
|
|
4403
4415
|
return this.map;
|
|
4404
4416
|
}
|
|
4405
4417
|
get coordType() {
|
|
4406
|
-
return
|
|
4418
|
+
return I.wgs84;
|
|
4407
4419
|
}
|
|
4408
4420
|
getCenter() {
|
|
4409
4421
|
return y.fromHere(this.map.getCenter(), this.coordType);
|
|
@@ -4533,34 +4545,34 @@ class Di extends gt {
|
|
|
4533
4545
|
throw new Error("Method not implemented.");
|
|
4534
4546
|
}
|
|
4535
4547
|
}
|
|
4536
|
-
var G = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here = "here", i))(G || {}),
|
|
4548
|
+
var G = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here = "here", i))(G || {}), st;
|
|
4537
4549
|
((i) => {
|
|
4538
4550
|
function t(e, r, s) {
|
|
4539
|
-
const n =
|
|
4551
|
+
const n = it.create(s);
|
|
4540
4552
|
switch (e) {
|
|
4541
4553
|
case "google":
|
|
4542
|
-
return new
|
|
4554
|
+
return new zi(r, n);
|
|
4543
4555
|
case "baidu":
|
|
4544
|
-
return new Ri(r, n);
|
|
4545
|
-
case "here":
|
|
4546
4556
|
return new Di(r, n);
|
|
4557
|
+
case "here":
|
|
4558
|
+
return new Ni(r, n);
|
|
4547
4559
|
}
|
|
4548
4560
|
}
|
|
4549
4561
|
i.createMap = t;
|
|
4550
|
-
})(
|
|
4551
|
-
function
|
|
4552
|
-
const e = window, r =
|
|
4562
|
+
})(st || (st = {}));
|
|
4563
|
+
function Gi({ type: i, config: t }) {
|
|
4564
|
+
const e = window, r = Zi(i);
|
|
4553
4565
|
if (e[r])
|
|
4554
4566
|
return Promise.resolve();
|
|
4555
4567
|
switch (i !== G.here && !t.key && C(`请先配置${i}地图的key`), i) {
|
|
4556
4568
|
case G.google:
|
|
4557
|
-
return {}.VITE_FALSE ? (
|
|
4569
|
+
return {}.VITE_FALSE ? (pi({
|
|
4558
4570
|
key: t.key,
|
|
4559
4571
|
v: "3.52"
|
|
4560
4572
|
// v: config.version,
|
|
4561
|
-
}), google.maps.importLibrary("core")) :
|
|
4573
|
+
}), google.maps.importLibrary("core")) : Ft(`https://maps.googleapis.com/maps/api/js?key=${t.key}&language=${t.language}&v=${t.version}&libraries=${t.libraries.join(",")}`);
|
|
4562
4574
|
case G.baidu:
|
|
4563
|
-
return
|
|
4575
|
+
return Ft(`https://api.map.baidu.com/api?v=${t.version}&ak=${t.key}`);
|
|
4564
4576
|
case G.here:
|
|
4565
4577
|
return ge(pe("core", t.version)).then(() => Promise.all([
|
|
4566
4578
|
// 其他大多数模块都可以同时载入
|
|
@@ -4576,7 +4588,7 @@ function zi({ type: i, config: t }) {
|
|
|
4576
4588
|
function pe(i, t = Ae[0]) {
|
|
4577
4589
|
return `https://js.api.here.com/v3/${t}/mapsjs-${i}.js`;
|
|
4578
4590
|
}
|
|
4579
|
-
function
|
|
4591
|
+
function Zi(i) {
|
|
4580
4592
|
switch (i) {
|
|
4581
4593
|
case G.google:
|
|
4582
4594
|
return "google";
|
|
@@ -4586,10 +4598,10 @@ function Ni(i) {
|
|
|
4586
4598
|
return "H";
|
|
4587
4599
|
}
|
|
4588
4600
|
}
|
|
4589
|
-
let
|
|
4590
|
-
function
|
|
4601
|
+
let Wi = 0;
|
|
4602
|
+
function Ft(i, t = "callback") {
|
|
4591
4603
|
return new Promise((e, r) => {
|
|
4592
|
-
const s = `__callback${
|
|
4604
|
+
const s = `__callback${Wi++}`;
|
|
4593
4605
|
window[s] = e;
|
|
4594
4606
|
const n = document.createElement("script");
|
|
4595
4607
|
n.src = `${i}&${t}=${s}`, n.onerror = r, document.body.appendChild(n);
|
|
@@ -4608,7 +4620,7 @@ function Z(i, t) {
|
|
|
4608
4620
|
validator: (e) => Object.values(i).includes(e)
|
|
4609
4621
|
};
|
|
4610
4622
|
}
|
|
4611
|
-
function
|
|
4623
|
+
function Hi(i, t) {
|
|
4612
4624
|
return {
|
|
4613
4625
|
type: String,
|
|
4614
4626
|
default: t,
|
|
@@ -4627,7 +4639,7 @@ function m(i, t) {
|
|
|
4627
4639
|
default: t
|
|
4628
4640
|
};
|
|
4629
4641
|
}
|
|
4630
|
-
function
|
|
4642
|
+
function Fs(i) {
|
|
4631
4643
|
const t = {};
|
|
4632
4644
|
return Object.entries(i).forEach(([e, r]) => {
|
|
4633
4645
|
const s = `__${e}`;
|
|
@@ -4650,17 +4662,17 @@ const me = {
|
|
|
4650
4662
|
get: ve,
|
|
4651
4663
|
set: ve
|
|
4652
4664
|
};
|
|
4653
|
-
function
|
|
4665
|
+
function ji(i) {
|
|
4654
4666
|
return Object.keys(i).forEach((t) => {
|
|
4655
4667
|
const e = i[t];
|
|
4656
4668
|
let r = !1;
|
|
4657
4669
|
typeof e == "function" ? (me.get = e, me.set = ve, r = !0) : typeof e == "object" && typeof e.get == "function" && (me.get = e.get, me.set = e.set, r = !0), r && (i[t] = Object.defineProperty(i, t, me));
|
|
4658
4670
|
}), i;
|
|
4659
4671
|
}
|
|
4660
|
-
function
|
|
4661
|
-
return
|
|
4672
|
+
function Us(i) {
|
|
4673
|
+
return ji(i);
|
|
4662
4674
|
}
|
|
4663
|
-
function
|
|
4675
|
+
function Er() {
|
|
4664
4676
|
return Je();
|
|
4665
4677
|
}
|
|
4666
4678
|
function Pe(i, t) {
|
|
@@ -4669,12 +4681,12 @@ function Pe(i, t) {
|
|
|
4669
4681
|
for (const r of e)
|
|
4670
4682
|
r.call(i);
|
|
4671
4683
|
}
|
|
4672
|
-
function
|
|
4684
|
+
function Ys(i, t) {
|
|
4673
4685
|
for (const e of i)
|
|
4674
4686
|
if (e.$options.name === t.name)
|
|
4675
4687
|
return e;
|
|
4676
4688
|
}
|
|
4677
|
-
function
|
|
4689
|
+
function qs(i, t) {
|
|
4678
4690
|
if (!i.default)
|
|
4679
4691
|
return;
|
|
4680
4692
|
const e = i.default();
|
|
@@ -4682,7 +4694,7 @@ function Us(i, t) {
|
|
|
4682
4694
|
if ((r == null ? void 0 : r.type).name === t.name)
|
|
4683
4695
|
return r;
|
|
4684
4696
|
}
|
|
4685
|
-
function
|
|
4697
|
+
function Vi(i, t) {
|
|
4686
4698
|
const e = {}, r = {}, s = {};
|
|
4687
4699
|
return Object.keys(i).forEach((n) => {
|
|
4688
4700
|
n.startsWith("on") ? e[Te.pascal2kebab(n.substring(2))] = i[n] : r[n] = i[n];
|
|
@@ -4698,12 +4710,12 @@ function Hi(i, t) {
|
|
|
4698
4710
|
};
|
|
4699
4711
|
}
|
|
4700
4712
|
function Y(i, t) {
|
|
4701
|
-
return
|
|
4713
|
+
return Yt(() => Vi(i, t));
|
|
4702
4714
|
}
|
|
4703
4715
|
function L() {
|
|
4704
4716
|
return Function;
|
|
4705
4717
|
}
|
|
4706
|
-
const
|
|
4718
|
+
const Ks = () => {
|
|
4707
4719
|
let i, t;
|
|
4708
4720
|
function e(s) {
|
|
4709
4721
|
console.log(s), i = s && s.type, t = Date.now();
|
|
@@ -4712,8 +4724,8 @@ const Ys = () => {
|
|
|
4712
4724
|
((s && s.type) !== i || Date.now() - (t ?? 0) > 1e3) && e(s);
|
|
4713
4725
|
}
|
|
4714
4726
|
return { eventLog: e, eventLogLess: r };
|
|
4715
|
-
},
|
|
4716
|
-
inject: [
|
|
4727
|
+
}, Rt = "$map", we = "onCreate", Ee = "onDestroy", P = w({
|
|
4728
|
+
inject: [Rt],
|
|
4717
4729
|
mounted() {
|
|
4718
4730
|
Pe(this, we);
|
|
4719
4731
|
},
|
|
@@ -4726,13 +4738,13 @@ const Ys = () => {
|
|
|
4726
4738
|
}
|
|
4727
4739
|
},
|
|
4728
4740
|
render() {
|
|
4729
|
-
return
|
|
4741
|
+
return Er();
|
|
4730
4742
|
}
|
|
4731
|
-
}),
|
|
4743
|
+
}), Fi = w({
|
|
4732
4744
|
name: "tg-map",
|
|
4733
4745
|
provide() {
|
|
4734
4746
|
return {
|
|
4735
|
-
[
|
|
4747
|
+
[Rt]: Yt(() => this.map)
|
|
4736
4748
|
};
|
|
4737
4749
|
},
|
|
4738
4750
|
inheritAttrs: !1,
|
|
@@ -4769,12 +4781,12 @@ const Ys = () => {
|
|
|
4769
4781
|
* 该属性不会响应式更新, 要让它立即生效, 请参考{@link file://./../views/map/InfoDemo.vue#L3}
|
|
4770
4782
|
* @see MapOptions.infoWindowMode
|
|
4771
4783
|
*/
|
|
4772
|
-
infoWindowMode:
|
|
4784
|
+
infoWindowMode: Hi(ki),
|
|
4773
4785
|
gestureHandling: Z(j),
|
|
4774
4786
|
minZoom: m(Number),
|
|
4775
4787
|
maxZoom: m(Number),
|
|
4776
4788
|
mapStyle: m(Object),
|
|
4777
|
-
mapTypeId: Z(
|
|
4789
|
+
mapTypeId: Z(lr),
|
|
4778
4790
|
/** 地图类型对象, 优先级比mapTypeId高 */
|
|
4779
4791
|
mapType: m(Object),
|
|
4780
4792
|
hideLogo: m(Boolean),
|
|
@@ -4835,7 +4847,7 @@ const Ys = () => {
|
|
|
4835
4847
|
async mounted() {
|
|
4836
4848
|
const i = this.type;
|
|
4837
4849
|
try {
|
|
4838
|
-
await
|
|
4850
|
+
await Gi({ type: i, config: ir()[i] });
|
|
4839
4851
|
} catch (s) {
|
|
4840
4852
|
this.$emit("error", s);
|
|
4841
4853
|
return;
|
|
@@ -4844,7 +4856,7 @@ const Ys = () => {
|
|
|
4844
4856
|
console.warn(`tg-map(type=${i})已销毁, 不需要继续执行`);
|
|
4845
4857
|
return;
|
|
4846
4858
|
}
|
|
4847
|
-
const t =
|
|
4859
|
+
const t = st.createMap(
|
|
4848
4860
|
i,
|
|
4849
4861
|
this.$refs.map,
|
|
4850
4862
|
/* options: */
|
|
@@ -4859,12 +4871,12 @@ const Ys = () => {
|
|
|
4859
4871
|
buildInMapTypeId: this.mapTypeId
|
|
4860
4872
|
}
|
|
4861
4873
|
);
|
|
4862
|
-
if (this.map =
|
|
4874
|
+
if (this.map = Ar(t), this.mapType && t.setMapType(this.mapType), "ready" in this.attrs.listeners && console.error("地图载入完成的事件已经从ready改为了load, 请手动修改"), U(
|
|
4863
4875
|
this.attrs.listeners,
|
|
4864
4876
|
t,
|
|
4865
4877
|
/* excludes: */
|
|
4866
4878
|
["load"]
|
|
4867
|
-
), this.$emit("load", t),
|
|
4879
|
+
), this.$emit("load", t), qt([
|
|
4868
4880
|
() => this.zoom,
|
|
4869
4881
|
() => this.center
|
|
4870
4882
|
//
|
|
@@ -4898,9 +4910,9 @@ const q = (i, t) => {
|
|
|
4898
4910
|
e[r] = s;
|
|
4899
4911
|
return e;
|
|
4900
4912
|
};
|
|
4901
|
-
function
|
|
4913
|
+
function Ui(i, t, e, r, s, n) {
|
|
4902
4914
|
return V(), F("div", ue({ class: "tg-map" }, i.attrs.binds), [
|
|
4903
|
-
|
|
4915
|
+
Rr("div", {
|
|
4904
4916
|
ref: "map",
|
|
4905
4917
|
class: Ze({
|
|
4906
4918
|
"tg-map__map": !0,
|
|
@@ -4912,8 +4924,8 @@ function Vi(i, t, e, r, s, n) {
|
|
|
4912
4924
|
W(i.$slots, "overlay")
|
|
4913
4925
|
], 16);
|
|
4914
4926
|
}
|
|
4915
|
-
const
|
|
4916
|
-
function
|
|
4927
|
+
const Le = /* @__PURE__ */ q(Fi, [["render", Ui]]);
|
|
4928
|
+
function Yi(i) {
|
|
4917
4929
|
if (i == null)
|
|
4918
4930
|
return;
|
|
4919
4931
|
let t;
|
|
@@ -4924,7 +4936,7 @@ function Fi(i) {
|
|
|
4924
4936
|
t = i;
|
|
4925
4937
|
return `${t}px`;
|
|
4926
4938
|
}
|
|
4927
|
-
const
|
|
4939
|
+
const qi = w({
|
|
4928
4940
|
name: "tg-map-widget",
|
|
4929
4941
|
props: {
|
|
4930
4942
|
left: {
|
|
@@ -4950,22 +4962,22 @@ const Ui = w({
|
|
|
4950
4962
|
}
|
|
4951
4963
|
},
|
|
4952
4964
|
methods: {
|
|
4953
|
-
dimen:
|
|
4965
|
+
dimen: Yi
|
|
4954
4966
|
}
|
|
4955
4967
|
});
|
|
4956
|
-
function
|
|
4968
|
+
function Ki(i, t, e, r, s, n) {
|
|
4957
4969
|
return V(), F("div", {
|
|
4958
4970
|
class: Ze(i.$options.name),
|
|
4959
|
-
style:
|
|
4971
|
+
style: $r({ left: i.dimen(i.left), top: i.dimen(i.topValue), right: i.dimen(i.right), bottom: i.dimen(i.bottom) })
|
|
4960
4972
|
}, [
|
|
4961
4973
|
W(i.$slots, "default")
|
|
4962
4974
|
], 6);
|
|
4963
4975
|
}
|
|
4964
|
-
const
|
|
4976
|
+
const Xi = /* @__PURE__ */ q(qi, [["render", Ki]]), Ji = w({
|
|
4965
4977
|
name: "tg-custom-control",
|
|
4966
4978
|
mixins: [P],
|
|
4967
4979
|
props: {
|
|
4968
|
-
position: Z(
|
|
4980
|
+
position: Z(B, B.RIGHT_BOTTOM)
|
|
4969
4981
|
},
|
|
4970
4982
|
setup() {
|
|
4971
4983
|
return {
|
|
@@ -4978,8 +4990,8 @@ const qi = /* @__PURE__ */ q(Ui, [["render", Yi]]), Ki = w({
|
|
|
4978
4990
|
}
|
|
4979
4991
|
},
|
|
4980
4992
|
onCreate() {
|
|
4981
|
-
|
|
4982
|
-
const { $el: i } = this, t = class extends
|
|
4993
|
+
Jt(this.$parent, Le) || console.warn("请将tg-custom-control放到tg-map中");
|
|
4994
|
+
const { $el: i } = this, t = class extends di {
|
|
4983
4995
|
onCreateElement() {
|
|
4984
4996
|
return i;
|
|
4985
4997
|
}
|
|
@@ -4990,19 +5002,19 @@ const qi = /* @__PURE__ */ q(Ui, [["render", Yi]]), Ki = w({
|
|
|
4990
5002
|
this.$map.removeCustomControl(this.control);
|
|
4991
5003
|
}
|
|
4992
5004
|
});
|
|
4993
|
-
function
|
|
5005
|
+
function Qi(i, t, e, r, s, n) {
|
|
4994
5006
|
return V(), F("div", {
|
|
4995
5007
|
class: Ze(i.$options.name)
|
|
4996
5008
|
}, [
|
|
4997
5009
|
W(i.$slots, "default")
|
|
4998
5010
|
], 2);
|
|
4999
5011
|
}
|
|
5000
|
-
const
|
|
5012
|
+
const es = /* @__PURE__ */ q(Ji, [["render", Qi]]), ts = w({
|
|
5001
5013
|
name: "tg-map-type-control",
|
|
5002
5014
|
mixins: [P],
|
|
5003
5015
|
props: {
|
|
5004
|
-
position: Z(
|
|
5005
|
-
type: Z(
|
|
5016
|
+
position: Z(B, B.TOP_LEFT),
|
|
5017
|
+
type: Z(hr),
|
|
5006
5018
|
mapTypes: m(Array)
|
|
5007
5019
|
},
|
|
5008
5020
|
setup() {
|
|
@@ -5030,11 +5042,11 @@ const Ji = /* @__PURE__ */ q(Ki, [["render", Xi]]), Qi = w({
|
|
|
5030
5042
|
onDestroy() {
|
|
5031
5043
|
this.$map.removeControl(this.control);
|
|
5032
5044
|
}
|
|
5033
|
-
}),
|
|
5045
|
+
}), rs = w({
|
|
5034
5046
|
name: "tg-scale-control",
|
|
5035
5047
|
mixins: [P],
|
|
5036
5048
|
props: {
|
|
5037
|
-
position: Z(
|
|
5049
|
+
position: Z(B, B.BOTTOM_RIGHT)
|
|
5038
5050
|
},
|
|
5039
5051
|
setup() {
|
|
5040
5052
|
return {
|
|
@@ -5053,20 +5065,20 @@ const Ji = /* @__PURE__ */ q(Ki, [["render", Xi]]), Qi = w({
|
|
|
5053
5065
|
this.$map.removeControl(this.control);
|
|
5054
5066
|
}
|
|
5055
5067
|
});
|
|
5056
|
-
function
|
|
5068
|
+
function Lr() {
|
|
5057
5069
|
var e;
|
|
5058
|
-
const i = (e =
|
|
5070
|
+
const i = (e = Dr()) == null ? void 0 : e.type;
|
|
5059
5071
|
let t = (i == null ? void 0 : i.name) ?? (i == null ? void 0 : i.__name);
|
|
5060
5072
|
if (!t) {
|
|
5061
5073
|
const r = i == null ? void 0 : i.__file;
|
|
5062
|
-
r && (t =
|
|
5074
|
+
r && (t = Si.basename(r, ".vue"));
|
|
5063
5075
|
}
|
|
5064
5076
|
return t;
|
|
5065
5077
|
}
|
|
5066
|
-
function
|
|
5067
|
-
const i =
|
|
5078
|
+
function is() {
|
|
5079
|
+
const i = zr(Rt);
|
|
5068
5080
|
let t, e;
|
|
5069
|
-
return i == null && C(`<${
|
|
5081
|
+
return i == null && C(`<${Lr() || "unknown"}>必须作为<tg-map>的子代组件`), {
|
|
5070
5082
|
mapRef: i,
|
|
5071
5083
|
/** 读取map对象, 只要放在<tg-map>里面的组件(除#overlay插槽外)都能够立即读取到map对象 */
|
|
5072
5084
|
get map() {
|
|
@@ -5074,11 +5086,11 @@ function ts() {
|
|
|
5074
5086
|
},
|
|
5075
5087
|
/** 地图元素创建回调 */
|
|
5076
5088
|
[we](r) {
|
|
5077
|
-
|
|
5089
|
+
Nr(r), t && C(`${we}只能调用一次`), t = r;
|
|
5078
5090
|
},
|
|
5079
5091
|
/** 地图元素销毁回调 */
|
|
5080
5092
|
[Ee](r) {
|
|
5081
|
-
|
|
5093
|
+
Gr(r), e && C(`${Ee}只能调用一次`), e = r;
|
|
5082
5094
|
},
|
|
5083
5095
|
/** 重新创建地图元素 */
|
|
5084
5096
|
recreate() {
|
|
@@ -5086,23 +5098,23 @@ function ts() {
|
|
|
5086
5098
|
}
|
|
5087
5099
|
};
|
|
5088
5100
|
}
|
|
5089
|
-
const
|
|
5101
|
+
const ss = w({
|
|
5090
5102
|
name: "tg-zoom-control",
|
|
5091
5103
|
props: {
|
|
5092
|
-
position: Z(
|
|
5104
|
+
position: Z(B, B.RIGHT_BOTTOM)
|
|
5093
5105
|
},
|
|
5094
5106
|
setup(i) {
|
|
5095
5107
|
let t = void 0;
|
|
5096
|
-
const { map: e, onCreate: r, onDestroy: s } =
|
|
5108
|
+
const { map: e, onCreate: r, onDestroy: s } = is();
|
|
5097
5109
|
return r(() => {
|
|
5098
5110
|
t = e.createZoomControl(i), e.addControl(t);
|
|
5099
5111
|
}), s(() => {
|
|
5100
5112
|
e.removeControl(t);
|
|
5101
|
-
}),
|
|
5113
|
+
}), qt(() => i.position, (n) => {
|
|
5102
5114
|
t.setPosition(n);
|
|
5103
|
-
}),
|
|
5115
|
+
}), Er;
|
|
5104
5116
|
}
|
|
5105
|
-
}),
|
|
5117
|
+
}), ns = w({
|
|
5106
5118
|
name: "tg-marker-clusterer",
|
|
5107
5119
|
mixins: [P],
|
|
5108
5120
|
// markers从this.$children中读取, 故需要省略(Omit)
|
|
@@ -5166,14 +5178,14 @@ const rs = w({
|
|
|
5166
5178
|
}
|
|
5167
5179
|
}
|
|
5168
5180
|
});
|
|
5169
|
-
function
|
|
5181
|
+
function os(i, t, e, r, s, n) {
|
|
5170
5182
|
return V(), F("div", {
|
|
5171
5183
|
class: Ze(i.$options.name)
|
|
5172
5184
|
}, [
|
|
5173
5185
|
W(i.$slots, "default")
|
|
5174
5186
|
], 2);
|
|
5175
5187
|
}
|
|
5176
|
-
const
|
|
5188
|
+
const xr = /* @__PURE__ */ q(ns, [["render", os]]), as = w({
|
|
5177
5189
|
name: "tg-traffic-layer",
|
|
5178
5190
|
mixins: [P],
|
|
5179
5191
|
// 请直接使用v-if来控制它的显隐
|
|
@@ -5186,12 +5198,12 @@ const Er = /* @__PURE__ */ q(is, [["render", ss]]), ns = w({
|
|
|
5186
5198
|
},
|
|
5187
5199
|
watch: {},
|
|
5188
5200
|
onCreate() {
|
|
5189
|
-
this.layer = new
|
|
5201
|
+
this.layer = new ui(), this.$map.addLayer(this.layer);
|
|
5190
5202
|
},
|
|
5191
5203
|
onDestroy() {
|
|
5192
5204
|
this.$map.removeLayer(this.layer);
|
|
5193
5205
|
}
|
|
5194
|
-
}),
|
|
5206
|
+
}), ls = w({
|
|
5195
5207
|
name: "tg-circle",
|
|
5196
5208
|
mixins: [P],
|
|
5197
5209
|
inheritAttrs: !1,
|
|
@@ -5271,7 +5283,7 @@ const Er = /* @__PURE__ */ q(is, [["render", ss]]), ns = w({
|
|
|
5271
5283
|
this.$map.removeOverlay(this.overlay);
|
|
5272
5284
|
}
|
|
5273
5285
|
});
|
|
5274
|
-
class
|
|
5286
|
+
class hs extends Ai {
|
|
5275
5287
|
constructor(t, e, r, s) {
|
|
5276
5288
|
super(t, e), this.content = r, this.position = s;
|
|
5277
5289
|
}
|
|
@@ -5286,7 +5298,7 @@ class as extends Bi {
|
|
|
5286
5298
|
this.position = t, this.draw();
|
|
5287
5299
|
}
|
|
5288
5300
|
}
|
|
5289
|
-
const
|
|
5301
|
+
const cs = w({
|
|
5290
5302
|
name: "tg-element-overlay",
|
|
5291
5303
|
mixins: [P],
|
|
5292
5304
|
props: {
|
|
@@ -5312,20 +5324,20 @@ const ls = w({
|
|
|
5312
5324
|
}
|
|
5313
5325
|
},
|
|
5314
5326
|
onCreate() {
|
|
5315
|
-
this.overlay = new
|
|
5327
|
+
this.overlay = new hs(this.$map, this, this.content(), this.position), this.$map.addElementOverlay(this.overlay);
|
|
5316
5328
|
},
|
|
5317
5329
|
onDestroy() {
|
|
5318
5330
|
this.$map.removeElementOverlay(this.overlay);
|
|
5319
5331
|
}
|
|
5320
5332
|
});
|
|
5321
|
-
function
|
|
5333
|
+
function ds(i, t, e, r, s, n) {
|
|
5322
5334
|
return V(), F("div", ue({
|
|
5323
5335
|
class: i.$options.name
|
|
5324
5336
|
}, i.$attrs), [
|
|
5325
5337
|
W(i.$slots, "default")
|
|
5326
5338
|
], 16);
|
|
5327
5339
|
}
|
|
5328
|
-
const
|
|
5340
|
+
const us = /* @__PURE__ */ q(cs, [["render", ds]]), ps = w({
|
|
5329
5341
|
name: "tg-marker",
|
|
5330
5342
|
mixins: [P],
|
|
5331
5343
|
inheritAttrs: !1,
|
|
@@ -5395,7 +5407,7 @@ const cs = /* @__PURE__ */ q(ls, [["render", hs]]), ds = w({
|
|
|
5395
5407
|
},
|
|
5396
5408
|
methods: {
|
|
5397
5409
|
$clusterer() {
|
|
5398
|
-
return
|
|
5410
|
+
return Jt(this.$parent, xr);
|
|
5399
5411
|
},
|
|
5400
5412
|
onAddLabel(i) {
|
|
5401
5413
|
this.label = i, this.marker && this.marker.setLabel(i.overlay);
|
|
@@ -5414,14 +5426,14 @@ const cs = /* @__PURE__ */ q(ls, [["render", hs]]), ds = w({
|
|
|
5414
5426
|
}
|
|
5415
5427
|
}
|
|
5416
5428
|
});
|
|
5417
|
-
function
|
|
5429
|
+
function gs(i, t, e, r, s, n) {
|
|
5418
5430
|
return V(), F("div", ue({
|
|
5419
5431
|
class: i.$options.name
|
|
5420
5432
|
}, i.attrs.binds), [
|
|
5421
5433
|
W(i.$slots, "default")
|
|
5422
5434
|
], 16);
|
|
5423
5435
|
}
|
|
5424
|
-
const Fe = /* @__PURE__ */ q(
|
|
5436
|
+
const Fe = /* @__PURE__ */ q(ps, [["render", gs]]), ms = w({
|
|
5425
5437
|
name: "tg-info-box",
|
|
5426
5438
|
mixins: [P],
|
|
5427
5439
|
inheritAttrs: !1,
|
|
@@ -5484,7 +5496,7 @@ const Fe = /* @__PURE__ */ q(ds, [["render", us]]), ps = w({
|
|
|
5484
5496
|
return this.$el;
|
|
5485
5497
|
},
|
|
5486
5498
|
$marker() {
|
|
5487
|
-
return
|
|
5499
|
+
return ot(Fe, this.$parent, Le);
|
|
5488
5500
|
},
|
|
5489
5501
|
open(i) {
|
|
5490
5502
|
this.overlay.open(i);
|
|
@@ -5494,14 +5506,14 @@ const Fe = /* @__PURE__ */ q(ds, [["render", us]]), ps = w({
|
|
|
5494
5506
|
}
|
|
5495
5507
|
}
|
|
5496
5508
|
});
|
|
5497
|
-
function
|
|
5509
|
+
function fs(i, t, e, r, s, n) {
|
|
5498
5510
|
return V(), F("div", ue({
|
|
5499
5511
|
class: i.$options.name
|
|
5500
5512
|
}, i.attrs.binds), [
|
|
5501
5513
|
W(i.$slots, "default")
|
|
5502
5514
|
], 16);
|
|
5503
5515
|
}
|
|
5504
|
-
const
|
|
5516
|
+
const ys = /* @__PURE__ */ q(ms, [["render", fs]]), vs = w({
|
|
5505
5517
|
name: "tg-info-window",
|
|
5506
5518
|
mixins: [P],
|
|
5507
5519
|
inheritAttrs: !1,
|
|
@@ -5542,7 +5554,7 @@ const ms = /* @__PURE__ */ q(ps, [["render", gs]]), fs = w({
|
|
|
5542
5554
|
return this.$el;
|
|
5543
5555
|
},
|
|
5544
5556
|
$marker() {
|
|
5545
|
-
return
|
|
5557
|
+
return ot(Fe, this.$parent, Le);
|
|
5546
5558
|
},
|
|
5547
5559
|
getOptions() {
|
|
5548
5560
|
return {
|
|
@@ -5565,16 +5577,16 @@ const ms = /* @__PURE__ */ q(ps, [["render", gs]]), fs = w({
|
|
|
5565
5577
|
this.$marker() ? this.$marker().onRemoveInfo(this) : this.overlay.close();
|
|
5566
5578
|
}
|
|
5567
5579
|
});
|
|
5568
|
-
function
|
|
5569
|
-
return
|
|
5580
|
+
function _s(i, t, e, r, s, n) {
|
|
5581
|
+
return Zr((V(), F("div", ue({
|
|
5570
5582
|
class: i.$options.name
|
|
5571
5583
|
}, i.attrs.binds), [
|
|
5572
5584
|
W(i.$slots, "default")
|
|
5573
5585
|
], 16)), [
|
|
5574
|
-
[
|
|
5586
|
+
[Wr, i.show]
|
|
5575
5587
|
]);
|
|
5576
5588
|
}
|
|
5577
|
-
const
|
|
5589
|
+
const bs = /* @__PURE__ */ q(vs, [["render", _s]]), Ts = w({
|
|
5578
5590
|
name: "tg-label",
|
|
5579
5591
|
mixins: [P],
|
|
5580
5592
|
inheritAttrs: !1,
|
|
@@ -5617,7 +5629,7 @@ const vs = /* @__PURE__ */ q(fs, [["render", ys]]), _s = w({
|
|
|
5617
5629
|
return (i = this.$marker()) == null ? void 0 : i.marker;
|
|
5618
5630
|
},
|
|
5619
5631
|
$marker() {
|
|
5620
|
-
return
|
|
5632
|
+
return ot(Fe, this.$parent, Le);
|
|
5621
5633
|
},
|
|
5622
5634
|
getOptions() {
|
|
5623
5635
|
return {
|
|
@@ -5636,14 +5648,14 @@ const vs = /* @__PURE__ */ q(fs, [["render", ys]]), _s = w({
|
|
|
5636
5648
|
this.$marker() ? this.$marker().onRemoveLabel(this) : this.$map.removeOverlay(this.overlay);
|
|
5637
5649
|
}
|
|
5638
5650
|
});
|
|
5639
|
-
function
|
|
5651
|
+
function Ms(i, t, e, r, s, n) {
|
|
5640
5652
|
return V(), F("div", ue({
|
|
5641
5653
|
class: i.$options.name
|
|
5642
5654
|
}, i.attrs.binds), [
|
|
5643
5655
|
W(i.$slots, "default")
|
|
5644
5656
|
], 16);
|
|
5645
5657
|
}
|
|
5646
|
-
const
|
|
5658
|
+
const Os = /* @__PURE__ */ q(Ts, [["render", Ms]]), Cs = w({
|
|
5647
5659
|
name: "tg-polygon",
|
|
5648
5660
|
mixins: [P],
|
|
5649
5661
|
inheritAttrs: !1,
|
|
@@ -5712,7 +5724,7 @@ const Ts = /* @__PURE__ */ q(_s, [["render", bs]]), Ms = w({
|
|
|
5712
5724
|
onDestroy() {
|
|
5713
5725
|
this.$map.removeOverlay(this.overlay);
|
|
5714
5726
|
}
|
|
5715
|
-
}),
|
|
5727
|
+
}), ws = w({
|
|
5716
5728
|
name: "tg-polyline",
|
|
5717
5729
|
mixins: [P],
|
|
5718
5730
|
inheritAttrs: !1,
|
|
@@ -5773,7 +5785,7 @@ const Ts = /* @__PURE__ */ q(_s, [["render", bs]]), Ms = w({
|
|
|
5773
5785
|
onDestroy() {
|
|
5774
5786
|
this.$map.removeOverlay(this.overlay);
|
|
5775
5787
|
}
|
|
5776
|
-
}),
|
|
5788
|
+
}), Es = w({
|
|
5777
5789
|
name: "tg-rectangle",
|
|
5778
5790
|
mixins: [P],
|
|
5779
5791
|
inheritAttrs: !1,
|
|
@@ -5839,13 +5851,13 @@ const Ts = /* @__PURE__ */ q(_s, [["render", bs]]), Ms = w({
|
|
|
5839
5851
|
onDestroy() {
|
|
5840
5852
|
this.$map.removeOverlay(this.overlay);
|
|
5841
5853
|
}
|
|
5842
|
-
}),
|
|
5854
|
+
}), Ls = ["beforeUpdate", "updated"], Xs = {
|
|
5843
5855
|
install(i, t = {}) {
|
|
5844
5856
|
if (t.enable !== !1) {
|
|
5845
5857
|
const e = w({
|
|
5846
5858
|
beforeCreate() {
|
|
5847
|
-
const r =
|
|
5848
|
-
t.hookNames ? t.hookNames.includes(a) && console.debug("[lifecycle]", r, a) :
|
|
5859
|
+
const r = Lr() ?? "", n = (t.nameRegex || /^[A-Z]/).test(r) ? (a) => {
|
|
5860
|
+
t.hookNames ? t.hookNames.includes(a) && console.debug("[lifecycle]", r, a) : Ls.includes(a) || console.debug("[lifecycle]", r, a);
|
|
5849
5861
|
} : ve;
|
|
5850
5862
|
n("beforeCreate"), this.__life_impl = n;
|
|
5851
5863
|
},
|
|
@@ -5885,44 +5897,44 @@ const Ts = /* @__PURE__ */ q(_s, [["render", bs]]), Ms = w({
|
|
|
5885
5897
|
i.mixin(e);
|
|
5886
5898
|
}
|
|
5887
5899
|
}
|
|
5888
|
-
},
|
|
5900
|
+
}, xs = 6378137;
|
|
5889
5901
|
function ye(i) {
|
|
5890
5902
|
return i * Math.PI / 180;
|
|
5891
5903
|
}
|
|
5892
|
-
function
|
|
5904
|
+
function Ut(i) {
|
|
5893
5905
|
return i * 180 / Math.PI;
|
|
5894
5906
|
}
|
|
5895
|
-
function
|
|
5907
|
+
function Ps(i, t) {
|
|
5896
5908
|
if (i.lat === t.lat && i.lng === t.lng)
|
|
5897
5909
|
return 0;
|
|
5898
5910
|
const e = ye((i.lat + t.lat) / 2), r = ye((i.lat - t.lat) / 2), s = ye((i.lng - t.lng) / 2);
|
|
5899
5911
|
let n = Math.sin(r), a = Math.sin(s), h = Math.sin(e);
|
|
5900
|
-
const o =
|
|
5912
|
+
const o = xs, l = 1 / 298.257;
|
|
5901
5913
|
n = n * n, a = a * a, h = h * h;
|
|
5902
5914
|
const d = n * (1 - a) + (1 - h) * a, u = (1 - n) * (1 - a) + h * a, p = Math.atan(Math.sqrt(d / u)), b = Math.sqrt(d * u) / p, _ = 2 * p * o, T = (3 * b - 1) / 2 / u, g = (3 * b + 1) / 2 / d;
|
|
5903
5915
|
return _ * (1 + l * (T * h * (1 - n) - g * (1 - h) * n));
|
|
5904
5916
|
}
|
|
5905
|
-
function
|
|
5917
|
+
function ks(i, t, e) {
|
|
5906
5918
|
const s = 63567523142e-4, n = 1 / 298.257223563, a = ye(t), h = Math.sin(a), o = Math.cos(a), l = (1 - n) * Math.tan(ye(i.lat)), d = 1 / Math.sqrt(1 + l * l), u = l * d, p = Math.atan2(l, o), b = d * h, _ = 1 - b * b, T = _ * (6378137 * 6378137 - s * s) / (s * s), g = 1 + T / 16384 * (4096 + T * (-768 + T * (320 - 175 * T))), f = T / 1024 * (256 + T * (-128 + T * (74 - 47 * T)));
|
|
5907
5919
|
let v = 0, O = 0, x = 0, E = e / (s * g), Q = 2 * Math.PI;
|
|
5908
5920
|
for (; Math.abs(E - Q) > 1e-12; ) {
|
|
5909
5921
|
v = Math.cos(2 * p + E), O = Math.sin(E), x = Math.cos(E);
|
|
5910
|
-
const
|
|
5911
|
-
Q = E, E = e / (s * g) +
|
|
5922
|
+
const Br = f * O * (v + f / 4 * (x * (-1 + 2 * v * v) - f / 6 * v * (-3 + 4 * O * O) * (-3 + 4 * v * v)));
|
|
5923
|
+
Q = E, E = e / (s * g) + Br;
|
|
5912
5924
|
}
|
|
5913
5925
|
const ie = u * O - d * x * o, Ue = Math.atan2(
|
|
5914
5926
|
u * x + d * O * o,
|
|
5915
5927
|
(1 - n) * Math.sqrt(b * b + ie * ie)
|
|
5916
|
-
),
|
|
5917
|
-
return { lng: i.lng +
|
|
5928
|
+
), Pr = Math.atan2(O * h, d * x - u * O * o), Ye = n / 16 * _ * (4 + n * (4 - 3 * _)), kr = Pr - (1 - Ye) * n * b * (E + Ye * O * (v + Ye * x * (-1 + 2 * v * v)));
|
|
5929
|
+
return { lng: i.lng + Ut(kr), lat: Ut(Ue) };
|
|
5918
5930
|
}
|
|
5919
|
-
const
|
|
5920
|
-
getDistance:
|
|
5921
|
-
getDestination:
|
|
5922
|
-
},
|
|
5931
|
+
const Js = {
|
|
5932
|
+
getDistance: Ps,
|
|
5933
|
+
getDestination: ks
|
|
5934
|
+
}, Qs = {
|
|
5923
5935
|
install(i, t) {
|
|
5924
|
-
if (
|
|
5925
|
-
const r = /* @__PURE__ */ Object.assign({ "./TgMap.vue":
|
|
5936
|
+
if (ai(t), {}.VITE_FALSE) {
|
|
5937
|
+
const r = /* @__PURE__ */ Object.assign({ "./TgMap.vue": Le, "./TgMapWidget.vue": Xi, "./controls/TgCustomControl.vue": es, "./controls/TgMapTypeControl.vue": ts, "./controls/TgScaleControl.vue": rs, "./controls/TgZoomControl.vue": ss, "./extra/TgMarkerClusterer.vue": xr, "./layers/TgTrafficLayer.vue": as, "./overlays/TgCircle.vue": ls, "./overlays/TgElementOverlay.vue": us, "./overlays/TgInfoBox.vue": ys, "./overlays/TgInfoWindow.vue": bs, "./overlays/TgLabel.vue": Os, "./overlays/TgMarker.vue": Fe, "./overlays/TgPolygon.vue": Cs, "./overlays/TgPolyline.vue": ws, "./overlays/TgRectangle.vue": Es });
|
|
5926
5938
|
Object.keys(r).forEach((s) => {
|
|
5927
5939
|
const n = r[s];
|
|
5928
5940
|
i.component(n.name ?? C(`Tg开头的组件必须设置name: ${s}`), n);
|
|
@@ -5933,136 +5945,138 @@ const Ks = {
|
|
|
5933
5945
|
}
|
|
5934
5946
|
};
|
|
5935
5947
|
export {
|
|
5936
|
-
|
|
5937
|
-
|
|
5948
|
+
ar as AbstractControl,
|
|
5949
|
+
ft as AbstractMap,
|
|
5938
5950
|
he as Arrays,
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5951
|
+
pr as Autocomplete,
|
|
5952
|
+
yi as BaiduAutocomplete,
|
|
5953
|
+
vt as BaiduCircle,
|
|
5954
|
+
lt as BaiduControl,
|
|
5955
|
+
Ot as BaiduInfoBoxOverlay,
|
|
5956
|
+
Tt as BaiduInfoWindow,
|
|
5957
|
+
ct as BaiduMapTypeControl,
|
|
5958
|
+
Ie as BaiduMapUrls,
|
|
5947
5959
|
Ce as BaiduMarker,
|
|
5948
|
-
|
|
5960
|
+
Mi as BaiduMarkerClusterer,
|
|
5949
5961
|
je as BaiduOverlay,
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5962
|
+
wi as BaiduPlacesService,
|
|
5963
|
+
xt as BaiduPolyShape,
|
|
5964
|
+
Bt as BaiduPolygon,
|
|
5965
|
+
Pt as BaiduPolyline,
|
|
5966
|
+
St as BaiduRectangle,
|
|
5967
|
+
dt as BaiduScaleControl,
|
|
5968
|
+
Li as BaiduSearchBox,
|
|
5969
|
+
pt as BaiduZoomControl,
|
|
5958
5970
|
S as BuildInMapType,
|
|
5959
|
-
|
|
5971
|
+
lr as BuildInMapTypeId,
|
|
5960
5972
|
fe as CachedValue,
|
|
5961
|
-
|
|
5973
|
+
B as ControlPosition,
|
|
5962
5974
|
$ as ControlPositionConverter,
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5975
|
+
I as CoordType,
|
|
5976
|
+
di as CustomControl,
|
|
5977
|
+
ci as FastFindValues,
|
|
5978
|
+
fi as GoogleAutocomplete,
|
|
5979
|
+
_t as GoogleCircle,
|
|
5980
|
+
ht as GoogleControl,
|
|
5981
|
+
Ct as GoogleInfoBoxOverlay,
|
|
5982
|
+
Mt as GoogleInfoWindow,
|
|
5971
5983
|
ke as GoogleMapTypeControl,
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5984
|
+
Be as GoogleMapUrls,
|
|
5985
|
+
Lt as GoogleMarker,
|
|
5986
|
+
Oi as GoogleMarkerClusterer,
|
|
5987
|
+
yt as GoogleOverlay,
|
|
5988
|
+
Ci as GooglePlacesService,
|
|
5989
|
+
It as GooglePolygon,
|
|
5990
|
+
kt as GooglePolyline,
|
|
5991
|
+
At as GoogleRectangle,
|
|
5992
|
+
ut as GoogleScaleControl,
|
|
5993
|
+
Ei as GoogleSearchBox,
|
|
5994
|
+
gt as GoogleZoomControl,
|
|
5983
5995
|
De as Icon,
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5996
|
+
Zs as ImageMapType,
|
|
5997
|
+
bt as InfoWindow,
|
|
5998
|
+
Zt as KeyValue,
|
|
5987
5999
|
y as LatLng,
|
|
5988
6000
|
A as LatLngBounds,
|
|
5989
|
-
|
|
6001
|
+
Xs as LifecycleLogPlugin,
|
|
5990
6002
|
K as Location,
|
|
5991
6003
|
we as MIXIN_HOOK_CREATE,
|
|
5992
6004
|
Ee as MIXIN_HOOK_DESTROY,
|
|
5993
|
-
|
|
6005
|
+
Rt as MIXIN_MAP_NAME,
|
|
5994
6006
|
ce as MVCArrays,
|
|
5995
6007
|
P as MapMixin,
|
|
5996
6008
|
R as MapType,
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6009
|
+
hr as MapTypeControlType,
|
|
6010
|
+
gr as MapUrls,
|
|
6011
|
+
xi as MapZoom,
|
|
6012
|
+
br as MarkerClusterer,
|
|
6001
6013
|
be as Objects,
|
|
6002
|
-
|
|
6003
|
-
|
|
6014
|
+
Cr as Overlay,
|
|
6015
|
+
Tr as PlacesService,
|
|
6004
6016
|
X as Point,
|
|
6005
|
-
|
|
6006
|
-
|
|
6017
|
+
Mr as SearchBox,
|
|
6018
|
+
Js as SphericalUtils,
|
|
6007
6019
|
Te as Strings,
|
|
6008
6020
|
ze as SymbolIcon,
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6021
|
+
Vs as SymbolPath,
|
|
6022
|
+
ls as TgCircle,
|
|
6023
|
+
es as TgCustomControl,
|
|
6024
|
+
us as TgElementOverlay,
|
|
6025
|
+
ys as TgInfoBox,
|
|
6026
|
+
bs as TgInfoWindow,
|
|
6027
|
+
Os as TgLabel,
|
|
6028
|
+
Le as TgMap,
|
|
6029
|
+
st as TgMapFactory,
|
|
6018
6030
|
G as TgMapType,
|
|
6019
|
-
|
|
6020
|
-
|
|
6031
|
+
ts as TgMapTypeControl,
|
|
6032
|
+
Xi as TgMapWidget,
|
|
6021
6033
|
Fe as TgMarker,
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6034
|
+
xr as TgMarkerClusterer,
|
|
6035
|
+
Cs as TgPolygon,
|
|
6036
|
+
ws as TgPolyline,
|
|
6037
|
+
Es as TgRectangle,
|
|
6038
|
+
rs as TgScaleControl,
|
|
6039
|
+
as as TgTrafficLayer,
|
|
6040
|
+
ss as TgZoomControl,
|
|
6041
|
+
ui as TrafficLayer,
|
|
6030
6042
|
$e as UnionIcon,
|
|
6031
6043
|
oe as assert,
|
|
6032
6044
|
Qe as assertNever,
|
|
6033
6045
|
Pe as callHook,
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6046
|
+
Fs as computedSaveOnThis,
|
|
6047
|
+
Er as createEmptyVNode,
|
|
6048
|
+
ji as createPropertyObject,
|
|
6049
|
+
Us as createPropertyObjectTyped,
|
|
6050
|
+
Ns as debug,
|
|
6051
|
+
Qs as default,
|
|
6040
6052
|
L as eventProp,
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6053
|
+
qs as extractVNodeFromSlotsByComponent,
|
|
6054
|
+
ot as findAncestorComponentByType,
|
|
6055
|
+
Ys as findByComponentType,
|
|
6056
|
+
ks as getDestination,
|
|
6057
|
+
ir as getTgMapConfig,
|
|
6058
|
+
tt as isComponentByType,
|
|
6059
|
+
Gs as isDef,
|
|
6060
|
+
Qt as isEntryValueDef,
|
|
6061
|
+
Rs as isInstanceOf,
|
|
6062
|
+
As as lateinit,
|
|
6049
6063
|
ve as noop,
|
|
6050
6064
|
m as optionalProp,
|
|
6051
|
-
|
|
6065
|
+
Si as path,
|
|
6052
6066
|
D as requiredProp,
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6067
|
+
$s as safeAs,
|
|
6068
|
+
Jt as safeAsComponent,
|
|
6069
|
+
ai as setTgMapConfig,
|
|
6070
|
+
Vi as splitAttrs,
|
|
6057
6071
|
Z as stringEnumProp,
|
|
6058
|
-
|
|
6072
|
+
Hi as stringUnionPropFromValues,
|
|
6059
6073
|
C as throwError,
|
|
6060
|
-
|
|
6061
|
-
|
|
6074
|
+
at as throwUnsupported,
|
|
6075
|
+
zs as todo,
|
|
6062
6076
|
et as typed,
|
|
6063
|
-
|
|
6064
|
-
|
|
6077
|
+
Ds as unwrapStringEnumValue,
|
|
6078
|
+
Ks as useEventLogMethods,
|
|
6065
6079
|
Y as useSplittedAttrs,
|
|
6066
|
-
|
|
6080
|
+
is as useTgMapInner
|
|
6067
6081
|
};
|
|
6068
6082
|
//# sourceMappingURL=tg-map.js.map
|