tg-map-vue3 3.5.0 → 3.5.2
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/TgLabel.vue.d.ts +7 -0
- package/dist/src/components/overlays/TgMarker.vue.d.ts +7 -0
- package/dist/src/map/lat-lng.d.ts +1 -1
- package/dist/src/map/map/overlay/element-overlay.d.ts +5 -0
- package/dist/src/map/map/overlay/google-label.d.ts +5 -4
- package/dist/src/map/map/overlay/label.d.ts +7 -0
- package/dist/tg-map.js +691 -686
- package/dist/tg-map.js.map +1 -1
- package/dist/tg-map.umd.cjs +6 -6
- package/dist/tg-map.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/tg-map.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
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)}.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}.
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var c = (i, t, e) => (
|
|
5
|
-
import { createCommentVNode as
|
|
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 br = Object.defineProperty;
|
|
3
|
+
var Mr = (i, t, e) => t in i ? br(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
4
|
+
var c = (i, t, e) => (Mr(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
5
|
+
import { createCommentVNode as Ve, computed as zt, defineComponent as C, markRaw as Tr, watch as Nt, openBlock as W, createElementBlock as j, mergeProps as ce, createElementVNode as Or, normalizeClass as Re, renderSlot as G, normalizeStyle as Cr, getCurrentInstance as wr, inject as Er, onMounted as Lr, onBeforeUnmount as xr, toRaw as $e, withDirectives as Pr, vShow as kr } from "vue";
|
|
6
6
|
function V(i, t, e) {
|
|
7
7
|
Object.keys(i).forEach((r) => {
|
|
8
8
|
r.startsWith("update:") || e != null && e.includes(r) || t.addEventListener(r, i[r]);
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
let
|
|
12
|
-
function
|
|
13
|
-
return
|
|
11
|
+
let Br = 1;
|
|
12
|
+
function Ir() {
|
|
13
|
+
return Br++;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
return t.__id__ || (t.__id__ =
|
|
15
|
+
function xe(i, t) {
|
|
16
|
+
return t.__id__ || (t.__id__ = Ir()), `${i}::${t.__id__}`;
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
function
|
|
18
|
+
var Gt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
19
|
+
function Xe(i) {
|
|
20
20
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var Zt = { exports: {} };
|
|
23
23
|
(function(i) {
|
|
24
24
|
(function(t, e) {
|
|
25
25
|
i.exports ? i.exports = e() : t.coordtransform = e();
|
|
26
|
-
})(
|
|
26
|
+
})(Gt, 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);
|
|
@@ -79,8 +79,8 @@ var Gt = { exports: {} };
|
|
|
79
79
|
w = 1 - s * w * w;
|
|
80
80
|
var K = Math.sqrt(w);
|
|
81
81
|
v = v * 180 / (r * (1 - s) / (w * K) * e), O = O * 180 / (r / K * Math.cos(x) * e);
|
|
82
|
-
var te = f + v,
|
|
83
|
-
return [
|
|
82
|
+
var te = f + v, Ge = g + O;
|
|
83
|
+
return [Ge, te];
|
|
84
84
|
}
|
|
85
85
|
function _(g, f) {
|
|
86
86
|
var v = -100 + 2 * g + 3 * f + 0.2 * f * f + 0.1 * g * f + 0.2 * Math.sqrt(Math.abs(g));
|
|
@@ -115,35 +115,54 @@ var Gt = { exports: {} };
|
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
});
|
|
118
|
-
})(
|
|
119
|
-
var
|
|
120
|
-
const re = /* @__PURE__ */
|
|
118
|
+
})(Zt);
|
|
119
|
+
var Sr = Zt.exports;
|
|
120
|
+
const re = /* @__PURE__ */ Xe(Sr);
|
|
121
121
|
function se(i, t) {
|
|
122
122
|
if (!i)
|
|
123
123
|
throw new Error(`AssertionError: ${t}`);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Fe(i) {
|
|
126
126
|
throw new Error(`Unexpected object: ${i}`);
|
|
127
127
|
}
|
|
128
|
+
function cs() {
|
|
129
|
+
}
|
|
130
|
+
function Ue(i) {
|
|
131
|
+
return i;
|
|
132
|
+
}
|
|
133
|
+
function ds(i, t) {
|
|
134
|
+
return i instanceof t;
|
|
135
|
+
}
|
|
136
|
+
function us(i, t) {
|
|
137
|
+
if (i instanceof t)
|
|
138
|
+
return i;
|
|
139
|
+
}
|
|
140
|
+
function Ce(i, t) {
|
|
141
|
+
if ((i == null ? void 0 : i.$options.name) === t.name)
|
|
142
|
+
return i;
|
|
143
|
+
}
|
|
144
|
+
function ps(i) {
|
|
145
|
+
return i;
|
|
146
|
+
}
|
|
128
147
|
function E(i) {
|
|
129
148
|
throw new Error(i);
|
|
130
149
|
}
|
|
131
|
-
function
|
|
150
|
+
function Wt(i) {
|
|
132
151
|
throw new Error(`Unsupported: ${i}`);
|
|
133
152
|
}
|
|
134
|
-
function
|
|
153
|
+
function gs(i) {
|
|
135
154
|
throw new Error(`todo: ${i}`);
|
|
136
155
|
}
|
|
137
|
-
function
|
|
156
|
+
function ms(i) {
|
|
138
157
|
return i;
|
|
139
158
|
}
|
|
140
159
|
function me(...i) {
|
|
141
160
|
}
|
|
142
|
-
function
|
|
161
|
+
function fs(i) {
|
|
143
162
|
return i != null;
|
|
144
163
|
}
|
|
145
164
|
var Q = /* @__PURE__ */ ((i) => (i.wgs84 = "wgs84", i.gcj02 = "gcj02", i.bd09 = "bd09", i))(Q || {});
|
|
146
|
-
const
|
|
165
|
+
const We = "wgs84", D = class {
|
|
147
166
|
constructor(t, e, r) {
|
|
148
167
|
this.lat = t, this.lng = e, this.coord = r;
|
|
149
168
|
}
|
|
@@ -159,12 +178,12 @@ const Ge = "wgs84", D = class {
|
|
|
159
178
|
return new D(t.lat, t.lng, e);
|
|
160
179
|
}
|
|
161
180
|
static fromLiteral(t) {
|
|
162
|
-
return new D(t.lat, t.lng, t.coord ||
|
|
181
|
+
return new D(t.lat, t.lng, t.coord || We);
|
|
163
182
|
}
|
|
164
|
-
static fromLngLat(t, e, r =
|
|
183
|
+
static fromLngLat(t, e, r = We) {
|
|
165
184
|
return new D(e, t, r);
|
|
166
185
|
}
|
|
167
|
-
static create(t, e, r =
|
|
186
|
+
static create(t, e, r = We) {
|
|
168
187
|
return new D(t, e, r);
|
|
169
188
|
}
|
|
170
189
|
/** 转换坐标到指定坐标系 */
|
|
@@ -263,6 +282,8 @@ const J = class {
|
|
|
263
282
|
return this.sw.lat <= e && e <= this.ne.lat && J.isBetweenLng(this.sw.lng, this.ne.lng, r);
|
|
264
283
|
}
|
|
265
284
|
getCenter() {
|
|
285
|
+
if (this.sw.equals(this.ne))
|
|
286
|
+
return this.sw;
|
|
266
287
|
const t = (this.sw.lat + this.ne.lat) / 2, e = (this.sw.lng + this.ne.lng + (this.sw.lng < this.ne.lng ? 0 : 360)) / 2;
|
|
267
288
|
return y.create(t, e, this.coord);
|
|
268
289
|
}
|
|
@@ -325,67 +346,67 @@ c(I, "EMPTY", new J(y.ZERO, y.ZERO));
|
|
|
325
346
|
}
|
|
326
347
|
i.Builder = t;
|
|
327
348
|
})(I || (I = {}));
|
|
328
|
-
var
|
|
329
|
-
return
|
|
349
|
+
var Ar = function(t) {
|
|
350
|
+
return Rr(t) && !$r(t);
|
|
330
351
|
};
|
|
331
|
-
function
|
|
352
|
+
function Rr(i) {
|
|
332
353
|
return !!i && typeof i == "object";
|
|
333
354
|
}
|
|
334
|
-
function
|
|
355
|
+
function $r(i) {
|
|
335
356
|
var t = Object.prototype.toString.call(i);
|
|
336
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
337
|
-
}
|
|
338
|
-
var $r = typeof Symbol == "function" && Symbol.for, Dr = $r ? Symbol.for("react.element") : 60103;
|
|
339
|
-
function zr(i) {
|
|
340
|
-
return i.$$typeof === Dr;
|
|
357
|
+
return t === "[object RegExp]" || t === "[object Date]" || Nr(i);
|
|
341
358
|
}
|
|
359
|
+
var Dr = typeof Symbol == "function" && Symbol.for, zr = Dr ? Symbol.for("react.element") : 60103;
|
|
342
360
|
function Nr(i) {
|
|
361
|
+
return i.$$typeof === zr;
|
|
362
|
+
}
|
|
363
|
+
function Gr(i) {
|
|
343
364
|
return Array.isArray(i) ? [] : {};
|
|
344
365
|
}
|
|
345
366
|
function fe(i, t) {
|
|
346
|
-
return t.clone !== !1 && t.isMergeableObject(i) ? oe(
|
|
367
|
+
return t.clone !== !1 && t.isMergeableObject(i) ? oe(Gr(i), i, t) : i;
|
|
347
368
|
}
|
|
348
|
-
function
|
|
369
|
+
function Zr(i, t, e) {
|
|
349
370
|
return i.concat(t).map(function(r) {
|
|
350
371
|
return fe(r, e);
|
|
351
372
|
});
|
|
352
373
|
}
|
|
353
|
-
function
|
|
374
|
+
function Wr(i, t) {
|
|
354
375
|
if (!t.customMerge)
|
|
355
376
|
return oe;
|
|
356
377
|
var e = t.customMerge(i);
|
|
357
378
|
return typeof e == "function" ? e : oe;
|
|
358
379
|
}
|
|
359
|
-
function
|
|
380
|
+
function Hr(i) {
|
|
360
381
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(i).filter(function(t) {
|
|
361
382
|
return Object.propertyIsEnumerable.call(i, t);
|
|
362
383
|
}) : [];
|
|
363
384
|
}
|
|
364
|
-
function
|
|
365
|
-
return Object.keys(i).concat(
|
|
385
|
+
function xt(i) {
|
|
386
|
+
return Object.keys(i).concat(Hr(i));
|
|
366
387
|
}
|
|
367
|
-
function
|
|
388
|
+
function Ht(i, t) {
|
|
368
389
|
try {
|
|
369
390
|
return t in i;
|
|
370
391
|
} catch {
|
|
371
392
|
return !1;
|
|
372
393
|
}
|
|
373
394
|
}
|
|
374
|
-
function
|
|
375
|
-
return
|
|
395
|
+
function jr(i, t) {
|
|
396
|
+
return Ht(i, t) && !(Object.hasOwnProperty.call(i, t) && Object.propertyIsEnumerable.call(i, t));
|
|
376
397
|
}
|
|
377
|
-
function
|
|
398
|
+
function Vr(i, t, e) {
|
|
378
399
|
var r = {};
|
|
379
|
-
return e.isMergeableObject(i) &&
|
|
400
|
+
return e.isMergeableObject(i) && xt(i).forEach(function(s) {
|
|
380
401
|
r[s] = fe(i[s], e);
|
|
381
|
-
}),
|
|
382
|
-
|
|
402
|
+
}), xt(t).forEach(function(s) {
|
|
403
|
+
jr(i, s) || (Ht(i, s) && e.isMergeableObject(t[s]) ? r[s] = Wr(s, e)(i[s], t[s], e) : r[s] = fe(t[s], e));
|
|
383
404
|
}), r;
|
|
384
405
|
}
|
|
385
406
|
function oe(i, t, e) {
|
|
386
|
-
e = e || {}, e.arrayMerge = e.arrayMerge ||
|
|
407
|
+
e = e || {}, e.arrayMerge = e.arrayMerge || Zr, e.isMergeableObject = e.isMergeableObject || Ar, e.cloneUnlessOtherwiseSpecified = fe;
|
|
387
408
|
var r = Array.isArray(t), s = Array.isArray(i), n = r === s;
|
|
388
|
-
return n ? r ? e.arrayMerge(i, t, e) :
|
|
409
|
+
return n ? r ? e.arrayMerge(i, t, e) : Vr(i, t, e) : fe(t, e);
|
|
389
410
|
}
|
|
390
411
|
oe.all = function(t, e) {
|
|
391
412
|
if (!Array.isArray(t))
|
|
@@ -394,8 +415,8 @@ oe.all = function(t, e) {
|
|
|
394
415
|
return oe(r, s, e);
|
|
395
416
|
}, {});
|
|
396
417
|
};
|
|
397
|
-
var
|
|
398
|
-
const
|
|
418
|
+
var Fr = oe, Ur = Fr;
|
|
419
|
+
const jt = /* @__PURE__ */ Xe(Ur), Pe = ["3.0"], qr = {
|
|
399
420
|
baidu: {
|
|
400
421
|
version: "3.0",
|
|
401
422
|
// 在build时会被静态替换, 导致使用者不能无法设置它
|
|
@@ -410,24 +431,24 @@ const Ht = /* @__PURE__ */ Ke(Fr), Le = ["3.0"], Ur = {
|
|
|
410
431
|
libraries: ["places"]
|
|
411
432
|
},
|
|
412
433
|
here: {
|
|
413
|
-
version:
|
|
434
|
+
version: Pe[0],
|
|
414
435
|
key: ""
|
|
415
436
|
}
|
|
416
437
|
};
|
|
417
|
-
let
|
|
418
|
-
function
|
|
419
|
-
return
|
|
438
|
+
let Vt;
|
|
439
|
+
function Ft() {
|
|
440
|
+
return Vt || E("请先安装: Vue<PartialTgMapConfig>.use(TgMap, {})");
|
|
420
441
|
}
|
|
421
|
-
function
|
|
422
|
-
i != null && (
|
|
442
|
+
function Yr(i) {
|
|
443
|
+
i != null && (Vt = jt(qr, i));
|
|
423
444
|
}
|
|
424
|
-
var
|
|
445
|
+
var qe;
|
|
425
446
|
((i) => {
|
|
426
447
|
function t(e) {
|
|
427
448
|
return e.scrollWidth > e.clientWidth || e.scrollHeight > e.clientHeight;
|
|
428
449
|
}
|
|
429
450
|
i.isScrollable = t;
|
|
430
|
-
})(
|
|
451
|
+
})(qe || (qe = {}));
|
|
431
452
|
var ae;
|
|
432
453
|
((i) => {
|
|
433
454
|
function t(h, o) {
|
|
@@ -487,38 +508,19 @@ var le;
|
|
|
487
508
|
}
|
|
488
509
|
i.listenChanged = r;
|
|
489
510
|
})(le || (le = {}));
|
|
490
|
-
function
|
|
491
|
-
}
|
|
492
|
-
function Fe(i) {
|
|
493
|
-
return i;
|
|
494
|
-
}
|
|
495
|
-
function ps(i, t) {
|
|
496
|
-
return i instanceof t;
|
|
497
|
-
}
|
|
498
|
-
function gs(i, t) {
|
|
499
|
-
if (i instanceof t)
|
|
500
|
-
return i;
|
|
501
|
-
}
|
|
502
|
-
function Te(i, t) {
|
|
503
|
-
if ((i == null ? void 0 : i.$options.name) === t.name)
|
|
504
|
-
return i;
|
|
505
|
-
}
|
|
506
|
-
function ms(i) {
|
|
507
|
-
return i;
|
|
508
|
-
}
|
|
509
|
-
function Ft(i, t, e) {
|
|
511
|
+
function Ut(i, t, e) {
|
|
510
512
|
return i.addListener(t, e).remove;
|
|
511
513
|
}
|
|
512
|
-
function
|
|
514
|
+
function Kr(i, t, e) {
|
|
513
515
|
return i.addEventListener(t, e), () => i.removeEventListener(t, e);
|
|
514
516
|
}
|
|
515
|
-
function
|
|
517
|
+
function Xr(i, t, e, r) {
|
|
516
518
|
return i.addEventListener(t, e, r), () => i.removeEventListener(t, e, r);
|
|
517
519
|
}
|
|
518
|
-
function
|
|
520
|
+
function Pt(i, t, e) {
|
|
519
521
|
return i.addEventListener(t, e), () => i.removeEventListener(t, e);
|
|
520
522
|
}
|
|
521
|
-
class
|
|
523
|
+
class qt {
|
|
522
524
|
constructor(t, e) {
|
|
523
525
|
c(this, "eventMap", /* @__PURE__ */ new Map());
|
|
524
526
|
c(this, "target", void 0);
|
|
@@ -528,9 +530,9 @@ class Ut {
|
|
|
528
530
|
return this.target = t, this;
|
|
529
531
|
}
|
|
530
532
|
}
|
|
531
|
-
class
|
|
533
|
+
class De {
|
|
532
534
|
constructor(t, e) {
|
|
533
|
-
c(this, "eventHub", new
|
|
535
|
+
c(this, "eventHub", new Yt());
|
|
534
536
|
this.delegate = t, this.options = e;
|
|
535
537
|
}
|
|
536
538
|
notify(t) {
|
|
@@ -557,14 +559,14 @@ class Re {
|
|
|
557
559
|
this.delegate.removeEventListener(t, e);
|
|
558
560
|
}
|
|
559
561
|
}
|
|
560
|
-
const
|
|
562
|
+
const Lt = class extends qt {
|
|
561
563
|
addEventListener(t, e) {
|
|
562
|
-
const r =
|
|
564
|
+
const r = xe(t, e);
|
|
563
565
|
if (this.eventMap.get(r)) {
|
|
564
566
|
console.warn("listener已经添加过了", r, e);
|
|
565
567
|
return;
|
|
566
568
|
}
|
|
567
|
-
const s = this.inner.addListener(
|
|
569
|
+
const s = this.inner.addListener(Lt.EVENT_TYPE_MAP[t] || t, (n) => {
|
|
568
570
|
const a = {
|
|
569
571
|
type: t,
|
|
570
572
|
target: this.target,
|
|
@@ -575,11 +577,11 @@ const Et = class extends Ut {
|
|
|
575
577
|
this.eventMap.set(r, s);
|
|
576
578
|
}
|
|
577
579
|
removeEventListener(t, e) {
|
|
578
|
-
const r =
|
|
580
|
+
const r = xe(t, e), s = this.eventMap.get(r);
|
|
579
581
|
s ? (s.remove(), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, e);
|
|
580
582
|
}
|
|
581
583
|
};
|
|
582
|
-
let ee =
|
|
584
|
+
let ee = Lt;
|
|
583
585
|
// 事件类型映射: tg => google
|
|
584
586
|
c(ee, "EVENT_TYPE_MAP", {
|
|
585
587
|
"center-changed": "center_changed",
|
|
@@ -595,9 +597,9 @@ c(ee, "EVENT_TYPE_MAP", {
|
|
|
595
597
|
"map-mouseup": "mouseup",
|
|
596
598
|
"map-dblclick": "dblclick"
|
|
597
599
|
});
|
|
598
|
-
const
|
|
600
|
+
const Ae = class extends qt {
|
|
599
601
|
addEventListener(t, e) {
|
|
600
|
-
const r =
|
|
602
|
+
const r = xe(t, e);
|
|
601
603
|
if (this.eventMap.get(r)) {
|
|
602
604
|
console.warn("listener已经添加过了", r, e);
|
|
603
605
|
return;
|
|
@@ -610,14 +612,14 @@ const Ie = class extends Ut {
|
|
|
610
612
|
};
|
|
611
613
|
n.point && (a.position = y.fromBaidu(n.point, this.coordTypeSupplier.coordType)), e.call(this.target, a);
|
|
612
614
|
};
|
|
613
|
-
this.inner.addEventListener(
|
|
615
|
+
this.inner.addEventListener(Ae.EVENT_TYPE_MAP[t] || t, s), this.eventMap.set(r, s);
|
|
614
616
|
}
|
|
615
617
|
removeEventListener(t, e) {
|
|
616
|
-
const r =
|
|
617
|
-
s ? (this.inner.removeEventListener(
|
|
618
|
+
const r = xe(t, e), s = this.eventMap.get(r);
|
|
619
|
+
s ? (this.inner.removeEventListener(Ae.EVENT_TYPE_MAP[t] || t, s), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, e);
|
|
618
620
|
}
|
|
619
621
|
};
|
|
620
|
-
let ne =
|
|
622
|
+
let ne = Ae;
|
|
621
623
|
// cSpell:words clickclose
|
|
622
624
|
// 事件类型映射, tg => baidu
|
|
623
625
|
c(ne, "EVENT_TYPE_MAP", {
|
|
@@ -626,7 +628,7 @@ c(ne, "EVENT_TYPE_MAP", {
|
|
|
626
628
|
"zoom-changed": "zoomend",
|
|
627
629
|
"map-type-changed": "maptypechange"
|
|
628
630
|
});
|
|
629
|
-
class
|
|
631
|
+
class Yt {
|
|
630
632
|
constructor() {
|
|
631
633
|
c(this, "typeMap", /* @__PURE__ */ new Map());
|
|
632
634
|
}
|
|
@@ -647,7 +649,7 @@ class qt {
|
|
|
647
649
|
e && e.forEach((r) => r.call(t.target, t));
|
|
648
650
|
}
|
|
649
651
|
}
|
|
650
|
-
class
|
|
652
|
+
class kt {
|
|
651
653
|
/**
|
|
652
654
|
* `keys`和`values`数组中可以有相同的值, 若存在相同值, 则index越小的优先级越高
|
|
653
655
|
*/
|
|
@@ -665,7 +667,7 @@ class Pt {
|
|
|
665
667
|
return this.keyToValue.get(t) ?? E();
|
|
666
668
|
}
|
|
667
669
|
}
|
|
668
|
-
class
|
|
670
|
+
class Jr {
|
|
669
671
|
constructor(t, e = 10) {
|
|
670
672
|
c(this, "map", /* @__PURE__ */ new Map());
|
|
671
673
|
this.values = t, this.maxSize4Debug = e;
|
|
@@ -694,7 +696,7 @@ class Xr {
|
|
|
694
696
|
return this.getOrNull(t, e) ?? E(`key(${e})不存在与valueMap(${this.getValueMap(t)})中`);
|
|
695
697
|
}
|
|
696
698
|
}
|
|
697
|
-
class
|
|
699
|
+
class Bt {
|
|
698
700
|
constructor(t) {
|
|
699
701
|
c(this, "value");
|
|
700
702
|
this.creator = t;
|
|
@@ -722,7 +724,7 @@ var k = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
|
|
|
722
724
|
/* RIGHT_BOTTOM */
|
|
723
725
|
];
|
|
724
726
|
function s() {
|
|
725
|
-
return t || (t = new
|
|
727
|
+
return t || (t = new kt(r, [
|
|
726
728
|
/* | @tg/map |名字相同| baidu | */
|
|
727
729
|
/* TOP_LEFT = */
|
|
728
730
|
BMAP_ANCHOR_TOP_LEFT,
|
|
@@ -752,7 +754,7 @@ var k = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
|
|
|
752
754
|
}
|
|
753
755
|
i.getBaidu = s;
|
|
754
756
|
function n() {
|
|
755
|
-
return e || (e = new
|
|
757
|
+
return e || (e = new kt(r, [
|
|
756
758
|
google.maps.ControlPosition.TOP_LEFT,
|
|
757
759
|
google.maps.ControlPosition.TOP_CENTER,
|
|
758
760
|
google.maps.ControlPosition.TOP_RIGHT,
|
|
@@ -769,16 +771,16 @@ var k = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
|
|
|
769
771
|
}
|
|
770
772
|
i.getGoogle = n;
|
|
771
773
|
})(A || (A = {}));
|
|
772
|
-
class
|
|
774
|
+
class Qr {
|
|
773
775
|
constructor(t) {
|
|
774
776
|
/** 实际添加到地图中的control对象 */
|
|
775
777
|
c(this, "inner");
|
|
776
778
|
this.position = t;
|
|
777
779
|
}
|
|
778
780
|
}
|
|
779
|
-
class
|
|
781
|
+
class Kt {
|
|
780
782
|
}
|
|
781
|
-
class
|
|
783
|
+
class Je extends Kt {
|
|
782
784
|
constructor(t, e) {
|
|
783
785
|
super(), this.inner = t, this.position = e;
|
|
784
786
|
}
|
|
@@ -801,7 +803,7 @@ class Xe extends Yt {
|
|
|
801
803
|
t.innerMap.removeControl(this.inner);
|
|
802
804
|
}
|
|
803
805
|
}
|
|
804
|
-
class
|
|
806
|
+
class Qe extends Kt {
|
|
805
807
|
constructor(e, r) {
|
|
806
808
|
super();
|
|
807
809
|
c(this, "visible", !1);
|
|
@@ -838,7 +840,7 @@ class Je extends Yt {
|
|
|
838
840
|
});
|
|
839
841
|
}
|
|
840
842
|
}
|
|
841
|
-
var
|
|
843
|
+
var Xt = /* @__PURE__ */ ((i) => (i.normal = "normal", i.satellite = "satellite", i.hybrid = "hybrid", i))(Xt || {});
|
|
842
844
|
class B {
|
|
843
845
|
constructor(t, e, r, s) {
|
|
844
846
|
this.id = t, this.baidu = e, this.google = r, this.googleCoordType = s;
|
|
@@ -860,13 +862,13 @@ class B {
|
|
|
860
862
|
return this.google();
|
|
861
863
|
}
|
|
862
864
|
asGoogleMapType() {
|
|
863
|
-
|
|
865
|
+
Wt("google的内置地图没有对应的实例");
|
|
864
866
|
}
|
|
865
867
|
}
|
|
866
|
-
class
|
|
868
|
+
class ei {
|
|
867
869
|
constructor() {
|
|
868
|
-
c(this, "baiduCache", new
|
|
869
|
-
c(this, "googleCache", new
|
|
870
|
+
c(this, "baiduCache", new Bt(() => new BMap.TrafficLayer()));
|
|
871
|
+
c(this, "googleCache", new Bt(() => new google.maps.TrafficLayer()));
|
|
870
872
|
}
|
|
871
873
|
asBaiduLayer() {
|
|
872
874
|
return this.baiduCache.get();
|
|
@@ -883,13 +885,13 @@ var S;
|
|
|
883
885
|
), () => (
|
|
884
886
|
/* 地形 */
|
|
885
887
|
google.maps.MapTypeId.TERRAIN
|
|
886
|
-
), Q.wgs84), i.BUILD_IN_MAP_TYPES = new
|
|
888
|
+
), Q.wgs84), i.BUILD_IN_MAP_TYPES = new Jr([i.NORMAL, i.SATELLITE, i.HYBRID, i.TERRAIN]);
|
|
887
889
|
})(S || (S = {}));
|
|
888
|
-
var
|
|
889
|
-
const
|
|
890
|
-
class
|
|
890
|
+
var Jt = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(Jt || {});
|
|
891
|
+
const Qt = [S.NORMAL, S.SATELLITE, S.HYBRID];
|
|
892
|
+
class et extends Je {
|
|
891
893
|
static create(t) {
|
|
892
|
-
const e = t.mapTypes ??
|
|
894
|
+
const e = t.mapTypes ?? Qt, r = {
|
|
893
895
|
default: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
|
|
894
896
|
horizontal: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
|
|
895
897
|
dropdown: BMAP_MAPTYPE_CONTROL_DROPDOWN
|
|
@@ -897,11 +899,11 @@ class Qe extends Xe {
|
|
|
897
899
|
type: t.type && r[t.type],
|
|
898
900
|
mapTypes: e.map((n) => n.asBaiduMapType())
|
|
899
901
|
});
|
|
900
|
-
return t.position && s.setAnchor(A.getBaidu().toValue(t.position)), new
|
|
902
|
+
return t.position && s.setAnchor(A.getBaidu().toValue(t.position)), new et(s, t.position);
|
|
901
903
|
}
|
|
902
904
|
}
|
|
903
|
-
const ie = class extends
|
|
904
|
-
constructor(t = "default", e = k.TOP_LEFT, r =
|
|
905
|
+
const ie = class extends Qe {
|
|
906
|
+
constructor(t = "default", e = k.TOP_LEFT, r = Qt) {
|
|
905
907
|
super("mapType", e), this.type = t, this.mapTypes = r, ie.type2google || (ie.type2google = {
|
|
906
908
|
default: google.maps.MapTypeControlStyle.DEFAULT,
|
|
907
909
|
horizontal: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
|
|
@@ -921,43 +923,43 @@ const ie = class extends Je {
|
|
|
921
923
|
});
|
|
922
924
|
}
|
|
923
925
|
};
|
|
924
|
-
let
|
|
925
|
-
c(
|
|
926
|
-
class
|
|
926
|
+
let Le = ie;
|
|
927
|
+
c(Le, "type2google");
|
|
928
|
+
class tt extends Je {
|
|
927
929
|
static create(t) {
|
|
928
930
|
const e = new BMap.ScaleControl({
|
|
929
931
|
anchor: t.position && A.getBaidu().toValue(t.position)
|
|
930
932
|
});
|
|
931
|
-
return new
|
|
933
|
+
return new tt(e, t.position);
|
|
932
934
|
}
|
|
933
935
|
}
|
|
934
|
-
class
|
|
936
|
+
class rt extends Qe {
|
|
935
937
|
static create(t) {
|
|
936
|
-
return new
|
|
938
|
+
return new rt(t.position);
|
|
937
939
|
}
|
|
938
940
|
constructor(t = k.BOTTOM_RIGHT) {
|
|
939
941
|
super("scale", t);
|
|
940
942
|
}
|
|
941
943
|
}
|
|
942
|
-
class
|
|
944
|
+
class it extends Je {
|
|
943
945
|
static create(t) {
|
|
944
946
|
const e = new BMap.NavigationControl({
|
|
945
947
|
type: BMAP_NAVIGATION_CONTROL_ZOOM,
|
|
946
948
|
// enableGeolocation: true,
|
|
947
949
|
anchor: t.position && A.getBaidu().toValue(t.position)
|
|
948
950
|
});
|
|
949
|
-
return new
|
|
951
|
+
return new it(e, t.position);
|
|
950
952
|
}
|
|
951
953
|
}
|
|
952
|
-
class
|
|
954
|
+
class st extends Qe {
|
|
953
955
|
static create(t) {
|
|
954
|
-
return new
|
|
956
|
+
return new st(t.position);
|
|
955
957
|
}
|
|
956
958
|
constructor(t = k.RIGHT_BOTTOM) {
|
|
957
959
|
super("zoom", t);
|
|
958
960
|
}
|
|
959
961
|
}
|
|
960
|
-
function
|
|
962
|
+
function ti(i) {
|
|
961
963
|
let t, e, r;
|
|
962
964
|
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 (M, g) => {
|
|
963
965
|
var f;
|
|
@@ -968,17 +970,17 @@ function ei(i) {
|
|
|
968
970
|
}));
|
|
969
971
|
u[a] ? console.warn(s + " only loads once. Ignoring:", i) : u[a] = (M, ...g) => p.add(M) && _().then(() => u[a](M, ...g));
|
|
970
972
|
}
|
|
971
|
-
let
|
|
973
|
+
let ri, ii;
|
|
972
974
|
const Y = {
|
|
973
975
|
/** Google的坐标0点 */
|
|
974
976
|
get LATLNG_ZERO() {
|
|
975
|
-
return
|
|
977
|
+
return ri ?? (ri = new google.maps.LatLng({ lat: 0, lng: 0 }));
|
|
976
978
|
},
|
|
977
979
|
get BOUNDS_ZERO() {
|
|
978
|
-
return
|
|
980
|
+
return ii ?? (ii = new google.maps.LatLngBounds(this.LATLNG_ZERO, this.LATLNG_ZERO));
|
|
979
981
|
}
|
|
980
982
|
};
|
|
981
|
-
function
|
|
983
|
+
function er(i, t = { country: "", province: "", city: "", district: "", street: "", streetNumber: "" }) {
|
|
982
984
|
for (const e of i)
|
|
983
985
|
for (const r of e.types)
|
|
984
986
|
switch (r) {
|
|
@@ -1003,9 +1005,9 @@ function Qt(i, t = { country: "", province: "", city: "", district: "", street:
|
|
|
1003
1005
|
}
|
|
1004
1006
|
return t;
|
|
1005
1007
|
}
|
|
1006
|
-
function
|
|
1008
|
+
function tr(i, t) {
|
|
1007
1009
|
var r;
|
|
1008
|
-
const e = i.address_components &&
|
|
1010
|
+
const e = i.address_components && er(i.address_components);
|
|
1009
1011
|
return {
|
|
1010
1012
|
country: (e == null ? void 0 : e.country) ?? "",
|
|
1011
1013
|
province: (e == null ? void 0 : e.province) ?? "",
|
|
@@ -1016,9 +1018,9 @@ function er(i, t) {
|
|
|
1016
1018
|
title: i.name ?? ""
|
|
1017
1019
|
};
|
|
1018
1020
|
}
|
|
1019
|
-
class
|
|
1021
|
+
class rr {
|
|
1020
1022
|
}
|
|
1021
|
-
class
|
|
1023
|
+
class si extends rr {
|
|
1022
1024
|
constructor(e, r) {
|
|
1023
1025
|
super();
|
|
1024
1026
|
c(this, "inner");
|
|
@@ -1034,7 +1036,7 @@ class ii extends tr {
|
|
|
1034
1036
|
this.inner.setBounds(e.toGoogle(this.map.coordType));
|
|
1035
1037
|
}
|
|
1036
1038
|
addResultListener(e) {
|
|
1037
|
-
return
|
|
1039
|
+
return Ut(this.inner, "place_changed", () => {
|
|
1038
1040
|
const r = this.inner.getPlace(), s = {
|
|
1039
1041
|
title: r.name ?? "",
|
|
1040
1042
|
province: "",
|
|
@@ -1044,11 +1046,11 @@ class ii extends tr {
|
|
|
1044
1046
|
streetNumber: "",
|
|
1045
1047
|
country: ""
|
|
1046
1048
|
};
|
|
1047
|
-
r.address_components &&
|
|
1049
|
+
r.address_components && er(r.address_components, s), e(s);
|
|
1048
1050
|
});
|
|
1049
1051
|
}
|
|
1050
1052
|
}
|
|
1051
|
-
class
|
|
1053
|
+
class ni extends rr {
|
|
1052
1054
|
constructor(e, r) {
|
|
1053
1055
|
super();
|
|
1054
1056
|
c(this, "inner");
|
|
@@ -1062,7 +1064,7 @@ class si extends tr {
|
|
|
1062
1064
|
const s = () => {
|
|
1063
1065
|
this.inner.setLocation(this.map.innerMap);
|
|
1064
1066
|
};
|
|
1065
|
-
this.removeableArray.push(
|
|
1067
|
+
this.removeableArray.push(Pt(this.map, "center-changed", s)), this.removeableArray.push(Pt(this.map, "zoom-changed", s));
|
|
1066
1068
|
}
|
|
1067
1069
|
}
|
|
1068
1070
|
setBounds(e) {
|
|
@@ -1070,14 +1072,14 @@ class si extends tr {
|
|
|
1070
1072
|
}
|
|
1071
1073
|
addResultListener(e) {
|
|
1072
1074
|
let r = 0;
|
|
1073
|
-
const s =
|
|
1075
|
+
const s = Kr(this.inner, "confirm", (a) => {
|
|
1074
1076
|
const h = a.item.value;
|
|
1075
1077
|
r = Date.now(), e(Object.assign({
|
|
1076
1078
|
title: h.business,
|
|
1077
1079
|
country: ""
|
|
1078
1080
|
// Baidu的自动完成只支持中国
|
|
1079
1081
|
}, h));
|
|
1080
|
-
}), n =
|
|
1082
|
+
}), n = Xr(this.input, "keyup", (a) => {
|
|
1081
1083
|
a.key === "Enter" && Date.now() - r > 100 && e({
|
|
1082
1084
|
title: this.input.value,
|
|
1083
1085
|
country: "",
|
|
@@ -1093,9 +1095,9 @@ class si extends tr {
|
|
|
1093
1095
|
};
|
|
1094
1096
|
}
|
|
1095
1097
|
}
|
|
1096
|
-
let
|
|
1098
|
+
let oi = class ir {
|
|
1097
1099
|
constructor(t, e, r) {
|
|
1098
|
-
this.extend(
|
|
1100
|
+
this.extend(ir, 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;
|
|
1099
1101
|
var s = r || {};
|
|
1100
1102
|
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();
|
|
1101
1103
|
var n = this;
|
|
@@ -1514,7 +1516,7 @@ let ni = class rr {
|
|
|
1514
1516
|
if (r && r.isMarkerInClusterBounds(t))
|
|
1515
1517
|
r.addMarker(t);
|
|
1516
1518
|
else {
|
|
1517
|
-
var o = new
|
|
1519
|
+
var o = new ai(this);
|
|
1518
1520
|
o.addMarker(t), this.clusters_.push(o);
|
|
1519
1521
|
}
|
|
1520
1522
|
}
|
|
@@ -1531,9 +1533,9 @@ let ni = class rr {
|
|
|
1531
1533
|
), e = this.getExtendedBounds(t), r = 0, s; s = this.markers_[r]; r++)
|
|
1532
1534
|
!s.isAdded && this.isMarkerInBounds_(s, e) && this.addToClosestCluster_(s);
|
|
1533
1535
|
}
|
|
1534
|
-
},
|
|
1536
|
+
}, ai = class {
|
|
1535
1537
|
constructor(t) {
|
|
1536
|
-
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
|
|
1538
|
+
this.markerClusterer_ = t, this.map_ = t.getMap(), this.gridSize_ = t.getGridSize(), this.minClusterSize_ = t.getMinClusterSize(), this.averageCenter_ = t.isAverageCenter(), this.center_ = null, this.markers_ = [], this.bounds_ = null, this.clusterIcon_ = new nt(
|
|
1537
1539
|
this,
|
|
1538
1540
|
t.getStyles(),
|
|
1539
1541
|
t.getGridSize()
|
|
@@ -1667,9 +1669,9 @@ let ni = class rr {
|
|
|
1667
1669
|
this.clusterIcon_.setCenter(this.center_), this.clusterIcon_.setSums(a), this.clusterIcon_.show();
|
|
1668
1670
|
}
|
|
1669
1671
|
};
|
|
1670
|
-
class
|
|
1672
|
+
class nt {
|
|
1671
1673
|
constructor(t, e, r) {
|
|
1672
|
-
t.getMarkerClusterer().extend(
|
|
1674
|
+
t.getMarkerClusterer().extend(nt, 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_);
|
|
1673
1675
|
}
|
|
1674
1676
|
/**
|
|
1675
1677
|
* Triggers the clusterclick event and zoom's if the option is set.
|
|
@@ -1800,11 +1802,11 @@ class st {
|
|
|
1800
1802
|
), e.join("");
|
|
1801
1803
|
}
|
|
1802
1804
|
}
|
|
1803
|
-
var
|
|
1805
|
+
var sr = { exports: {} };
|
|
1804
1806
|
(function(i, t) {
|
|
1805
1807
|
(function(e, r) {
|
|
1806
1808
|
i.exports = r();
|
|
1807
|
-
})(
|
|
1809
|
+
})(Gt, function() {
|
|
1808
1810
|
var e, r = e = r || { version: "1.3.8" }, s = {};
|
|
1809
1811
|
r.guid = "$BAIDU$", s[r.guid] = s[r.guid] || {}, r.dom = r.dom || {}, r.dom.g = function(o) {
|
|
1810
1812
|
return typeof o == "string" || o instanceof String ? document.getElementById(o) : o && o.nodeName && (o.nodeType == 1 || o.nodeType == 9) ? o : null;
|
|
@@ -1993,25 +1995,25 @@ var ir = { exports: {} };
|
|
|
1993
1995
|
});
|
|
1994
1996
|
}, h;
|
|
1995
1997
|
});
|
|
1996
|
-
})(
|
|
1997
|
-
var
|
|
1998
|
-
const
|
|
1999
|
-
var
|
|
2000
|
-
t =
|
|
1998
|
+
})(sr);
|
|
1999
|
+
var li = sr.exports;
|
|
2000
|
+
const It = /* @__PURE__ */ Xe(li);
|
|
2001
|
+
var nr = function(i, t, e) {
|
|
2002
|
+
t = hi(t);
|
|
2001
2003
|
var r = i.pointToPixel(t.getNorthEast()), s = i.pointToPixel(t.getSouthWest());
|
|
2002
2004
|
r.x += e, r.y -= e, s.x -= e, s.y += e;
|
|
2003
2005
|
var n = i.pixelToPoint(r), a = i.pixelToPoint(s);
|
|
2004
2006
|
return new BMap.Bounds(a, n);
|
|
2005
|
-
},
|
|
2006
|
-
var t =
|
|
2007
|
+
}, hi = function(i) {
|
|
2008
|
+
var t = we(i.getNorthEast().lng, -180, 180), e = we(i.getSouthWest().lng, -180, 180), r = we(i.getNorthEast().lat, -74, 74), s = we(i.getSouthWest().lat, -74, 74);
|
|
2007
2009
|
return new BMap.Bounds(new BMap.Point(e, s), new BMap.Point(t, r));
|
|
2008
|
-
},
|
|
2010
|
+
}, we = function(i, t, e) {
|
|
2009
2011
|
return t && (i = Math.max(i, t)), e && (i = Math.min(i, e)), i;
|
|
2010
|
-
},
|
|
2012
|
+
}, or = function(i) {
|
|
2011
2013
|
return Object.prototype.toString.call(i) === "[object Array]";
|
|
2012
|
-
},
|
|
2014
|
+
}, ar = function(i, t) {
|
|
2013
2015
|
var e = -1;
|
|
2014
|
-
if (
|
|
2016
|
+
if (or(t)) {
|
|
2015
2017
|
if (t.indexOf)
|
|
2016
2018
|
e = t.indexOf(i);
|
|
2017
2019
|
else
|
|
@@ -2039,7 +2041,7 @@ var sr = function(i, t, e) {
|
|
|
2039
2041
|
r._redraw();
|
|
2040
2042
|
});
|
|
2041
2043
|
var s = e.markers;
|
|
2042
|
-
|
|
2044
|
+
or(s) && this.addMarkers(s);
|
|
2043
2045
|
}
|
|
2044
2046
|
};
|
|
2045
2047
|
T.prototype.addMarkers = function(i) {
|
|
@@ -2050,7 +2052,7 @@ T.prototype.addMarkers = function(i) {
|
|
|
2050
2052
|
}
|
|
2051
2053
|
};
|
|
2052
2054
|
T.prototype._pushMarkerTo = function(i) {
|
|
2053
|
-
var t =
|
|
2055
|
+
var t = ar(i, this._markers);
|
|
2054
2056
|
t === -1 && (i.isInCluster = !1, this._markers.push(i));
|
|
2055
2057
|
};
|
|
2056
2058
|
T.prototype.addMarker = function(i) {
|
|
@@ -2059,7 +2061,7 @@ T.prototype.addMarker = function(i) {
|
|
|
2059
2061
|
T.prototype._createClusters = function() {
|
|
2060
2062
|
var i = this._map.getBounds();
|
|
2061
2063
|
if (i.getCenter()) {
|
|
2062
|
-
for (var t =
|
|
2064
|
+
for (var t = nr(this._map, i, this._gridSize), e = 0, r; r = this._markers[e]; e++)
|
|
2063
2065
|
!r.isInCluster && t.containsPoint(r.getPosition()) && this._addToClosestCluster(r);
|
|
2064
2066
|
for (var s = this._markers.length, e = 0; e < s; e++)
|
|
2065
2067
|
this._clusters[e] && this._clusters[e].render();
|
|
@@ -2099,7 +2101,7 @@ T.prototype._removeMarkersFromMap = function() {
|
|
|
2099
2101
|
}
|
|
2100
2102
|
};
|
|
2101
2103
|
T.prototype._removeMarker = function(i) {
|
|
2102
|
-
var t =
|
|
2104
|
+
var t = ar(i, this._markers);
|
|
2103
2105
|
return t === -1 ? !1 : (this._map.removeOverlay(i), this._markers.splice(t, 1), !0);
|
|
2104
2106
|
};
|
|
2105
2107
|
T.prototype.removeMarker = function(i) {
|
|
@@ -2175,7 +2177,7 @@ T.prototype.setStylesIndexCalculator = function(i) {
|
|
|
2175
2177
|
};
|
|
2176
2178
|
function $(i) {
|
|
2177
2179
|
var t = this;
|
|
2178
|
-
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
|
|
2180
|
+
this._markerClusterer = i, this._map = i.getMap(), this._minClusterSize = i.getMinClusterSize(), this._isAverageCenter = i.isAverageCenter(), this._center = null, this._markers = [], this._gridBounds = null, this._isReal = !1, this._clusterMarker = new It(this._center, this._markers.length, {
|
|
2179
2181
|
styles: this._markerClusterer.getStyles(),
|
|
2180
2182
|
zIndex: i._zIndex
|
|
2181
2183
|
}), this._clusterMarker.getStyleByText = function(e, r) {
|
|
@@ -2183,7 +2185,7 @@ function $(i) {
|
|
|
2183
2185
|
var s = t._markerClusterer._stylesIndexCalculator(t._markers, r.length);
|
|
2184
2186
|
return r[s];
|
|
2185
2187
|
}
|
|
2186
|
-
return
|
|
2188
|
+
return It.prototype.getStyleByText.call(this, e, r);
|
|
2187
2189
|
}, this._clusterMarker.addEventListener && this._clusterMarker.addEventListener("click", function(e) {
|
|
2188
2190
|
t._map.setViewport(t.getBounds());
|
|
2189
2191
|
});
|
|
@@ -2223,7 +2225,7 @@ $.prototype.isReal = function(i) {
|
|
|
2223
2225
|
};
|
|
2224
2226
|
$.prototype.updateGridBounds = function() {
|
|
2225
2227
|
var i = new BMap.Bounds(this._center, this._center);
|
|
2226
|
-
this._gridBounds =
|
|
2228
|
+
this._gridBounds = nr(this._map, i, this._markerClusterer.getGridSize());
|
|
2227
2229
|
};
|
|
2228
2230
|
$.prototype.updateClusterMarker = function() {
|
|
2229
2231
|
if (this._map.getZoom() > this._markerClusterer.getMaxZoom()) {
|
|
@@ -2253,7 +2255,7 @@ $.prototype.getBounds = function() {
|
|
|
2253
2255
|
$.prototype.getCenter = function() {
|
|
2254
2256
|
return this._center;
|
|
2255
2257
|
};
|
|
2256
|
-
var
|
|
2258
|
+
var ke;
|
|
2257
2259
|
((i) => {
|
|
2258
2260
|
function t(r) {
|
|
2259
2261
|
return {
|
|
@@ -2278,8 +2280,8 @@ var xe;
|
|
|
2278
2280
|
};
|
|
2279
2281
|
}
|
|
2280
2282
|
i.toGoogle = e;
|
|
2281
|
-
})(
|
|
2282
|
-
class
|
|
2283
|
+
})(ke || (ke = {}));
|
|
2284
|
+
class lr {
|
|
2283
2285
|
constructor(t) {
|
|
2284
2286
|
c(this, "inner");
|
|
2285
2287
|
this.map = t;
|
|
@@ -2305,7 +2307,7 @@ class ar {
|
|
|
2305
2307
|
return this.inner.removeMarkers(t.map((e) => e.innerOverlay));
|
|
2306
2308
|
}
|
|
2307
2309
|
}
|
|
2308
|
-
class
|
|
2310
|
+
class ci extends lr {
|
|
2309
2311
|
constructor(t, e) {
|
|
2310
2312
|
var s;
|
|
2311
2313
|
super(t), this.inner = new T(t.innerMap, {
|
|
@@ -2315,7 +2317,7 @@ class hi extends ar {
|
|
|
2315
2317
|
maxZoom: e.maxZoom,
|
|
2316
2318
|
minClusterSize: e.minClusterSize,
|
|
2317
2319
|
isAverageCenter: e.averageCenter,
|
|
2318
|
-
styles: (s = e.styles) == null ? void 0 : s.map((n) =>
|
|
2320
|
+
styles: (s = e.styles) == null ? void 0 : s.map((n) => ke.toBaidu(n)),
|
|
2319
2321
|
zIndex: e.zIndex
|
|
2320
2322
|
});
|
|
2321
2323
|
const r = e.stylesIndexCalculator;
|
|
@@ -2325,10 +2327,10 @@ class hi extends ar {
|
|
|
2325
2327
|
this.inner._redraw();
|
|
2326
2328
|
}
|
|
2327
2329
|
}
|
|
2328
|
-
class
|
|
2330
|
+
class di extends lr {
|
|
2329
2331
|
constructor(t, e) {
|
|
2330
2332
|
var s, n;
|
|
2331
|
-
super(t), this.inner = new
|
|
2333
|
+
super(t), this.inner = new oi(
|
|
2332
2334
|
t.innerMap,
|
|
2333
2335
|
// google的构造器中的markers,不会触发重绘, 第一次绘制通过监听地图的'idle'事件触发, 可以直接设置
|
|
2334
2336
|
(s = e.markers) == null ? void 0 : s.map((a) => a.innerOverlay),
|
|
@@ -2337,7 +2339,7 @@ class ci extends ar {
|
|
|
2337
2339
|
maxZoom: e.maxZoom,
|
|
2338
2340
|
minimumClusterSize: e.minClusterSize,
|
|
2339
2341
|
averageCenter: e.averageCenter,
|
|
2340
|
-
styles: (n = e.styles) == null ? void 0 : n.map((a) =>
|
|
2342
|
+
styles: (n = e.styles) == null ? void 0 : n.map((a) => ke.toGoogle(a)),
|
|
2341
2343
|
zIndex: e.zIndex
|
|
2342
2344
|
}
|
|
2343
2345
|
);
|
|
@@ -2352,11 +2354,11 @@ class ci extends ar {
|
|
|
2352
2354
|
this.inner.repaint();
|
|
2353
2355
|
}
|
|
2354
2356
|
}
|
|
2355
|
-
class
|
|
2357
|
+
class hr {
|
|
2356
2358
|
constructor() {
|
|
2357
2359
|
}
|
|
2358
2360
|
}
|
|
2359
|
-
class
|
|
2361
|
+
class ui extends hr {
|
|
2360
2362
|
constructor(e, r) {
|
|
2361
2363
|
super();
|
|
2362
2364
|
c(this, "inner");
|
|
@@ -2390,7 +2392,7 @@ class di extends lr {
|
|
|
2390
2392
|
switch (h) {
|
|
2391
2393
|
case google.maps.places.PlacesServiceStatus.ZERO_RESULTS:
|
|
2392
2394
|
case google.maps.places.PlacesServiceStatus.OK: {
|
|
2393
|
-
const o = (a ?? []).map((l) =>
|
|
2395
|
+
const o = (a ?? []).map((l) => tr(l, this.map));
|
|
2394
2396
|
s(o);
|
|
2395
2397
|
break;
|
|
2396
2398
|
}
|
|
@@ -2402,7 +2404,7 @@ class di extends lr {
|
|
|
2402
2404
|
});
|
|
2403
2405
|
}
|
|
2404
2406
|
}
|
|
2405
|
-
class
|
|
2407
|
+
class pi extends hr {
|
|
2406
2408
|
constructor(e, r) {
|
|
2407
2409
|
super();
|
|
2408
2410
|
c(this, "searchRequestMap", /* @__PURE__ */ new Map());
|
|
@@ -2434,7 +2436,7 @@ class ui extends lr {
|
|
|
2434
2436
|
return new Promise((s, n) => {
|
|
2435
2437
|
const a = new BMap.LocalSearch(e ?? this.map.innerMap, {
|
|
2436
2438
|
onSearchComplete: (h) => {
|
|
2437
|
-
Array.isArray(h) &&
|
|
2439
|
+
Array.isArray(h) && Wt("当前只支持一次搜索一条数据");
|
|
2438
2440
|
const o = a.getStatus();
|
|
2439
2441
|
switch (o) {
|
|
2440
2442
|
case BMAP_STATUS_SUCCESS: {
|
|
@@ -2468,7 +2470,7 @@ class ui extends lr {
|
|
|
2468
2470
|
});
|
|
2469
2471
|
}
|
|
2470
2472
|
}
|
|
2471
|
-
class
|
|
2473
|
+
class cr {
|
|
2472
2474
|
constructor(t, e) {
|
|
2473
2475
|
c(this, "onData");
|
|
2474
2476
|
c(this, "onError");
|
|
@@ -2483,23 +2485,23 @@ class hr {
|
|
|
2483
2485
|
return this.onData && E("setSearchListener只能调用一次"), this.onData = t, this.onError = e, me;
|
|
2484
2486
|
}
|
|
2485
2487
|
}
|
|
2486
|
-
class
|
|
2488
|
+
class gi extends cr {
|
|
2487
2489
|
constructor(e, r) {
|
|
2488
2490
|
super(e, r.input);
|
|
2489
2491
|
c(this, "searchBox");
|
|
2490
2492
|
this.searchBox = new google.maps.places.SearchBox(r.input), this.searchBox.bindTo("bounds", e.innerMap);
|
|
2491
2493
|
}
|
|
2492
2494
|
setSearchListener(e, r) {
|
|
2493
|
-
return super.setSearchListener(e, r),
|
|
2495
|
+
return super.setSearchListener(e, r), Ut(this.searchBox, "places_changed", () => {
|
|
2494
2496
|
const s = this.searchBox.getPlaces();
|
|
2495
|
-
e((s ?? []).map((n) =>
|
|
2497
|
+
e((s ?? []).map((n) => tr(n, this.map)));
|
|
2496
2498
|
});
|
|
2497
2499
|
}
|
|
2498
2500
|
search() {
|
|
2499
2501
|
this.input.value && (google.maps.event.trigger(this.input, "focus", {}), google.maps.event.trigger(this.input, "keydown", { keyCode: 13 }));
|
|
2500
2502
|
}
|
|
2501
2503
|
}
|
|
2502
|
-
class
|
|
2504
|
+
class mi extends cr {
|
|
2503
2505
|
constructor(e, r) {
|
|
2504
2506
|
super(e, r.input);
|
|
2505
2507
|
c(this, "autocomplete");
|
|
@@ -2518,8 +2520,8 @@ class gi extends hr {
|
|
|
2518
2520
|
this.placeService.search(e).then(this.onData, this.onError);
|
|
2519
2521
|
}
|
|
2520
2522
|
}
|
|
2521
|
-
var
|
|
2522
|
-
class
|
|
2523
|
+
var fi = /* @__PURE__ */ ((i) => (i[i.WORLD = 1] = "WORLD", i[i.STATE = 5] = "STATE", i[i.CITY = 10] = "CITY", i[i.STREET = 15] = "STREET", i[i.BUILDING = 20] = "BUILDING", i))(fi || {});
|
|
2524
|
+
class ot {
|
|
2523
2525
|
constructor(t) {
|
|
2524
2526
|
c(this, "latestInfoWindow");
|
|
2525
2527
|
/** 使用{@link setEventTargetDelegate}初始化 */
|
|
@@ -2572,7 +2574,7 @@ class nt {
|
|
|
2572
2574
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
2573
2575
|
* Released under the MIT License.
|
|
2574
2576
|
*/
|
|
2575
|
-
function
|
|
2577
|
+
function yi(i) {
|
|
2576
2578
|
return i != null && typeof i == "object" && Array.isArray(i) === !1;
|
|
2577
2579
|
}
|
|
2578
2580
|
/*!
|
|
@@ -2581,12 +2583,12 @@ function fi(i) {
|
|
|
2581
2583
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
2582
2584
|
* Released under the MIT License.
|
|
2583
2585
|
*/
|
|
2584
|
-
function
|
|
2585
|
-
return
|
|
2586
|
+
function St(i) {
|
|
2587
|
+
return yi(i) === !0 && Object.prototype.toString.call(i) === "[object Object]";
|
|
2586
2588
|
}
|
|
2587
|
-
function
|
|
2589
|
+
function dr(i) {
|
|
2588
2590
|
var t, e;
|
|
2589
|
-
return !(
|
|
2591
|
+
return !(St(i) === !1 || (t = i.constructor, typeof t != "function") || (e = t.prototype, St(e) === !1) || e.hasOwnProperty("isPrototypeOf") === !1);
|
|
2590
2592
|
}
|
|
2591
2593
|
var ye;
|
|
2592
2594
|
((i) => {
|
|
@@ -2603,27 +2605,27 @@ var ye;
|
|
|
2603
2605
|
}
|
|
2604
2606
|
i.toJsonSafely = r;
|
|
2605
2607
|
function s(h) {
|
|
2606
|
-
|
|
2608
|
+
dr(h) && Object.keys(h).forEach((o) => {
|
|
2607
2609
|
h[o] === void 0 ? delete h[o] : s(h[o]);
|
|
2608
2610
|
});
|
|
2609
2611
|
}
|
|
2610
2612
|
i.deleteUndefinedPropertyOnPlainObjectDeeply = s;
|
|
2611
2613
|
function n(h, ...o) {
|
|
2612
|
-
const l =
|
|
2614
|
+
const l = At(o), d = {};
|
|
2613
2615
|
for (const u in h)
|
|
2614
2616
|
l(u) || (d[u] = h[u]);
|
|
2615
2617
|
return d;
|
|
2616
2618
|
}
|
|
2617
2619
|
i.omit = n;
|
|
2618
2620
|
function a(h, ...o) {
|
|
2619
|
-
const l =
|
|
2621
|
+
const l = At(o), d = {};
|
|
2620
2622
|
for (const u in h)
|
|
2621
2623
|
l(u) && (d[u] = h[u]);
|
|
2622
2624
|
return d;
|
|
2623
2625
|
}
|
|
2624
2626
|
i.pick = a;
|
|
2625
2627
|
})(ye || (ye = {}));
|
|
2626
|
-
function
|
|
2628
|
+
function At(i) {
|
|
2627
2629
|
if (i.length <= 4)
|
|
2628
2630
|
return i.includes.bind(i);
|
|
2629
2631
|
{
|
|
@@ -2632,19 +2634,19 @@ function St(i) {
|
|
|
2632
2634
|
}
|
|
2633
2635
|
}
|
|
2634
2636
|
ye.toJsonSafely;
|
|
2635
|
-
const
|
|
2636
|
-
var
|
|
2637
|
+
const vi = ["single", "multi"];
|
|
2638
|
+
var Z = /* @__PURE__ */ ((i) => (i.auto = "auto", i.none = "none", i.greedy = "greedy", i.cooperative = "cooperative", i))(Z || {}), Ye;
|
|
2637
2639
|
((i) => {
|
|
2638
2640
|
function t(e) {
|
|
2639
2641
|
ye.deleteUndefinedPropertyOnPlainObjectDeeply(e);
|
|
2640
2642
|
const r = { center: y.ZERO, zoom: 5 };
|
|
2641
|
-
return
|
|
2642
|
-
isMergeableObject:
|
|
2643
|
+
return jt(r, e || {}, {
|
|
2644
|
+
isMergeableObject: dr
|
|
2643
2645
|
});
|
|
2644
2646
|
}
|
|
2645
2647
|
i.create = t;
|
|
2646
|
-
})(
|
|
2647
|
-
class
|
|
2648
|
+
})(Ye || (Ye = {}));
|
|
2649
|
+
class ur {
|
|
2648
2650
|
constructor(t, e, r) {
|
|
2649
2651
|
c(this, "_delegate");
|
|
2650
2652
|
this.innerOverlay = t, this.coordType = e, this.map = r;
|
|
@@ -2662,7 +2664,7 @@ class dr {
|
|
|
2662
2664
|
this.map.removeOverlay(this);
|
|
2663
2665
|
}
|
|
2664
2666
|
}
|
|
2665
|
-
class
|
|
2667
|
+
class at extends ur {
|
|
2666
2668
|
constructor(t, e, r) {
|
|
2667
2669
|
super(t, e, r);
|
|
2668
2670
|
}
|
|
@@ -2676,7 +2678,7 @@ class ot extends dr {
|
|
|
2676
2678
|
this.innerOverlay.setVisible(t);
|
|
2677
2679
|
}
|
|
2678
2680
|
}
|
|
2679
|
-
class
|
|
2681
|
+
class ze extends ur {
|
|
2680
2682
|
constructor(t, e, r) {
|
|
2681
2683
|
super(t, e, r);
|
|
2682
2684
|
}
|
|
@@ -2698,7 +2700,7 @@ class $e extends dr {
|
|
|
2698
2700
|
return t !== void 0 && (t || this.setVisible(!1)), this;
|
|
2699
2701
|
}
|
|
2700
2702
|
}
|
|
2701
|
-
class
|
|
2703
|
+
class pr extends ze {
|
|
2702
2704
|
constructor(t, e, r, s) {
|
|
2703
2705
|
super(t, e, r), this.state = s;
|
|
2704
2706
|
}
|
|
@@ -2724,7 +2726,7 @@ class ur extends $e {
|
|
|
2724
2726
|
this.innerOverlay.setFillOpacity(t);
|
|
2725
2727
|
}
|
|
2726
2728
|
}
|
|
2727
|
-
class
|
|
2729
|
+
class Ne extends at {
|
|
2728
2730
|
isEditable() {
|
|
2729
2731
|
return this.innerOverlay.getEditable();
|
|
2730
2732
|
}
|
|
@@ -2747,7 +2749,7 @@ class De extends ot {
|
|
|
2747
2749
|
this.innerOverlay.setOptions({ fillOpacity: t });
|
|
2748
2750
|
}
|
|
2749
2751
|
}
|
|
2750
|
-
class
|
|
2752
|
+
class lt extends pr {
|
|
2751
2753
|
constructor() {
|
|
2752
2754
|
super(...arguments);
|
|
2753
2755
|
c(this, "prevCenter");
|
|
@@ -2778,13 +2780,13 @@ class at extends ur {
|
|
|
2778
2780
|
strokeWeight: e.strokeWeight,
|
|
2779
2781
|
fillColor: e.fillColor,
|
|
2780
2782
|
fillOpacity: e.fillOpacity
|
|
2781
|
-
}), n = new
|
|
2783
|
+
}), n = new lt(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
|
|
2782
2784
|
return n.state.editable && setTimeout(() => {
|
|
2783
2785
|
n.state.editable && s.enableEditing();
|
|
2784
2786
|
}, 0), n;
|
|
2785
2787
|
}
|
|
2786
2788
|
createDelegate() {
|
|
2787
|
-
return this.eventHubDelegate = new
|
|
2789
|
+
return this.eventHubDelegate = new De(super.createDelegate(), {
|
|
2788
2790
|
types: ["radius-changed", "center-changed"],
|
|
2789
2791
|
onListen: (e) => {
|
|
2790
2792
|
e === "radius-changed" ? (this.prevRadius = this.innerOverlay.getRadius(), this.innerOverlay.addEventListener("lineupdate", this.onRadiusChanged)) : (this.prevCenter = this.innerOverlay.getCenter(), this.innerOverlay.addEventListener("lineupdate", this.onCenterChanged));
|
|
@@ -2809,7 +2811,7 @@ class at extends ur {
|
|
|
2809
2811
|
return this.innerOverlay.getRadius();
|
|
2810
2812
|
}
|
|
2811
2813
|
}
|
|
2812
|
-
class
|
|
2814
|
+
class ht extends Ne {
|
|
2813
2815
|
static create(t) {
|
|
2814
2816
|
const e = this.coordType, r = new google.maps.Circle({
|
|
2815
2817
|
center: t.center.toGoogle(e),
|
|
@@ -2823,7 +2825,7 @@ class lt extends De {
|
|
|
2823
2825
|
fillOpacity: t.fillOpacity,
|
|
2824
2826
|
visible: t.visible
|
|
2825
2827
|
});
|
|
2826
|
-
return new
|
|
2828
|
+
return new ht(r, e, this);
|
|
2827
2829
|
}
|
|
2828
2830
|
setCenter(t) {
|
|
2829
2831
|
this.coordType = this.map.coordType, this.innerOverlay.setCenter(t.toGoogle(this.coordType));
|
|
@@ -2838,10 +2840,10 @@ class lt extends De {
|
|
|
2838
2840
|
return this.innerOverlay.getRadius();
|
|
2839
2841
|
}
|
|
2840
2842
|
}
|
|
2841
|
-
function
|
|
2843
|
+
function gr() {
|
|
2842
2844
|
BMap.OverlayV3 || (BMap.OverlayV3 = BMap.Overlay);
|
|
2843
2845
|
}
|
|
2844
|
-
const
|
|
2846
|
+
const Rt = {
|
|
2845
2847
|
/** {@link BMap.Point.equals} 无效, 故需要自己写一个 */
|
|
2846
2848
|
equals(i, t) {
|
|
2847
2849
|
return i.lat === t.lat && i.lng === t.lng;
|
|
@@ -2851,12 +2853,12 @@ var q;
|
|
|
2851
2853
|
((i) => {
|
|
2852
2854
|
i.ZERO = { x: 0, y: 0 };
|
|
2853
2855
|
})(q || (q = {}));
|
|
2854
|
-
let
|
|
2855
|
-
function
|
|
2856
|
-
return
|
|
2856
|
+
let He;
|
|
2857
|
+
function _i(i, t, e, r, s, n) {
|
|
2858
|
+
return He || (He = bi()), new He(i, t, e, r, s, n);
|
|
2857
2859
|
}
|
|
2858
|
-
function
|
|
2859
|
-
|
|
2860
|
+
function bi() {
|
|
2861
|
+
gr();
|
|
2860
2862
|
const i = new BMap.Point(0, 0);
|
|
2861
2863
|
return class extends BMap.OverlayV3 {
|
|
2862
2864
|
constructor(r, s = i, n = q.ZERO, a, h = 654, o = "") {
|
|
@@ -2922,7 +2924,7 @@ function _i() {
|
|
|
2922
2924
|
}
|
|
2923
2925
|
};
|
|
2924
2926
|
}
|
|
2925
|
-
class
|
|
2927
|
+
class ct {
|
|
2926
2928
|
constructor(t) {
|
|
2927
2929
|
this.delegate = t, this.delegate.setTarget(this);
|
|
2928
2930
|
}
|
|
@@ -2933,7 +2935,7 @@ class ht {
|
|
|
2933
2935
|
this.delegate.removeEventListener(t, e);
|
|
2934
2936
|
}
|
|
2935
2937
|
}
|
|
2936
|
-
class
|
|
2938
|
+
class dt extends ct {
|
|
2937
2939
|
constructor(t, e, r) {
|
|
2938
2940
|
super(new ne(t, e)), this.inner = t, this.map = e, this.state = r;
|
|
2939
2941
|
}
|
|
@@ -2943,7 +2945,7 @@ class ct extends ht {
|
|
|
2943
2945
|
offset: t.offset && new BMap.Size(t.offset.x, t.offset.y),
|
|
2944
2946
|
enableAutoPan: !t.disableAutoPan
|
|
2945
2947
|
});
|
|
2946
|
-
return new
|
|
2948
|
+
return new dt(r, this, { position: e });
|
|
2947
2949
|
}
|
|
2948
2950
|
isOpen() {
|
|
2949
2951
|
return this.inner.isOpen();
|
|
@@ -2962,10 +2964,10 @@ class ct extends ht {
|
|
|
2962
2964
|
this.state.position = t, this.inner.isOpen() && this.open();
|
|
2963
2965
|
}
|
|
2964
2966
|
}
|
|
2965
|
-
class
|
|
2967
|
+
class ut extends ct {
|
|
2966
2968
|
constructor(e, r) {
|
|
2967
2969
|
super(new ee(e, r));
|
|
2968
|
-
c(this, "eventHub", new
|
|
2970
|
+
c(this, "eventHub", new Yt());
|
|
2969
2971
|
c(this, "isOpened", !1);
|
|
2970
2972
|
this.inner = e, this.map = r, e.addListener("closeclick", () => {
|
|
2971
2973
|
this.isOpened = !1, this.eventHub.hasListener("close") && this.eventHub.notify({ type: "close", target: this });
|
|
@@ -2982,7 +2984,7 @@ class dt extends ht {
|
|
|
2982
2984
|
position: r.toGoogle(this.coordType),
|
|
2983
2985
|
disableAutoPan: e.disableAutoPan
|
|
2984
2986
|
});
|
|
2985
|
-
return new
|
|
2987
|
+
return new ut(s, this);
|
|
2986
2988
|
}
|
|
2987
2989
|
isOpen() {
|
|
2988
2990
|
return this.isOpened;
|
|
@@ -3020,13 +3022,13 @@ class dt extends ht {
|
|
|
3020
3022
|
this.inner.setPosition(e.toGoogle(this.map.coordType));
|
|
3021
3023
|
}
|
|
3022
3024
|
}
|
|
3023
|
-
class
|
|
3025
|
+
class pt extends ze {
|
|
3024
3026
|
constructor(t, e, r) {
|
|
3025
3027
|
super(t, e, r), this.baiduMap = r;
|
|
3026
3028
|
}
|
|
3027
3029
|
static create(t) {
|
|
3028
3030
|
var s;
|
|
3029
|
-
const e = this.coordType, r =
|
|
3031
|
+
const e = this.coordType, r = _i(
|
|
3030
3032
|
t.content,
|
|
3031
3033
|
(s = t.position) == null ? void 0 : s.toBaidu(e),
|
|
3032
3034
|
t.offset,
|
|
@@ -3034,7 +3036,7 @@ class ut extends $e {
|
|
|
3034
3036
|
t.maxWidth,
|
|
3035
3037
|
t.borderClass
|
|
3036
3038
|
);
|
|
3037
|
-
return new
|
|
3039
|
+
return new pt(r, e, this);
|
|
3038
3040
|
}
|
|
3039
3041
|
open(t) {
|
|
3040
3042
|
this.innerOverlay.open(this.baiduMap.innerMap, t == null ? void 0 : t.innerOverlay);
|
|
@@ -3055,7 +3057,7 @@ class ut extends $e {
|
|
|
3055
3057
|
this.innerOverlay.setZIndex(t);
|
|
3056
3058
|
}
|
|
3057
3059
|
}
|
|
3058
|
-
class
|
|
3060
|
+
class gt extends ct {
|
|
3059
3061
|
constructor(t, e, r) {
|
|
3060
3062
|
super(new ee(t, r)), this.inner = t, this.coordType = e, this.map = r;
|
|
3061
3063
|
}
|
|
@@ -3072,7 +3074,7 @@ class pt extends ht {
|
|
|
3072
3074
|
var h;
|
|
3073
3075
|
const a = (h = t.content.parentElement) == null ? void 0 : h.parentElement;
|
|
3074
3076
|
a && a.className.includes("gm-style-iw-c") && !a.className.includes(s) && (a.className += ` ${s}`);
|
|
3075
|
-
}), new
|
|
3077
|
+
}), new gt(r, e, this);
|
|
3076
3078
|
}
|
|
3077
3079
|
open(t) {
|
|
3078
3080
|
this.inner.open(this.map.innerMap, t == null ? void 0 : t.innerOverlay);
|
|
@@ -3118,23 +3120,129 @@ var ve;
|
|
|
3118
3120
|
}
|
|
3119
3121
|
i.pascal2kebab = r;
|
|
3120
3122
|
})(ve || (ve = {}));
|
|
3121
|
-
const
|
|
3123
|
+
const Mi = {
|
|
3122
3124
|
/** @see https://nodejs.org/docs/v10.3.0/api/path.html#path_path_basename_path_ext */
|
|
3123
3125
|
basename(i, t) {
|
|
3124
3126
|
const e = i.endsWith("/") ? i.slice(0, -1) : i, r = e.lastIndexOf("/"), s = r >= 0 ? e.substring(r + 1) : e;
|
|
3125
3127
|
return t && s.endsWith(t) ? s.slice(0, -t.length) : s;
|
|
3126
3128
|
}
|
|
3127
3129
|
};
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3130
|
+
var _e = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overlayMouseTarget = "overlayMouseTarget", i.float = "float", i))(_e || {}), be;
|
|
3131
|
+
((i) => {
|
|
3132
|
+
function t(r, s) {
|
|
3133
|
+
switch (r) {
|
|
3134
|
+
case "float":
|
|
3135
|
+
return s.floatPane;
|
|
3136
|
+
case "overlayMouseTarget":
|
|
3137
|
+
return s.overlayMouseTarget;
|
|
3138
|
+
case "overlay":
|
|
3139
|
+
return s.overlayLayer;
|
|
3140
|
+
case "map":
|
|
3141
|
+
return s.mapPane;
|
|
3142
|
+
default:
|
|
3143
|
+
Fe(r);
|
|
3144
|
+
}
|
|
3145
|
+
}
|
|
3146
|
+
i.toGoogle = t;
|
|
3147
|
+
function e(r, s) {
|
|
3148
|
+
switch (r) {
|
|
3149
|
+
case "float":
|
|
3150
|
+
return s.floatPane;
|
|
3151
|
+
case "overlayMouseTarget":
|
|
3152
|
+
return s.markerMouseTarget;
|
|
3153
|
+
case "overlay":
|
|
3154
|
+
return s.markerPane;
|
|
3155
|
+
case "map":
|
|
3156
|
+
return s.mapPane;
|
|
3157
|
+
default:
|
|
3158
|
+
Fe(r);
|
|
3159
|
+
}
|
|
3160
|
+
}
|
|
3161
|
+
i.toBaidu = e;
|
|
3162
|
+
})(be || (be = {}));
|
|
3163
|
+
class Ti {
|
|
3164
|
+
constructor(t, e) {
|
|
3165
|
+
c(this, "baidu");
|
|
3166
|
+
c(this, "google");
|
|
3167
|
+
c(this, "projection");
|
|
3168
|
+
c(this, "element", void 0);
|
|
3169
|
+
c(this, "mapPane");
|
|
3170
|
+
this.map = t, this.mapPane = e.mapPane;
|
|
3171
|
+
}
|
|
3172
|
+
create() {
|
|
3173
|
+
return this.element = this.onCreate(), this.element.className += " element-overlay", this.element;
|
|
3174
|
+
}
|
|
3175
|
+
draw() {
|
|
3176
|
+
this.projection && this.onDraw(this.projection);
|
|
3177
|
+
}
|
|
3178
|
+
getProjection() {
|
|
3179
|
+
return this.projection;
|
|
3180
|
+
}
|
|
3181
|
+
asBaidu() {
|
|
3182
|
+
if (!this.baidu) {
|
|
3183
|
+
const t = this;
|
|
3184
|
+
gr();
|
|
3185
|
+
class e extends BMap.OverlayV3 {
|
|
3186
|
+
initialize(n) {
|
|
3187
|
+
var o;
|
|
3188
|
+
const a = t.create(), h = n.getPanes();
|
|
3189
|
+
return (o = be.toBaidu(t.mapPane, h)) == null || o.appendChild(a), a;
|
|
3190
|
+
}
|
|
3191
|
+
draw() {
|
|
3192
|
+
t.draw();
|
|
3193
|
+
}
|
|
3194
|
+
}
|
|
3195
|
+
this.baidu = new e();
|
|
3196
|
+
const r = t.map.innerMap;
|
|
3197
|
+
this.projection = {
|
|
3198
|
+
fromLatLngToOverlayPoint(s) {
|
|
3199
|
+
return r.pointToOverlayPixel(s.toBaidu(t.map.coordType));
|
|
3200
|
+
},
|
|
3201
|
+
fromOverlayPointToLatLng(s) {
|
|
3202
|
+
return y.fromBaidu(r.overlayPixelToPoint(new BMap.Pixel(s.x, s.y)), t.map.coordType);
|
|
3203
|
+
}
|
|
3204
|
+
};
|
|
3205
|
+
}
|
|
3206
|
+
return this.baidu;
|
|
3207
|
+
}
|
|
3208
|
+
asGoogle() {
|
|
3209
|
+
if (!this.google) {
|
|
3210
|
+
const t = this;
|
|
3211
|
+
class e extends google.maps.OverlayView {
|
|
3212
|
+
onAdd() {
|
|
3213
|
+
const s = t.create(), n = this.getPanes() ?? E("onAdd回调中一定会有panes");
|
|
3214
|
+
be.toGoogle(t.mapPane, n).appendChild(s);
|
|
3215
|
+
}
|
|
3216
|
+
draw() {
|
|
3217
|
+
t.draw();
|
|
3218
|
+
}
|
|
3219
|
+
onRemove() {
|
|
3220
|
+
var s;
|
|
3221
|
+
(s = t.element.parentNode) == null || s.removeChild(t.element);
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
3224
|
+
this.google = new e(), this.projection = {
|
|
3225
|
+
fromLatLngToOverlayPoint(r) {
|
|
3226
|
+
return t.google.getProjection().fromLatLngToDivPixel(r.toGoogle(t.map.coordType)) ?? q.ZERO;
|
|
3227
|
+
},
|
|
3228
|
+
fromOverlayPointToLatLng(r) {
|
|
3229
|
+
return y.fromGoogle(t.google.getProjection().fromDivPixelToLatLng(new google.maps.Point(r.x, r.y)) ?? Y.LATLNG_ZERO, t.map.coordType);
|
|
3230
|
+
}
|
|
3231
|
+
};
|
|
3232
|
+
}
|
|
3233
|
+
return this.google;
|
|
3234
|
+
}
|
|
3235
|
+
}
|
|
3236
|
+
let je;
|
|
3237
|
+
function Oi(i, t, e, r, s) {
|
|
3238
|
+
return je || (je = Ci()), new je(i, t, e, r, s);
|
|
3131
3239
|
}
|
|
3132
|
-
function
|
|
3240
|
+
function Ci() {
|
|
3133
3241
|
return class extends google.maps.OverlayView {
|
|
3134
|
-
constructor(e, r, s, n) {
|
|
3242
|
+
constructor(e, r, s, n = _e.overlayMouseTarget, a) {
|
|
3135
3243
|
super();
|
|
3136
3244
|
c(this, "container");
|
|
3137
|
-
this.position = r, this.offset = s, this.
|
|
3245
|
+
this.position = r, this.offset = s, this._mapPane = n, this.container = document.createElement("div"), this.container.className = "label-container", this.container.style.position = "absolute", a && this.setZIndex(a), this.container.addEventListener("click", () => {
|
|
3138
3246
|
google.maps.event.trigger(this, "click");
|
|
3139
3247
|
}), this.setElement(e);
|
|
3140
3248
|
}
|
|
@@ -3147,7 +3255,7 @@ function Ti() {
|
|
|
3147
3255
|
}
|
|
3148
3256
|
onAdd() {
|
|
3149
3257
|
const e = this.getPanes() ?? E("onAdd回调中一定能够获取panes");
|
|
3150
|
-
|
|
3258
|
+
be.toGoogle(this._mapPane, e).appendChild(this.container);
|
|
3151
3259
|
}
|
|
3152
3260
|
draw() {
|
|
3153
3261
|
var e, r;
|
|
@@ -3198,7 +3306,7 @@ var he;
|
|
|
3198
3306
|
}
|
|
3199
3307
|
i.toElement = e;
|
|
3200
3308
|
})(he || (he = {}));
|
|
3201
|
-
class
|
|
3309
|
+
class mt extends ze {
|
|
3202
3310
|
constructor(e, r, s, n) {
|
|
3203
3311
|
super(e, r, s);
|
|
3204
3312
|
c(this, "icon");
|
|
@@ -3218,7 +3326,7 @@ class gt extends $e {
|
|
|
3218
3326
|
padding: "0px",
|
|
3219
3327
|
backgroundColor: "unset"
|
|
3220
3328
|
});
|
|
3221
|
-
const n = new
|
|
3329
|
+
const n = new mt(s, r, this, e.content);
|
|
3222
3330
|
return s.__label__ = n, n;
|
|
3223
3331
|
}
|
|
3224
3332
|
setContentInternal(e, r = !1) {
|
|
@@ -3298,16 +3406,17 @@ class gt extends $e {
|
|
|
3298
3406
|
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;
|
|
3299
3407
|
}
|
|
3300
3408
|
}
|
|
3301
|
-
class
|
|
3409
|
+
class ft extends at {
|
|
3302
3410
|
static create(t) {
|
|
3303
3411
|
var s;
|
|
3304
|
-
const e = this.coordType, r =
|
|
3412
|
+
const e = this.coordType, r = Oi(
|
|
3305
3413
|
he.toElement(t.content),
|
|
3306
3414
|
(s = t.position) == null ? void 0 : s.toGoogle(e),
|
|
3307
3415
|
t.offset,
|
|
3416
|
+
t.mapPane,
|
|
3308
3417
|
t.zIndex
|
|
3309
3418
|
);
|
|
3310
|
-
return new
|
|
3419
|
+
return new ft(r, e, this);
|
|
3311
3420
|
}
|
|
3312
3421
|
setZIndex(t) {
|
|
3313
3422
|
this.innerOverlay.setZIndex(t);
|
|
@@ -3329,11 +3438,11 @@ class mt extends ot {
|
|
|
3329
3438
|
this.innerOverlay.setOffset(t);
|
|
3330
3439
|
}
|
|
3331
3440
|
}
|
|
3332
|
-
const
|
|
3333
|
-
toGoogle: (i) => "url" in i ?
|
|
3334
|
-
toBaidu: (i) => "url" in i ?
|
|
3441
|
+
const Be = {
|
|
3442
|
+
toGoogle: (i) => "url" in i ? Ie.toGoogle(i) : Se.toGoogle(i),
|
|
3443
|
+
toBaidu: (i) => "url" in i ? Ie.toBaidu(i) : Se.toBaidu(i)
|
|
3335
3444
|
};
|
|
3336
|
-
var
|
|
3445
|
+
var Ie;
|
|
3337
3446
|
((i) => {
|
|
3338
3447
|
function t(r) {
|
|
3339
3448
|
return {
|
|
@@ -3357,8 +3466,8 @@ var ke;
|
|
|
3357
3466
|
});
|
|
3358
3467
|
}
|
|
3359
3468
|
i.toBaidu = e;
|
|
3360
|
-
})(
|
|
3361
|
-
var
|
|
3469
|
+
})(Ie || (Ie = {}));
|
|
3470
|
+
var Se;
|
|
3362
3471
|
((i) => {
|
|
3363
3472
|
function t(r) {
|
|
3364
3473
|
return {
|
|
@@ -3389,22 +3498,22 @@ var Be;
|
|
|
3389
3498
|
return s.__icon__ = r, s;
|
|
3390
3499
|
}
|
|
3391
3500
|
i.toBaidu = e;
|
|
3392
|
-
})(
|
|
3393
|
-
const
|
|
3501
|
+
})(Se || (Se = {}));
|
|
3502
|
+
const bs = {
|
|
3394
3503
|
CIRCLE: { baidu: () => BMap_Symbol_SHAPE_CIRCLE, google: () => google.maps.SymbolPath.CIRCLE },
|
|
3395
3504
|
BACKWARD_CLOSED_ARROW: { baidu: () => BMap_Symbol_SHAPE_BACKWARD_CLOSED_ARROW, google: () => google.maps.SymbolPath.BACKWARD_CLOSED_ARROW },
|
|
3396
3505
|
BACKWARD_OPEN_ARROW: { baidu: () => BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW, google: () => google.maps.SymbolPath.BACKWARD_OPEN_ARROW },
|
|
3397
3506
|
FORWARD_CLOSED_ARROW: { baidu: () => BMap_Symbol_SHAPE_FORWARD_CLOSED_ARROW, google: () => google.maps.SymbolPath.FORWARD_CLOSED_ARROW },
|
|
3398
3507
|
FORWARD_OPEN_ARROW: { baidu: () => BMap_Symbol_SHAPE_FORWARD_OPEN_ARROW, google: () => google.maps.SymbolPath.FORWARD_OPEN_ARROW }
|
|
3399
3508
|
};
|
|
3400
|
-
class
|
|
3509
|
+
class Me extends ze {
|
|
3401
3510
|
constructor(t, e, r, s) {
|
|
3402
3511
|
super(t, e, r), this.state = s;
|
|
3403
3512
|
}
|
|
3404
3513
|
static create(t) {
|
|
3405
3514
|
const e = this.coordType, r = t.icon, s = {
|
|
3406
3515
|
title: t.title,
|
|
3407
|
-
icon: r &&
|
|
3516
|
+
icon: r && Be.toBaidu(r),
|
|
3408
3517
|
enableClicking: t.clickable,
|
|
3409
3518
|
enableDragging: t.draggable,
|
|
3410
3519
|
// baidu的raiseOnDrag属性, 默认为false, 而我们的options.crossOnDrag默认为true, 故这里需要转换下
|
|
@@ -3413,7 +3522,7 @@ class _e extends $e {
|
|
|
3413
3522
|
}, n = new BMap.Marker(t.position.toBaidu(e), s);
|
|
3414
3523
|
t.zIndex !== void 0 && n.setZIndex(t.zIndex);
|
|
3415
3524
|
const a = t.clickable === void 0 ? !0 : t.clickable, h = !!t.draggable;
|
|
3416
|
-
return new
|
|
3525
|
+
return new Me(n, e, this, { clickable: a, draggable: h, zIndex: t.zIndex }).visibleOptionInternal(t.visible);
|
|
3417
3526
|
}
|
|
3418
3527
|
getPosition() {
|
|
3419
3528
|
return y.fromBaidu(this.innerOverlay.getPosition(), this.coordType);
|
|
@@ -3429,7 +3538,7 @@ class _e extends $e {
|
|
|
3429
3538
|
return this.innerOverlay.getTitle();
|
|
3430
3539
|
}
|
|
3431
3540
|
setIcon(t) {
|
|
3432
|
-
const e =
|
|
3541
|
+
const e = Be.toBaidu(t);
|
|
3433
3542
|
this.innerOverlay.setIcon(e);
|
|
3434
3543
|
const r = this.getLabel();
|
|
3435
3544
|
r && r.attachIcon(e);
|
|
@@ -3464,7 +3573,7 @@ class _e extends $e {
|
|
|
3464
3573
|
return (t = this.innerOverlay.getLabel()) == null ? void 0 : t.__label__;
|
|
3465
3574
|
}
|
|
3466
3575
|
}
|
|
3467
|
-
class
|
|
3576
|
+
class yt extends at {
|
|
3468
3577
|
constructor() {
|
|
3469
3578
|
super(...arguments);
|
|
3470
3579
|
c(this, "label");
|
|
@@ -3478,7 +3587,7 @@ class ft extends ot {
|
|
|
3478
3587
|
title: e.title,
|
|
3479
3588
|
zIndex: e.zIndex,
|
|
3480
3589
|
visible: e.visible,
|
|
3481
|
-
icon: s &&
|
|
3590
|
+
icon: s && Be.toGoogle(s),
|
|
3482
3591
|
clickable: e.clickable,
|
|
3483
3592
|
draggable: e.draggable,
|
|
3484
3593
|
// google的crossOnDrag和我们的crossOnDrag是匹配的, 不需要转换
|
|
@@ -3487,7 +3596,7 @@ class ft extends ot {
|
|
|
3487
3596
|
// InfoWindow相对marker的position的偏移量, 若不指定, 则偏移到marker的icon的上部中央
|
|
3488
3597
|
anchorPoint: new google.maps.Point(0, 0)
|
|
3489
3598
|
};
|
|
3490
|
-
return new
|
|
3599
|
+
return new yt(new google.maps.Marker(n), r, this);
|
|
3491
3600
|
}
|
|
3492
3601
|
getPosition() {
|
|
3493
3602
|
return y.fromGoogle(this.innerOverlay.getPosition(), this.coordType);
|
|
@@ -3502,7 +3611,7 @@ class ft extends ot {
|
|
|
3502
3611
|
return this.innerOverlay.getTitle() || "";
|
|
3503
3612
|
}
|
|
3504
3613
|
setIcon(e) {
|
|
3505
|
-
this.innerOverlay.setIcon(
|
|
3614
|
+
this.innerOverlay.setIcon(Be.toGoogle(e));
|
|
3506
3615
|
}
|
|
3507
3616
|
getIcon() {
|
|
3508
3617
|
return this.innerOverlay.getIcon();
|
|
@@ -3540,7 +3649,7 @@ class ft extends ot {
|
|
|
3540
3649
|
this.label = void 0, this.labelPositionListener = void 0, this.labelVisibleListener = void 0, this.labelMapChangedListener = void 0;
|
|
3541
3650
|
}
|
|
3542
3651
|
}
|
|
3543
|
-
class
|
|
3652
|
+
class vt extends pr {
|
|
3544
3653
|
constructor() {
|
|
3545
3654
|
super(...arguments);
|
|
3546
3655
|
c(this, "eventHubDelegate");
|
|
@@ -3565,7 +3674,7 @@ class yt extends ur {
|
|
|
3565
3674
|
this.isDoingSetPath = !0, this.innerOverlay.setPath(e), this.isDoingSetPath = !1;
|
|
3566
3675
|
}
|
|
3567
3676
|
createDelegate() {
|
|
3568
|
-
return this.eventHubDelegate = new
|
|
3677
|
+
return this.eventHubDelegate = new De(super.createDelegate(), {
|
|
3569
3678
|
types: [this.pathEditedEventType],
|
|
3570
3679
|
onListen: () => {
|
|
3571
3680
|
this.prevPath = this.innerOverlay.getPath(), this.innerOverlay.addEventListener("lineupdate", this.onLineUpdate);
|
|
@@ -3576,7 +3685,7 @@ class yt extends ur {
|
|
|
3576
3685
|
});
|
|
3577
3686
|
}
|
|
3578
3687
|
}
|
|
3579
|
-
class
|
|
3688
|
+
class _t extends vt {
|
|
3580
3689
|
constructor() {
|
|
3581
3690
|
super(...arguments);
|
|
3582
3691
|
c(this, "pathEditedEventType", "path-edited");
|
|
@@ -3589,7 +3698,7 @@ class vt extends yt {
|
|
|
3589
3698
|
strokeOpacity: e.strokeOpacity,
|
|
3590
3699
|
strokeWeight: e.strokeWeight
|
|
3591
3700
|
});
|
|
3592
|
-
return new
|
|
3701
|
+
return new _t(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
|
|
3593
3702
|
}
|
|
3594
3703
|
getPath() {
|
|
3595
3704
|
return this.innerOverlay.getPath().map((e) => y.fromBaidu(e, this.coordType));
|
|
@@ -3598,7 +3707,7 @@ class vt extends yt {
|
|
|
3598
3707
|
this.coordType = this.map.coordType, this.setPathInternal(e.map((r) => r.toBaidu(this.coordType)));
|
|
3599
3708
|
}
|
|
3600
3709
|
}
|
|
3601
|
-
class
|
|
3710
|
+
class bt extends Ne {
|
|
3602
3711
|
constructor() {
|
|
3603
3712
|
super(...arguments);
|
|
3604
3713
|
c(this, "pathChangedListeners");
|
|
@@ -3614,7 +3723,7 @@ class _t extends De {
|
|
|
3614
3723
|
strokeWeight: e.strokeWeight,
|
|
3615
3724
|
visible: e.visible
|
|
3616
3725
|
});
|
|
3617
|
-
return new
|
|
3726
|
+
return new bt(s, r, this);
|
|
3618
3727
|
}
|
|
3619
3728
|
setupPathChangedListeners() {
|
|
3620
3729
|
const e = () => {
|
|
@@ -3628,7 +3737,7 @@ class _t extends De {
|
|
|
3628
3737
|
(e = this.pathChangedListeners) == null || e.forEach((r) => r.remove()), this.pathChangedListeners = void 0;
|
|
3629
3738
|
}
|
|
3630
3739
|
createDelegate() {
|
|
3631
|
-
return this.eventHubDelegate = new
|
|
3740
|
+
return this.eventHubDelegate = new De(super.createDelegate(), {
|
|
3632
3741
|
types: ["path-edited"],
|
|
3633
3742
|
onListen: () => this.setupPathChangedListeners(),
|
|
3634
3743
|
onCancel: () => this.clearPathChangedListeners()
|
|
@@ -3645,7 +3754,7 @@ class _t extends De {
|
|
|
3645
3754
|
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();
|
|
3646
3755
|
}
|
|
3647
3756
|
}
|
|
3648
|
-
class
|
|
3757
|
+
class Mt extends vt {
|
|
3649
3758
|
constructor() {
|
|
3650
3759
|
super(...arguments);
|
|
3651
3760
|
c(this, "pathEditedEventType", "paths-edited");
|
|
@@ -3662,7 +3771,7 @@ class bt extends yt {
|
|
|
3662
3771
|
fillColor: e.fillColor,
|
|
3663
3772
|
fillOpacity: e.fillOpacity
|
|
3664
3773
|
});
|
|
3665
|
-
return new
|
|
3774
|
+
return new Mt(n, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
|
|
3666
3775
|
}
|
|
3667
3776
|
getPaths() {
|
|
3668
3777
|
return [this.innerOverlay.getPath().map((e) => y.fromBaidu(e, this.coordType))];
|
|
@@ -3671,7 +3780,7 @@ class bt extends yt {
|
|
|
3671
3780
|
e.length > 1 && console.warn("baidu不支持多path, 只会显示paths[0]"), this.coordType = this.map.coordType, this.setPathInternal((e[0] || []).map((r) => r.toBaidu(this.coordType)));
|
|
3672
3781
|
}
|
|
3673
3782
|
}
|
|
3674
|
-
class
|
|
3783
|
+
class Tt extends Ne {
|
|
3675
3784
|
constructor() {
|
|
3676
3785
|
super(...arguments);
|
|
3677
3786
|
c(this, "pathChangedListeners");
|
|
@@ -3689,7 +3798,7 @@ class Mt extends De {
|
|
|
3689
3798
|
fillOpacity: e.fillOpacity,
|
|
3690
3799
|
visible: e.visible
|
|
3691
3800
|
});
|
|
3692
|
-
return new
|
|
3801
|
+
return new Tt(s, r, this);
|
|
3693
3802
|
}
|
|
3694
3803
|
setupPathChangedListeners() {
|
|
3695
3804
|
const e = () => {
|
|
@@ -3705,7 +3814,7 @@ class Mt extends De {
|
|
|
3705
3814
|
(e = this.pathChangedListeners) == null || e.forEach((r) => r.remove()), this.pathChangedListeners = void 0;
|
|
3706
3815
|
}
|
|
3707
3816
|
createDelegate() {
|
|
3708
|
-
return this.eventHubDelegate = new
|
|
3817
|
+
return this.eventHubDelegate = new De(super.createDelegate(), {
|
|
3709
3818
|
types: ["paths-edited"],
|
|
3710
3819
|
onListen: () => this.setupPathChangedListeners(),
|
|
3711
3820
|
onCancel: () => this.clearPathChangedListeners()
|
|
@@ -3725,7 +3834,7 @@ class Mt extends De {
|
|
|
3725
3834
|
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();
|
|
3726
3835
|
}
|
|
3727
3836
|
}
|
|
3728
|
-
class
|
|
3837
|
+
class Ot extends vt {
|
|
3729
3838
|
constructor(e, r, s, n) {
|
|
3730
3839
|
super(e, r, s, n);
|
|
3731
3840
|
c(this, "pathEditedEventType", "bounds-changed");
|
|
@@ -3740,7 +3849,7 @@ class Tt extends yt {
|
|
|
3740
3849
|
if (r.length === 4)
|
|
3741
3850
|
if (a > r.length) {
|
|
3742
3851
|
for (let o = 0; o < a; o++)
|
|
3743
|
-
if (r[o] == null || !
|
|
3852
|
+
if (r[o] == null || !Rt.equals(s[o], r[o])) {
|
|
3744
3853
|
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];
|
|
3745
3854
|
let _;
|
|
3746
3855
|
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, _];
|
|
@@ -3748,7 +3857,7 @@ class Tt extends yt {
|
|
|
3748
3857
|
}
|
|
3749
3858
|
} else if (a === r.length) {
|
|
3750
3859
|
for (let o = 0; o < a; o++)
|
|
3751
|
-
if (!
|
|
3860
|
+
if (!Rt.equals(s[o], r[o])) {
|
|
3752
3861
|
n = [
|
|
3753
3862
|
s[o],
|
|
3754
3863
|
s[(o + 2) % 4]
|
|
@@ -3773,7 +3882,7 @@ class Tt extends yt {
|
|
|
3773
3882
|
fillColor: e.fillColor,
|
|
3774
3883
|
fillOpacity: e.fillOpacity
|
|
3775
3884
|
});
|
|
3776
|
-
return new
|
|
3885
|
+
return new Ot(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
|
|
3777
3886
|
}
|
|
3778
3887
|
getBounds() {
|
|
3779
3888
|
return I.fromBaidu(this.innerOverlay.getBounds(), this.coordType);
|
|
@@ -3785,7 +3894,7 @@ class Tt extends yt {
|
|
|
3785
3894
|
}) : this.setPathInternal(r.map((s) => s.toBaidu(this.coordType)));
|
|
3786
3895
|
}
|
|
3787
3896
|
}
|
|
3788
|
-
class
|
|
3897
|
+
class Ct extends Ne {
|
|
3789
3898
|
static create(t) {
|
|
3790
3899
|
const e = this.coordType, r = new google.maps.Rectangle({
|
|
3791
3900
|
bounds: t.bounds.toGoogle(e),
|
|
@@ -3798,7 +3907,7 @@ class Ot extends De {
|
|
|
3798
3907
|
fillOpacity: t.fillOpacity,
|
|
3799
3908
|
visible: t.visible
|
|
3800
3909
|
});
|
|
3801
|
-
return new
|
|
3910
|
+
return new Ct(r, e, this);
|
|
3802
3911
|
}
|
|
3803
3912
|
getBounds() {
|
|
3804
3913
|
return I.fromGoogle(this.innerOverlay.getBounds() ?? Y.BOUNDS_ZERO, this.coordType);
|
|
@@ -3809,24 +3918,24 @@ class Ot extends De {
|
|
|
3809
3918
|
}
|
|
3810
3919
|
}
|
|
3811
3920
|
const X = 1;
|
|
3812
|
-
class
|
|
3921
|
+
class wi extends ot {
|
|
3813
3922
|
constructor(e, r) {
|
|
3814
3923
|
var s;
|
|
3815
3924
|
super(e);
|
|
3816
3925
|
c(this, "buildInMapTypeId2BIMT");
|
|
3817
3926
|
c(this, "baiduMapType2BIMT");
|
|
3818
3927
|
c(this, "map");
|
|
3819
|
-
c(this, "createLabel",
|
|
3820
|
-
c(this, "createCircle",
|
|
3821
|
-
c(this, "createPolygon",
|
|
3822
|
-
c(this, "createPolyline",
|
|
3823
|
-
c(this, "createRectangle",
|
|
3824
|
-
c(this, "createInfoWindow",
|
|
3825
|
-
c(this, "createInfoBox",
|
|
3826
|
-
c(this, "createMarker",
|
|
3827
|
-
c(this, "createMapTypeControl",
|
|
3828
|
-
c(this, "createZoomControl",
|
|
3829
|
-
c(this, "createScaleControl",
|
|
3928
|
+
c(this, "createLabel", mt.create);
|
|
3929
|
+
c(this, "createCircle", lt.create);
|
|
3930
|
+
c(this, "createPolygon", Mt.create);
|
|
3931
|
+
c(this, "createPolyline", _t.create);
|
|
3932
|
+
c(this, "createRectangle", Ot.create);
|
|
3933
|
+
c(this, "createInfoWindow", dt.create);
|
|
3934
|
+
c(this, "createInfoBox", pt.create);
|
|
3935
|
+
c(this, "createMarker", Me.create);
|
|
3936
|
+
c(this, "createMapTypeControl", et.create);
|
|
3937
|
+
c(this, "createZoomControl", it.create);
|
|
3938
|
+
c(this, "createScaleControl", tt.create);
|
|
3830
3939
|
this.buildInMapTypeId2BIMT = S.BUILD_IN_MAP_TYPES.getValueMap(B.prototype.getId), this.baiduMapType2BIMT = S.BUILD_IN_MAP_TYPES.getValueMap(B.prototype.asBaiduMapType), this.map = new BMap.Map(e, {
|
|
3831
3940
|
minZoom: r.minZoom && r.minZoom + X,
|
|
3832
3941
|
maxZoom: r.maxZoom && r.maxZoom + X,
|
|
@@ -3841,15 +3950,15 @@ class Oi extends nt {
|
|
|
3841
3950
|
a && (console.debug("remove:info-box", a), this.map.removeOverlay(a));
|
|
3842
3951
|
});
|
|
3843
3952
|
}
|
|
3844
|
-
setGestureHandling(e =
|
|
3845
|
-
switch (e ===
|
|
3846
|
-
case
|
|
3953
|
+
setGestureHandling(e = Z.auto) {
|
|
3954
|
+
switch (e === Z.auto && (e = this.element.parentElement && qe.isScrollable(this.element.parentElement) ? Z.cooperative : Z.greedy), e) {
|
|
3955
|
+
case Z.cooperative:
|
|
3847
3956
|
this.map.disableScrollWheelZoom(), this.map.enableDragging(), this.map.enableDoubleClickZoom();
|
|
3848
3957
|
break;
|
|
3849
|
-
case
|
|
3958
|
+
case Z.greedy:
|
|
3850
3959
|
this.map.enableScrollWheelZoom(), this.map.enableDragging(), this.map.enableDoubleClickZoom();
|
|
3851
3960
|
break;
|
|
3852
|
-
case
|
|
3961
|
+
case Z.none:
|
|
3853
3962
|
this.map.disableDragging(), this.map.disableScrollWheelZoom(), this.map.disableDoubleClickZoom();
|
|
3854
3963
|
break;
|
|
3855
3964
|
}
|
|
@@ -3975,36 +4084,36 @@ class Oi extends nt {
|
|
|
3975
4084
|
e.inner && (se(e.inner instanceof BMap.Control, `control.inner(${e.inner})需要是BMap.Control`), this.map.removeControl(e.inner));
|
|
3976
4085
|
}
|
|
3977
4086
|
createMarkerClusterer(e) {
|
|
3978
|
-
return new
|
|
4087
|
+
return new ci(this, e);
|
|
3979
4088
|
}
|
|
3980
4089
|
createAutocomplete(e) {
|
|
3981
|
-
return new
|
|
4090
|
+
return new ni(this, e);
|
|
3982
4091
|
}
|
|
3983
4092
|
createSearchBox(e) {
|
|
3984
|
-
return new
|
|
4093
|
+
return new mi(this, e);
|
|
3985
4094
|
}
|
|
3986
4095
|
createPlaceService(e) {
|
|
3987
|
-
return new
|
|
4096
|
+
return new pi(this, e);
|
|
3988
4097
|
}
|
|
3989
4098
|
}
|
|
3990
|
-
class
|
|
4099
|
+
class Ei extends ot {
|
|
3991
4100
|
constructor(e, r) {
|
|
3992
4101
|
var n;
|
|
3993
4102
|
super(e);
|
|
3994
4103
|
c(this, "buildInMapTypeId2BIMT");
|
|
3995
4104
|
c(this, "googleMapTypeId2BIMT");
|
|
3996
4105
|
c(this, "map");
|
|
3997
|
-
c(this, "createLabel",
|
|
3998
|
-
c(this, "createCircle",
|
|
3999
|
-
c(this, "createPolygon",
|
|
4000
|
-
c(this, "createPolyline",
|
|
4001
|
-
c(this, "createRectangle",
|
|
4002
|
-
c(this, "createInfoWindow",
|
|
4003
|
-
c(this, "createInfoBox",
|
|
4004
|
-
c(this, "createMarker",
|
|
4005
|
-
c(this, "createMapTypeControl",
|
|
4006
|
-
c(this, "createZoomControl",
|
|
4007
|
-
c(this, "createScaleControl",
|
|
4106
|
+
c(this, "createLabel", ft.create);
|
|
4107
|
+
c(this, "createCircle", ht.create);
|
|
4108
|
+
c(this, "createPolygon", Tt.create);
|
|
4109
|
+
c(this, "createPolyline", bt.create);
|
|
4110
|
+
c(this, "createRectangle", Ct.create);
|
|
4111
|
+
c(this, "createInfoWindow", ut.create);
|
|
4112
|
+
c(this, "createInfoBox", gt.create);
|
|
4113
|
+
c(this, "createMarker", yt.create);
|
|
4114
|
+
c(this, "createMapTypeControl", Le.create);
|
|
4115
|
+
c(this, "createZoomControl", st.create);
|
|
4116
|
+
c(this, "createScaleControl", rt.create);
|
|
4008
4117
|
this.mapOptions = r, this.buildInMapTypeId2BIMT = S.BUILD_IN_MAP_TYPES.getValueMap(B.prototype.getId), this.googleMapTypeId2BIMT = S.BUILD_IN_MAP_TYPES.getValueMap(B.prototype.getGoogleMapTypeId);
|
|
4009
4118
|
const s = r.buildInMapTypeId && this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId);
|
|
4010
4119
|
this.map = new google.maps.Map(e, {
|
|
@@ -4133,27 +4242,27 @@ class Ci extends nt {
|
|
|
4133
4242
|
}
|
|
4134
4243
|
}
|
|
4135
4244
|
createMarkerClusterer(e) {
|
|
4136
|
-
return new
|
|
4245
|
+
return new di(this, e);
|
|
4137
4246
|
}
|
|
4138
4247
|
createAutocomplete(e) {
|
|
4139
|
-
return new
|
|
4248
|
+
return new si(this, e);
|
|
4140
4249
|
}
|
|
4141
4250
|
createSearchBox(e) {
|
|
4142
|
-
return new
|
|
4251
|
+
return new gi(this, e);
|
|
4143
4252
|
}
|
|
4144
4253
|
createPlaceService(e) {
|
|
4145
|
-
return new
|
|
4254
|
+
return new ui(this, e);
|
|
4146
4255
|
}
|
|
4147
4256
|
}
|
|
4148
|
-
class
|
|
4257
|
+
class Li extends ot {
|
|
4149
4258
|
constructor(e, r) {
|
|
4150
4259
|
var a;
|
|
4151
4260
|
super(e);
|
|
4152
4261
|
c(this, "map");
|
|
4153
4262
|
c(this, "defaultLayers");
|
|
4154
4263
|
this.mapOptions = r;
|
|
4155
|
-
const s =
|
|
4156
|
-
|
|
4264
|
+
const s = Ft().here;
|
|
4265
|
+
Pe.includes(s.version) || E(`不支持${s.version}, HereMap当前只支持如下版本: ${Pe}`);
|
|
4157
4266
|
const n = new H.service.Platform({
|
|
4158
4267
|
app_id: s.key.split(",")[0],
|
|
4159
4268
|
app_code: s.key.split(",")[1]
|
|
@@ -4294,34 +4403,34 @@ class wi extends nt {
|
|
|
4294
4403
|
throw new Error("Method not implemented.");
|
|
4295
4404
|
}
|
|
4296
4405
|
}
|
|
4297
|
-
var z = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here = "here", i))(z || {}),
|
|
4406
|
+
var z = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here = "here", i))(z || {}), Ke;
|
|
4298
4407
|
((i) => {
|
|
4299
4408
|
function t(e, r, s) {
|
|
4300
|
-
const n =
|
|
4409
|
+
const n = Ye.create(s);
|
|
4301
4410
|
switch (e) {
|
|
4302
4411
|
case "google":
|
|
4303
|
-
return new
|
|
4412
|
+
return new Ei(r, n);
|
|
4304
4413
|
case "baidu":
|
|
4305
|
-
return new Oi(r, n);
|
|
4306
|
-
case "here":
|
|
4307
4414
|
return new wi(r, n);
|
|
4415
|
+
case "here":
|
|
4416
|
+
return new Li(r, n);
|
|
4308
4417
|
}
|
|
4309
4418
|
}
|
|
4310
4419
|
i.createMap = t;
|
|
4311
|
-
})(
|
|
4312
|
-
function
|
|
4313
|
-
const e = window, r =
|
|
4420
|
+
})(Ke || (Ke = {}));
|
|
4421
|
+
function xi({ type: i, config: t }) {
|
|
4422
|
+
const e = window, r = Pi(i);
|
|
4314
4423
|
if (e[r])
|
|
4315
4424
|
return Promise.resolve();
|
|
4316
4425
|
switch (i !== z.here && !t.key && E(`请先配置${i}地图的key`), i) {
|
|
4317
4426
|
case z.google:
|
|
4318
|
-
return {}.VITE_FALSE ? (
|
|
4427
|
+
return {}.VITE_FALSE ? (ti({
|
|
4319
4428
|
key: t.key,
|
|
4320
4429
|
v: "3.52"
|
|
4321
4430
|
// v: config.version,
|
|
4322
|
-
}), google.maps.importLibrary("core")) :
|
|
4431
|
+
}), google.maps.importLibrary("core")) : $t(`https://maps.googleapis.com/maps/api/js?key=${t.key}&language=${t.language}&v=${t.version}&libraries=${t.libraries.join(",")}`);
|
|
4323
4432
|
case z.baidu:
|
|
4324
|
-
return
|
|
4433
|
+
return $t(`https://api.map.baidu.com/api?v=${t.version}&ak=${t.key}`);
|
|
4325
4434
|
case z.here:
|
|
4326
4435
|
return ue(de("core", t.version)).then(() => Promise.all([
|
|
4327
4436
|
// 其他大多数模块都可以同时载入
|
|
@@ -4331,13 +4440,13 @@ function Ei({ type: i, config: t }) {
|
|
|
4331
4440
|
ue(de("ui", t.version))
|
|
4332
4441
|
])).catch((s) => (delete e[r], Promise.reject(s)));
|
|
4333
4442
|
default:
|
|
4334
|
-
|
|
4443
|
+
Fe(i);
|
|
4335
4444
|
}
|
|
4336
4445
|
}
|
|
4337
|
-
function de(i, t =
|
|
4446
|
+
function de(i, t = Pe[0]) {
|
|
4338
4447
|
return `https://js.api.here.com/v3/${t}/mapsjs-${i}.js`;
|
|
4339
4448
|
}
|
|
4340
|
-
function
|
|
4449
|
+
function Pi(i) {
|
|
4341
4450
|
switch (i) {
|
|
4342
4451
|
case z.google:
|
|
4343
4452
|
return "google";
|
|
@@ -4347,10 +4456,10 @@ function Li(i) {
|
|
|
4347
4456
|
return "H";
|
|
4348
4457
|
}
|
|
4349
4458
|
}
|
|
4350
|
-
let
|
|
4351
|
-
function
|
|
4459
|
+
let ki = 0;
|
|
4460
|
+
function $t(i, t = "callback") {
|
|
4352
4461
|
return new Promise((e, r) => {
|
|
4353
|
-
const s = `__callback${
|
|
4462
|
+
const s = `__callback${ki++}`;
|
|
4354
4463
|
window[s] = e;
|
|
4355
4464
|
const n = document.createElement("script");
|
|
4356
4465
|
n.src = `${i}&${t}=${s}`, n.onerror = r, document.body.appendChild(n);
|
|
@@ -4362,14 +4471,14 @@ function ue(i) {
|
|
|
4362
4471
|
r.src = i, r.onload = t, r.onerror = e, document.body.appendChild(r);
|
|
4363
4472
|
});
|
|
4364
4473
|
}
|
|
4365
|
-
function
|
|
4474
|
+
function N(i, t) {
|
|
4366
4475
|
return {
|
|
4367
4476
|
type: String,
|
|
4368
4477
|
default: t,
|
|
4369
4478
|
validator: (e) => Object.values(i).includes(e)
|
|
4370
4479
|
};
|
|
4371
4480
|
}
|
|
4372
|
-
function
|
|
4481
|
+
function Bi(i, t) {
|
|
4373
4482
|
return {
|
|
4374
4483
|
type: String,
|
|
4375
4484
|
default: t,
|
|
@@ -4388,7 +4497,7 @@ function m(i, t) {
|
|
|
4388
4497
|
default: t
|
|
4389
4498
|
};
|
|
4390
4499
|
}
|
|
4391
|
-
function
|
|
4500
|
+
function Ms(i) {
|
|
4392
4501
|
const t = {};
|
|
4393
4502
|
return Object.entries(i).forEach(([e, r]) => {
|
|
4394
4503
|
const s = `__${e}`;
|
|
@@ -4411,31 +4520,31 @@ const pe = {
|
|
|
4411
4520
|
get: me,
|
|
4412
4521
|
set: me
|
|
4413
4522
|
};
|
|
4414
|
-
function
|
|
4523
|
+
function Ii(i) {
|
|
4415
4524
|
return Object.keys(i).forEach((t) => {
|
|
4416
4525
|
const e = i[t];
|
|
4417
4526
|
let r = !1;
|
|
4418
4527
|
typeof e == "function" ? (pe.get = e, pe.set = me, r = !0) : typeof e == "object" && typeof e.get == "function" && (pe.get = e.get, pe.set = e.set, r = !0), r && (i[t] = Object.defineProperty(i, t, pe));
|
|
4419
4528
|
}), i;
|
|
4420
4529
|
}
|
|
4421
|
-
function
|
|
4422
|
-
return
|
|
4530
|
+
function Ts(i) {
|
|
4531
|
+
return Ii(i);
|
|
4423
4532
|
}
|
|
4424
|
-
function
|
|
4425
|
-
return
|
|
4533
|
+
function mr() {
|
|
4534
|
+
return Ve();
|
|
4426
4535
|
}
|
|
4427
|
-
function
|
|
4536
|
+
function Ee(i, t) {
|
|
4428
4537
|
const e = i.$options[t];
|
|
4429
4538
|
if (e)
|
|
4430
4539
|
for (const r of e)
|
|
4431
4540
|
r.call(i);
|
|
4432
4541
|
}
|
|
4433
|
-
function
|
|
4542
|
+
function Os(i, t) {
|
|
4434
4543
|
for (const e of i)
|
|
4435
4544
|
if (e.$options.name === t.name)
|
|
4436
4545
|
return e;
|
|
4437
4546
|
}
|
|
4438
|
-
function
|
|
4547
|
+
function Cs(i, t) {
|
|
4439
4548
|
if (!i.default)
|
|
4440
4549
|
return;
|
|
4441
4550
|
const e = i.default();
|
|
@@ -4443,7 +4552,7 @@ function Os(i, t) {
|
|
|
4443
4552
|
if ((r == null ? void 0 : r.type).name === t.name)
|
|
4444
4553
|
return r;
|
|
4445
4554
|
}
|
|
4446
|
-
function
|
|
4555
|
+
function Si(i, t) {
|
|
4447
4556
|
const e = {}, r = {}, s = {};
|
|
4448
4557
|
return Object.keys(i).forEach((n) => {
|
|
4449
4558
|
n.startsWith("on") ? e[ve.pascal2kebab(n.substring(2))] = i[n] : r[n] = i[n];
|
|
@@ -4459,12 +4568,12 @@ function Bi(i, t) {
|
|
|
4459
4568
|
};
|
|
4460
4569
|
}
|
|
4461
4570
|
function F(i, t) {
|
|
4462
|
-
return
|
|
4571
|
+
return zt(() => Si(i, t));
|
|
4463
4572
|
}
|
|
4464
4573
|
function L() {
|
|
4465
4574
|
return Function;
|
|
4466
4575
|
}
|
|
4467
|
-
const
|
|
4576
|
+
const ws = () => {
|
|
4468
4577
|
let i, t;
|
|
4469
4578
|
function e(s) {
|
|
4470
4579
|
console.log(s), i = s && s.type, t = Date.now();
|
|
@@ -4473,33 +4582,33 @@ const Cs = () => {
|
|
|
4473
4582
|
((s && s.type) !== i || Date.now() - (t ?? 0) > 1e3) && e(s);
|
|
4474
4583
|
}
|
|
4475
4584
|
return { eventLog: e, eventLogLess: r };
|
|
4476
|
-
},
|
|
4477
|
-
inject: [
|
|
4585
|
+
}, wt = "$map", Te = "onCreate", Oe = "onDestroy", P = C({
|
|
4586
|
+
inject: [wt],
|
|
4478
4587
|
mounted() {
|
|
4479
|
-
|
|
4588
|
+
Ee(this, Te);
|
|
4480
4589
|
},
|
|
4481
4590
|
beforeUnmount() {
|
|
4482
|
-
|
|
4591
|
+
Ee(this, Oe);
|
|
4483
4592
|
},
|
|
4484
4593
|
methods: {
|
|
4485
4594
|
recreate() {
|
|
4486
|
-
|
|
4595
|
+
Ee(this, Oe), Ee(this, Te);
|
|
4487
4596
|
}
|
|
4488
4597
|
},
|
|
4489
4598
|
render() {
|
|
4490
|
-
return
|
|
4599
|
+
return mr();
|
|
4491
4600
|
}
|
|
4492
|
-
}),
|
|
4601
|
+
}), Ai = C({
|
|
4493
4602
|
name: "tg-map",
|
|
4494
4603
|
provide() {
|
|
4495
4604
|
return {
|
|
4496
|
-
[
|
|
4605
|
+
[wt]: zt(() => this.map)
|
|
4497
4606
|
};
|
|
4498
4607
|
},
|
|
4499
4608
|
inheritAttrs: !1,
|
|
4500
4609
|
props: {
|
|
4501
4610
|
/** type没做响应式, 但外部可以把type作为tg-map的key, 让type修改时完全重建tg-map */
|
|
4502
|
-
type:
|
|
4611
|
+
type: N(z, z.google),
|
|
4503
4612
|
/**
|
|
4504
4613
|
* 当对该属性使用双向绑定时, 改变center将触发update:center又反过来触发center改变, 最终导致无限循环...
|
|
4505
4614
|
* 当前通过setCenter()时判断center是否有改变来避免该问题, 但为了避免可能存在的问题, 另外设计了如下机制:
|
|
@@ -4526,12 +4635,12 @@ const Cs = () => {
|
|
|
4526
4635
|
*/
|
|
4527
4636
|
lastCenter: m(y),
|
|
4528
4637
|
zoom: R(Number),
|
|
4529
|
-
infoWindowMode:
|
|
4530
|
-
gestureHandling: Z
|
|
4638
|
+
infoWindowMode: Bi(vi),
|
|
4639
|
+
gestureHandling: N(Z),
|
|
4531
4640
|
minZoom: m(Number),
|
|
4532
4641
|
maxZoom: m(Number),
|
|
4533
4642
|
mapStyle: m(Object),
|
|
4534
|
-
mapTypeId:
|
|
4643
|
+
mapTypeId: N(Xt),
|
|
4535
4644
|
/** 地图类型对象, 优先级比mapTypeId高 */
|
|
4536
4645
|
mapType: m(Object),
|
|
4537
4646
|
hideLogo: m(Boolean),
|
|
@@ -4554,7 +4663,7 @@ const Cs = () => {
|
|
|
4554
4663
|
},
|
|
4555
4664
|
data() {
|
|
4556
4665
|
return {
|
|
4557
|
-
map:
|
|
4666
|
+
map: Ue(),
|
|
4558
4667
|
isDestroyed: !1
|
|
4559
4668
|
};
|
|
4560
4669
|
},
|
|
@@ -4592,7 +4701,7 @@ const Cs = () => {
|
|
|
4592
4701
|
async mounted() {
|
|
4593
4702
|
const i = this.type;
|
|
4594
4703
|
try {
|
|
4595
|
-
await
|
|
4704
|
+
await xi({ type: i, config: Ft()[i] });
|
|
4596
4705
|
} catch (s) {
|
|
4597
4706
|
this.$emit("error", s);
|
|
4598
4707
|
return;
|
|
@@ -4601,7 +4710,7 @@ const Cs = () => {
|
|
|
4601
4710
|
console.warn(`tg-map(type=${i})已销毁, 不需要继续执行`);
|
|
4602
4711
|
return;
|
|
4603
4712
|
}
|
|
4604
|
-
const t =
|
|
4713
|
+
const t = Ke.createMap(
|
|
4605
4714
|
i,
|
|
4606
4715
|
this.$refs.map,
|
|
4607
4716
|
/* options: */
|
|
@@ -4616,12 +4725,12 @@ const Cs = () => {
|
|
|
4616
4725
|
buildInMapTypeId: this.mapTypeId
|
|
4617
4726
|
}
|
|
4618
4727
|
);
|
|
4619
|
-
if (this.map =
|
|
4728
|
+
if (this.map = Tr(t), this.mapType && t.setMapType(this.mapType), "ready" in this.attrs.listeners && console.error("地图载入完成的事件已经从ready改为了load, 请手动修改"), V(
|
|
4620
4729
|
this.attrs.listeners,
|
|
4621
4730
|
t,
|
|
4622
4731
|
/* excludes: */
|
|
4623
4732
|
["load"]
|
|
4624
|
-
), this.$emit("load", t),
|
|
4733
|
+
), this.$emit("load", t), Nt([
|
|
4625
4734
|
() => this.zoom,
|
|
4626
4735
|
() => this.center
|
|
4627
4736
|
//
|
|
@@ -4655,22 +4764,22 @@ const U = (i, t) => {
|
|
|
4655
4764
|
e[r] = s;
|
|
4656
4765
|
return e;
|
|
4657
4766
|
};
|
|
4658
|
-
function
|
|
4767
|
+
function Ri(i, t, e, r, s, n) {
|
|
4659
4768
|
return W(), j("div", ce({ class: "tg-map" }, i.attrs.binds), [
|
|
4660
|
-
|
|
4769
|
+
Or("div", {
|
|
4661
4770
|
ref: "map",
|
|
4662
|
-
class:
|
|
4771
|
+
class: Re({
|
|
4663
4772
|
"tg-map__map": !0,
|
|
4664
4773
|
[`tg-map__map--hide-logo-${i.type}`]: i.hideLogo
|
|
4665
4774
|
})
|
|
4666
4775
|
}, null, 2),
|
|
4667
|
-
|
|
4668
|
-
i.map ?
|
|
4669
|
-
|
|
4776
|
+
Ve("", !0),
|
|
4777
|
+
i.map ? G(i.$slots, "default", { key: 1 }) : Ve("", !0),
|
|
4778
|
+
G(i.$slots, "overlay")
|
|
4670
4779
|
], 16);
|
|
4671
4780
|
}
|
|
4672
|
-
const
|
|
4673
|
-
function
|
|
4781
|
+
const $i = /* @__PURE__ */ U(Ai, [["render", Ri]]);
|
|
4782
|
+
function Di(i) {
|
|
4674
4783
|
if (i == null)
|
|
4675
4784
|
return;
|
|
4676
4785
|
let t;
|
|
@@ -4681,7 +4790,7 @@ function Ri(i) {
|
|
|
4681
4790
|
t = i;
|
|
4682
4791
|
return `${t}px`;
|
|
4683
4792
|
}
|
|
4684
|
-
const
|
|
4793
|
+
const zi = C({
|
|
4685
4794
|
name: "tg-map-widget",
|
|
4686
4795
|
props: {
|
|
4687
4796
|
left: {
|
|
@@ -4707,22 +4816,22 @@ const $i = C({
|
|
|
4707
4816
|
}
|
|
4708
4817
|
},
|
|
4709
4818
|
methods: {
|
|
4710
|
-
dimen:
|
|
4819
|
+
dimen: Di
|
|
4711
4820
|
}
|
|
4712
4821
|
});
|
|
4713
|
-
function
|
|
4822
|
+
function Ni(i, t, e, r, s, n) {
|
|
4714
4823
|
return W(), j("div", {
|
|
4715
|
-
class:
|
|
4716
|
-
style:
|
|
4824
|
+
class: Re(i.$options.name),
|
|
4825
|
+
style: Cr({ left: i.dimen(i.left), top: i.dimen(i.topValue), right: i.dimen(i.right), bottom: i.dimen(i.bottom) })
|
|
4717
4826
|
}, [
|
|
4718
|
-
|
|
4827
|
+
G(i.$slots, "default")
|
|
4719
4828
|
], 6);
|
|
4720
4829
|
}
|
|
4721
|
-
const
|
|
4830
|
+
const Es = /* @__PURE__ */ U(zi, [["render", Ni]]), Gi = C({
|
|
4722
4831
|
name: "tg-custom-control",
|
|
4723
4832
|
mixins: [P],
|
|
4724
4833
|
props: {
|
|
4725
|
-
position:
|
|
4834
|
+
position: N(k, k.RIGHT_BOTTOM)
|
|
4726
4835
|
},
|
|
4727
4836
|
setup() {
|
|
4728
4837
|
return {
|
|
@@ -4735,8 +4844,8 @@ const ws = /* @__PURE__ */ U($i, [["render", Di]]), zi = C({
|
|
|
4735
4844
|
}
|
|
4736
4845
|
},
|
|
4737
4846
|
onCreate() {
|
|
4738
|
-
|
|
4739
|
-
const { $el: i } = this, t = class extends
|
|
4847
|
+
Ce(this.$parent, $i) || console.warn("请将tg-custom-control放到tg-map中");
|
|
4848
|
+
const { $el: i } = this, t = class extends Qr {
|
|
4740
4849
|
onCreateElement() {
|
|
4741
4850
|
return i;
|
|
4742
4851
|
}
|
|
@@ -4747,19 +4856,19 @@ const ws = /* @__PURE__ */ U($i, [["render", Di]]), zi = C({
|
|
|
4747
4856
|
this.$map.removeCustomControl(this.control);
|
|
4748
4857
|
}
|
|
4749
4858
|
});
|
|
4750
|
-
function
|
|
4859
|
+
function Zi(i, t, e, r, s, n) {
|
|
4751
4860
|
return W(), j("div", {
|
|
4752
|
-
class:
|
|
4861
|
+
class: Re(i.$options.name)
|
|
4753
4862
|
}, [
|
|
4754
|
-
|
|
4863
|
+
G(i.$slots, "default")
|
|
4755
4864
|
], 2);
|
|
4756
4865
|
}
|
|
4757
|
-
const
|
|
4866
|
+
const Ls = /* @__PURE__ */ U(Gi, [["render", Zi]]), xs = C({
|
|
4758
4867
|
name: "tg-map-type-control",
|
|
4759
4868
|
mixins: [P],
|
|
4760
4869
|
props: {
|
|
4761
|
-
position:
|
|
4762
|
-
type:
|
|
4870
|
+
position: N(k, k.TOP_LEFT),
|
|
4871
|
+
type: N(Jt),
|
|
4763
4872
|
mapTypes: m(Array)
|
|
4764
4873
|
},
|
|
4765
4874
|
setup() {
|
|
@@ -4787,11 +4896,11 @@ const Es = /* @__PURE__ */ U(zi, [["render", Ni]]), Ls = C({
|
|
|
4787
4896
|
onDestroy() {
|
|
4788
4897
|
this.$map.removeControl(this.control);
|
|
4789
4898
|
}
|
|
4790
|
-
}),
|
|
4899
|
+
}), Ps = C({
|
|
4791
4900
|
name: "tg-scale-control",
|
|
4792
4901
|
mixins: [P],
|
|
4793
4902
|
props: {
|
|
4794
|
-
position:
|
|
4903
|
+
position: N(k, k.BOTTOM_RIGHT)
|
|
4795
4904
|
},
|
|
4796
4905
|
setup() {
|
|
4797
4906
|
return {
|
|
@@ -4810,32 +4919,32 @@ const Es = /* @__PURE__ */ U(zi, [["render", Ni]]), Ls = C({
|
|
|
4810
4919
|
this.$map.removeControl(this.control);
|
|
4811
4920
|
}
|
|
4812
4921
|
});
|
|
4813
|
-
function
|
|
4922
|
+
function fr() {
|
|
4814
4923
|
var e;
|
|
4815
|
-
const i = (e =
|
|
4924
|
+
const i = (e = wr()) == null ? void 0 : e.type;
|
|
4816
4925
|
let t = (i == null ? void 0 : i.name) ?? (i == null ? void 0 : i.__name);
|
|
4817
4926
|
if (!t) {
|
|
4818
4927
|
const r = i == null ? void 0 : i.__file;
|
|
4819
|
-
r && (t =
|
|
4928
|
+
r && (t = Mi.basename(r, ".vue"));
|
|
4820
4929
|
}
|
|
4821
4930
|
return t;
|
|
4822
4931
|
}
|
|
4823
|
-
function
|
|
4824
|
-
const i =
|
|
4932
|
+
function Wi() {
|
|
4933
|
+
const i = Er(wt);
|
|
4825
4934
|
let t, e;
|
|
4826
|
-
return i == null && E(`<${
|
|
4935
|
+
return i == null && E(`<${fr() || "unknown"}>必须作为<tg-map>的子代组件`), {
|
|
4827
4936
|
mapRef: i,
|
|
4828
4937
|
/** 读取map对象, 只要放在<tg-map>里面的组件(除#overlay插槽外)都能够立即读取到map对象 */
|
|
4829
4938
|
get map() {
|
|
4830
4939
|
return i.value ?? E("map尚未初始化");
|
|
4831
4940
|
},
|
|
4832
4941
|
/** 地图元素创建回调 */
|
|
4833
|
-
[
|
|
4834
|
-
|
|
4942
|
+
[Te](r) {
|
|
4943
|
+
Lr(r), t && E(`${Te}只能调用一次`), t = r;
|
|
4835
4944
|
},
|
|
4836
4945
|
/** 地图元素销毁回调 */
|
|
4837
|
-
[
|
|
4838
|
-
|
|
4946
|
+
[Oe](r) {
|
|
4947
|
+
xr(r), e && E(`${Oe}只能调用一次`), e = r;
|
|
4839
4948
|
},
|
|
4840
4949
|
/** 重新创建地图元素 */
|
|
4841
4950
|
recreate() {
|
|
@@ -4843,23 +4952,23 @@ function Gi() {
|
|
|
4843
4952
|
}
|
|
4844
4953
|
};
|
|
4845
4954
|
}
|
|
4846
|
-
const
|
|
4955
|
+
const ks = C({
|
|
4847
4956
|
name: "tg-zoom-control",
|
|
4848
4957
|
props: {
|
|
4849
|
-
position:
|
|
4958
|
+
position: N(k, k.RIGHT_BOTTOM)
|
|
4850
4959
|
},
|
|
4851
4960
|
setup(i) {
|
|
4852
4961
|
let t = void 0;
|
|
4853
|
-
const { map: e, onCreate: r, onDestroy: s } =
|
|
4962
|
+
const { map: e, onCreate: r, onDestroy: s } = Wi();
|
|
4854
4963
|
return r(() => {
|
|
4855
4964
|
t = e.createZoomControl(i), e.addControl(t);
|
|
4856
4965
|
}), s(() => {
|
|
4857
4966
|
e.removeControl(t);
|
|
4858
|
-
}),
|
|
4967
|
+
}), Nt(() => i.position, (n) => {
|
|
4859
4968
|
t.setPosition(n);
|
|
4860
|
-
}),
|
|
4969
|
+
}), mr;
|
|
4861
4970
|
}
|
|
4862
|
-
}),
|
|
4971
|
+
}), Hi = C({
|
|
4863
4972
|
name: "tg-marker-clusterer",
|
|
4864
4973
|
mixins: [P],
|
|
4865
4974
|
// markers从this.$children中读取, 故需要省略(Omit)
|
|
@@ -4923,14 +5032,14 @@ const Ps = C({
|
|
|
4923
5032
|
}
|
|
4924
5033
|
}
|
|
4925
5034
|
});
|
|
4926
|
-
function
|
|
5035
|
+
function ji(i, t, e, r, s, n) {
|
|
4927
5036
|
return W(), j("div", {
|
|
4928
|
-
class:
|
|
5037
|
+
class: Re(i.$options.name)
|
|
4929
5038
|
}, [
|
|
4930
|
-
|
|
5039
|
+
G(i.$slots, "default")
|
|
4931
5040
|
], 2);
|
|
4932
5041
|
}
|
|
4933
|
-
const
|
|
5042
|
+
const Vi = /* @__PURE__ */ U(Hi, [["render", ji]]), Bs = C({
|
|
4934
5043
|
name: "tg-traffic-layer",
|
|
4935
5044
|
mixins: [P],
|
|
4936
5045
|
// 请直接使用v-if来控制它的显隐
|
|
@@ -4943,12 +5052,12 @@ const Hi = /* @__PURE__ */ U(Zi, [["render", Wi]]), ks = C({
|
|
|
4943
5052
|
},
|
|
4944
5053
|
watch: {},
|
|
4945
5054
|
onCreate() {
|
|
4946
|
-
this.layer = new
|
|
5055
|
+
this.layer = new ei(), this.$map.addLayer(this.layer);
|
|
4947
5056
|
},
|
|
4948
5057
|
onDestroy() {
|
|
4949
5058
|
this.$map.removeLayer(this.layer);
|
|
4950
5059
|
}
|
|
4951
|
-
}),
|
|
5060
|
+
}), Is = C({
|
|
4952
5061
|
name: "tg-circle",
|
|
4953
5062
|
mixins: [P],
|
|
4954
5063
|
inheritAttrs: !1,
|
|
@@ -4979,7 +5088,7 @@ const Hi = /* @__PURE__ */ U(Zi, [["render", Wi]]), ks = C({
|
|
|
4979
5088
|
center(i) {
|
|
4980
5089
|
if (this.emittedCenter != null) {
|
|
4981
5090
|
const t = this.emittedCenter;
|
|
4982
|
-
if (this.emittedCenter = void 0, t ===
|
|
5091
|
+
if (this.emittedCenter = void 0, t === $e(i))
|
|
4983
5092
|
return;
|
|
4984
5093
|
}
|
|
4985
5094
|
this.overlay.setCenter(i);
|
|
@@ -5028,116 +5137,7 @@ const Hi = /* @__PURE__ */ U(Zi, [["render", Wi]]), ks = C({
|
|
|
5028
5137
|
this.$map.removeOverlay(this.overlay);
|
|
5029
5138
|
}
|
|
5030
5139
|
});
|
|
5031
|
-
|
|
5032
|
-
class ji {
|
|
5033
|
-
constructor(t, e) {
|
|
5034
|
-
c(this, "baidu");
|
|
5035
|
-
c(this, "google");
|
|
5036
|
-
c(this, "projection");
|
|
5037
|
-
c(this, "element", void 0);
|
|
5038
|
-
c(this, "mapPane");
|
|
5039
|
-
this.map = t, this.mapPane = e.mapPane;
|
|
5040
|
-
}
|
|
5041
|
-
create() {
|
|
5042
|
-
return this.element = this.onCreate(), this.element.className += " element-overlay", this.element;
|
|
5043
|
-
}
|
|
5044
|
-
draw() {
|
|
5045
|
-
this.projection && this.onDraw(this.projection);
|
|
5046
|
-
}
|
|
5047
|
-
getProjection() {
|
|
5048
|
-
return this.projection;
|
|
5049
|
-
}
|
|
5050
|
-
asBaidu() {
|
|
5051
|
-
if (!this.baidu) {
|
|
5052
|
-
const t = this;
|
|
5053
|
-
pr();
|
|
5054
|
-
class e extends BMap.OverlayV3 {
|
|
5055
|
-
initialize(n) {
|
|
5056
|
-
const a = t.create(), h = n.getPanes();
|
|
5057
|
-
let o;
|
|
5058
|
-
switch (t.mapPane) {
|
|
5059
|
-
case "float":
|
|
5060
|
-
o = h.floatPane;
|
|
5061
|
-
break;
|
|
5062
|
-
case "overlayMouseTarget":
|
|
5063
|
-
o = h.markerMouseTarget;
|
|
5064
|
-
break;
|
|
5065
|
-
case "overlay":
|
|
5066
|
-
o = h.markerPane;
|
|
5067
|
-
break;
|
|
5068
|
-
case "map":
|
|
5069
|
-
o = h.mapPane;
|
|
5070
|
-
break;
|
|
5071
|
-
default:
|
|
5072
|
-
je(t.mapPane);
|
|
5073
|
-
break;
|
|
5074
|
-
}
|
|
5075
|
-
return o == null || o.appendChild(a), a;
|
|
5076
|
-
}
|
|
5077
|
-
draw() {
|
|
5078
|
-
t.draw();
|
|
5079
|
-
}
|
|
5080
|
-
}
|
|
5081
|
-
this.baidu = new e();
|
|
5082
|
-
const r = t.map.innerMap;
|
|
5083
|
-
this.projection = {
|
|
5084
|
-
fromLatLngToOverlayPoint(s) {
|
|
5085
|
-
return r.pointToOverlayPixel(s.toBaidu(t.map.coordType));
|
|
5086
|
-
},
|
|
5087
|
-
fromOverlayPointToLatLng(s) {
|
|
5088
|
-
return y.fromBaidu(r.overlayPixelToPoint(new BMap.Pixel(s.x, s.y)), t.map.coordType);
|
|
5089
|
-
}
|
|
5090
|
-
};
|
|
5091
|
-
}
|
|
5092
|
-
return this.baidu;
|
|
5093
|
-
}
|
|
5094
|
-
asGoogle() {
|
|
5095
|
-
if (!this.google) {
|
|
5096
|
-
const t = this;
|
|
5097
|
-
class e extends google.maps.OverlayView {
|
|
5098
|
-
onAdd() {
|
|
5099
|
-
const s = t.create(), n = this.getPanes() ?? E("onAdd回调中一定会有panes");
|
|
5100
|
-
let a;
|
|
5101
|
-
switch (t.mapPane) {
|
|
5102
|
-
case "float":
|
|
5103
|
-
a = n.floatPane;
|
|
5104
|
-
break;
|
|
5105
|
-
case "overlayMouseTarget":
|
|
5106
|
-
a = n.overlayMouseTarget;
|
|
5107
|
-
break;
|
|
5108
|
-
case "overlay":
|
|
5109
|
-
a = n.overlayLayer;
|
|
5110
|
-
break;
|
|
5111
|
-
case "map":
|
|
5112
|
-
a = n.mapPane;
|
|
5113
|
-
break;
|
|
5114
|
-
default:
|
|
5115
|
-
je(t.mapPane);
|
|
5116
|
-
break;
|
|
5117
|
-
}
|
|
5118
|
-
a.appendChild(s);
|
|
5119
|
-
}
|
|
5120
|
-
draw() {
|
|
5121
|
-
t.draw();
|
|
5122
|
-
}
|
|
5123
|
-
onRemove() {
|
|
5124
|
-
var s;
|
|
5125
|
-
(s = t.element.parentNode) == null || s.removeChild(t.element);
|
|
5126
|
-
}
|
|
5127
|
-
}
|
|
5128
|
-
this.google = new e(), this.projection = {
|
|
5129
|
-
fromLatLngToOverlayPoint(r) {
|
|
5130
|
-
return t.google.getProjection().fromLatLngToDivPixel(r.toGoogle(t.map.coordType)) ?? q.ZERO;
|
|
5131
|
-
},
|
|
5132
|
-
fromOverlayPointToLatLng(r) {
|
|
5133
|
-
return y.fromGoogle(t.google.getProjection().fromDivPixelToLatLng(new google.maps.Point(r.x, r.y)) ?? Y.LATLNG_ZERO, t.map.coordType);
|
|
5134
|
-
}
|
|
5135
|
-
};
|
|
5136
|
-
}
|
|
5137
|
-
return this.google;
|
|
5138
|
-
}
|
|
5139
|
-
}
|
|
5140
|
-
class Vi extends ji {
|
|
5140
|
+
class Fi extends Ti {
|
|
5141
5141
|
constructor(t, e, r, s) {
|
|
5142
5142
|
super(t, e), this.content = r, this.position = s;
|
|
5143
5143
|
}
|
|
@@ -5152,11 +5152,11 @@ class Vi extends ji {
|
|
|
5152
5152
|
this.position = t, this.draw();
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
5155
|
-
const
|
|
5155
|
+
const Ui = C({
|
|
5156
5156
|
name: "tg-element-overlay",
|
|
5157
5157
|
mixins: [P],
|
|
5158
5158
|
props: {
|
|
5159
|
-
mapPane:
|
|
5159
|
+
mapPane: N(_e, _e.overlayMouseTarget),
|
|
5160
5160
|
position: R(y)
|
|
5161
5161
|
},
|
|
5162
5162
|
setup() {
|
|
@@ -5178,20 +5178,20 @@ const Fi = C({
|
|
|
5178
5178
|
}
|
|
5179
5179
|
},
|
|
5180
5180
|
onCreate() {
|
|
5181
|
-
this.overlay = new
|
|
5181
|
+
this.overlay = new Fi(this.$map, this, this.content(), this.position), this.$map.addElementOverlay(this.overlay);
|
|
5182
5182
|
},
|
|
5183
5183
|
onDestroy() {
|
|
5184
5184
|
this.$map.removeElementOverlay(this.overlay);
|
|
5185
5185
|
}
|
|
5186
5186
|
});
|
|
5187
|
-
function
|
|
5187
|
+
function qi(i, t, e, r, s, n) {
|
|
5188
5188
|
return W(), j("div", ce({
|
|
5189
5189
|
class: i.$options.name
|
|
5190
5190
|
}, i.$attrs), [
|
|
5191
|
-
|
|
5191
|
+
G(i.$slots, "default")
|
|
5192
5192
|
], 16);
|
|
5193
5193
|
}
|
|
5194
|
-
const
|
|
5194
|
+
const Ss = /* @__PURE__ */ U(Ui, [["render", qi]]), Yi = C({
|
|
5195
5195
|
name: "tg-marker",
|
|
5196
5196
|
mixins: [P],
|
|
5197
5197
|
inheritAttrs: !1,
|
|
@@ -5212,8 +5212,8 @@ const Is = /* @__PURE__ */ U(Fi, [["render", Ui]]), qi = C({
|
|
|
5212
5212
|
return {
|
|
5213
5213
|
attrs: F(t, i),
|
|
5214
5214
|
marker: void 0,
|
|
5215
|
-
label:
|
|
5216
|
-
info:
|
|
5215
|
+
label: Ue(),
|
|
5216
|
+
info: Ue(),
|
|
5217
5217
|
emittedPosition: void 0
|
|
5218
5218
|
};
|
|
5219
5219
|
},
|
|
@@ -5221,7 +5221,7 @@ const Is = /* @__PURE__ */ U(Fi, [["render", Ui]]), qi = C({
|
|
|
5221
5221
|
position(i) {
|
|
5222
5222
|
if (this.emittedPosition != null) {
|
|
5223
5223
|
const t = this.emittedPosition;
|
|
5224
|
-
if (this.emittedPosition = void 0, t ===
|
|
5224
|
+
if (this.emittedPosition = void 0, t === $e(i))
|
|
5225
5225
|
return;
|
|
5226
5226
|
}
|
|
5227
5227
|
this.marker.setPosition(i);
|
|
@@ -5233,7 +5233,7 @@ const Is = /* @__PURE__ */ U(Fi, [["render", Ui]]), qi = C({
|
|
|
5233
5233
|
i ? this.marker.setIcon(i) : this.recreate();
|
|
5234
5234
|
},
|
|
5235
5235
|
clickable(i) {
|
|
5236
|
-
this.marker instanceof
|
|
5236
|
+
this.marker instanceof Me ? this.recreate() : this.marker.setClickable(i);
|
|
5237
5237
|
},
|
|
5238
5238
|
draggable(i) {
|
|
5239
5239
|
this.marker.setDraggable(i);
|
|
@@ -5245,7 +5245,7 @@ const Is = /* @__PURE__ */ U(Fi, [["render", Ui]]), qi = C({
|
|
|
5245
5245
|
this.recreate();
|
|
5246
5246
|
},
|
|
5247
5247
|
zIndex(i) {
|
|
5248
|
-
this.marker instanceof
|
|
5248
|
+
this.marker instanceof Me ? this.recreate() : this.marker.setZIndex(i);
|
|
5249
5249
|
},
|
|
5250
5250
|
visible(i) {
|
|
5251
5251
|
this.marker.setVisible(i);
|
|
@@ -5261,7 +5261,7 @@ const Is = /* @__PURE__ */ U(Fi, [["render", Ui]]), qi = C({
|
|
|
5261
5261
|
},
|
|
5262
5262
|
methods: {
|
|
5263
5263
|
$clusterer() {
|
|
5264
|
-
return
|
|
5264
|
+
return Ce(this.$parent, Vi);
|
|
5265
5265
|
},
|
|
5266
5266
|
onAddLabel(i) {
|
|
5267
5267
|
this.label = i, this.marker && this.marker.setLabel(i.overlay);
|
|
@@ -5280,14 +5280,14 @@ const Is = /* @__PURE__ */ U(Fi, [["render", Ui]]), qi = C({
|
|
|
5280
5280
|
}
|
|
5281
5281
|
}
|
|
5282
5282
|
});
|
|
5283
|
-
function
|
|
5283
|
+
function Ki(i, t, e, r, s, n) {
|
|
5284
5284
|
return W(), j("div", ce({
|
|
5285
5285
|
class: i.$options.name
|
|
5286
5286
|
}, i.attrs.binds), [
|
|
5287
|
-
|
|
5287
|
+
G(i.$slots, "default")
|
|
5288
5288
|
], 16);
|
|
5289
5289
|
}
|
|
5290
|
-
const
|
|
5290
|
+
const Et = /* @__PURE__ */ U(Yi, [["render", Ki]]), Xi = C({
|
|
5291
5291
|
name: "tg-info-box",
|
|
5292
5292
|
mixins: [P],
|
|
5293
5293
|
inheritAttrs: !1,
|
|
@@ -5350,7 +5350,7 @@ const wt = /* @__PURE__ */ U(qi, [["render", Yi]]), Ki = C({
|
|
|
5350
5350
|
return this.$el;
|
|
5351
5351
|
},
|
|
5352
5352
|
$marker() {
|
|
5353
|
-
return
|
|
5353
|
+
return Ce(this.$parent, Et);
|
|
5354
5354
|
},
|
|
5355
5355
|
open(i) {
|
|
5356
5356
|
this.overlay.open(i);
|
|
@@ -5360,14 +5360,14 @@ const wt = /* @__PURE__ */ U(qi, [["render", Yi]]), Ki = C({
|
|
|
5360
5360
|
}
|
|
5361
5361
|
}
|
|
5362
5362
|
});
|
|
5363
|
-
function
|
|
5363
|
+
function Ji(i, t, e, r, s, n) {
|
|
5364
5364
|
return W(), j("div", ce({
|
|
5365
5365
|
class: i.$options.name
|
|
5366
5366
|
}, i.attrs.binds), [
|
|
5367
|
-
|
|
5367
|
+
G(i.$slots, "default")
|
|
5368
5368
|
], 16);
|
|
5369
5369
|
}
|
|
5370
|
-
const
|
|
5370
|
+
const As = /* @__PURE__ */ U(Xi, [["render", Ji]]), Qi = C({
|
|
5371
5371
|
name: "tg-info-window",
|
|
5372
5372
|
mixins: [P],
|
|
5373
5373
|
inheritAttrs: !1,
|
|
@@ -5408,7 +5408,7 @@ const Ss = /* @__PURE__ */ U(Ki, [["render", Xi]]), Ji = C({
|
|
|
5408
5408
|
return this.$el;
|
|
5409
5409
|
},
|
|
5410
5410
|
$marker() {
|
|
5411
|
-
return
|
|
5411
|
+
return Ce(this.$parent, Et);
|
|
5412
5412
|
},
|
|
5413
5413
|
getOptions() {
|
|
5414
5414
|
return {
|
|
@@ -5431,23 +5431,24 @@ const Ss = /* @__PURE__ */ U(Ki, [["render", Xi]]), Ji = C({
|
|
|
5431
5431
|
this.$marker() ? this.$marker().onRemoveInfo(this) : this.overlay.close();
|
|
5432
5432
|
}
|
|
5433
5433
|
});
|
|
5434
|
-
function
|
|
5435
|
-
return
|
|
5434
|
+
function es(i, t, e, r, s, n) {
|
|
5435
|
+
return Pr((W(), j("div", ce({
|
|
5436
5436
|
class: i.$options.name
|
|
5437
5437
|
}, i.attrs.binds), [
|
|
5438
|
-
|
|
5438
|
+
G(i.$slots, "default")
|
|
5439
5439
|
], 16)), [
|
|
5440
|
-
[
|
|
5440
|
+
[kr, i.show]
|
|
5441
5441
|
]);
|
|
5442
5442
|
}
|
|
5443
|
-
const
|
|
5443
|
+
const Rs = /* @__PURE__ */ U(Qi, [["render", es]]), ts = C({
|
|
5444
5444
|
name: "tg-label",
|
|
5445
5445
|
mixins: [P],
|
|
5446
5446
|
inheritAttrs: !1,
|
|
5447
5447
|
props: {
|
|
5448
5448
|
position: m(y),
|
|
5449
5449
|
offset: m(Object),
|
|
5450
|
-
zIndex: m(Number)
|
|
5450
|
+
zIndex: m(Number),
|
|
5451
|
+
mapPane: N(_e)
|
|
5451
5452
|
},
|
|
5452
5453
|
emits: void 0,
|
|
5453
5454
|
setup(i, { attrs: t }) {
|
|
@@ -5468,6 +5469,9 @@ const As = /* @__PURE__ */ U(Ji, [["render", Qi]]), es = C({
|
|
|
5468
5469
|
},
|
|
5469
5470
|
visible(i) {
|
|
5470
5471
|
this.overlay.setVisible(i);
|
|
5472
|
+
},
|
|
5473
|
+
mapPane() {
|
|
5474
|
+
this.recreate();
|
|
5471
5475
|
}
|
|
5472
5476
|
},
|
|
5473
5477
|
methods: {
|
|
@@ -5479,14 +5483,15 @@ const As = /* @__PURE__ */ U(Ji, [["render", Qi]]), es = C({
|
|
|
5479
5483
|
return (i = this.$marker()) == null ? void 0 : i.marker;
|
|
5480
5484
|
},
|
|
5481
5485
|
$marker() {
|
|
5482
|
-
return
|
|
5486
|
+
return Ce(this.$parent, Et);
|
|
5483
5487
|
},
|
|
5484
5488
|
getOptions() {
|
|
5485
5489
|
return {
|
|
5486
5490
|
content: this.content(),
|
|
5487
5491
|
position: this.position,
|
|
5488
5492
|
offset: this.offset,
|
|
5489
|
-
zIndex: this.zIndex
|
|
5493
|
+
zIndex: this.zIndex,
|
|
5494
|
+
mapPane: this.mapPane
|
|
5490
5495
|
};
|
|
5491
5496
|
}
|
|
5492
5497
|
},
|
|
@@ -5497,14 +5502,14 @@ const As = /* @__PURE__ */ U(Ji, [["render", Qi]]), es = C({
|
|
|
5497
5502
|
this.$marker() ? this.$marker().onRemoveLabel(this) : this.$map.removeOverlay(this.overlay);
|
|
5498
5503
|
}
|
|
5499
5504
|
});
|
|
5500
|
-
function
|
|
5505
|
+
function rs(i, t, e, r, s, n) {
|
|
5501
5506
|
return W(), j("div", ce({
|
|
5502
5507
|
class: i.$options.name
|
|
5503
5508
|
}, i.attrs.binds), [
|
|
5504
|
-
|
|
5509
|
+
G(i.$slots, "default")
|
|
5505
5510
|
], 16);
|
|
5506
5511
|
}
|
|
5507
|
-
const
|
|
5512
|
+
const $s = /* @__PURE__ */ U(ts, [["render", rs]]), Ds = C({
|
|
5508
5513
|
name: "tg-polygon",
|
|
5509
5514
|
mixins: [P],
|
|
5510
5515
|
inheritAttrs: !1,
|
|
@@ -5533,7 +5538,7 @@ const Rs = /* @__PURE__ */ U(es, [["render", ts]]), $s = C({
|
|
|
5533
5538
|
handler(i) {
|
|
5534
5539
|
if (this.emittedPaths != null) {
|
|
5535
5540
|
const t = this.emittedPaths;
|
|
5536
|
-
if (this.emittedPaths = void 0, t.length === i.length && t.every((e, r) => e ===
|
|
5541
|
+
if (this.emittedPaths = void 0, t.length === i.length && t.every((e, r) => e === $e(i[r])))
|
|
5537
5542
|
return;
|
|
5538
5543
|
}
|
|
5539
5544
|
this.overlay.setPaths(i);
|
|
@@ -5573,7 +5578,7 @@ const Rs = /* @__PURE__ */ U(es, [["render", ts]]), $s = C({
|
|
|
5573
5578
|
onDestroy() {
|
|
5574
5579
|
this.$map.removeOverlay(this.overlay);
|
|
5575
5580
|
}
|
|
5576
|
-
}),
|
|
5581
|
+
}), zs = C({
|
|
5577
5582
|
name: "tg-polyline",
|
|
5578
5583
|
mixins: [P],
|
|
5579
5584
|
inheritAttrs: !1,
|
|
@@ -5600,7 +5605,7 @@ const Rs = /* @__PURE__ */ U(es, [["render", ts]]), $s = C({
|
|
|
5600
5605
|
handler(i) {
|
|
5601
5606
|
if (this.emittedPath != null) {
|
|
5602
5607
|
const t = this.emittedPath;
|
|
5603
|
-
if (this.emittedPath = void 0, t ===
|
|
5608
|
+
if (this.emittedPath = void 0, t === $e(i))
|
|
5604
5609
|
return;
|
|
5605
5610
|
}
|
|
5606
5611
|
this.overlay.setPath(i);
|
|
@@ -5634,7 +5639,7 @@ const Rs = /* @__PURE__ */ U(es, [["render", ts]]), $s = C({
|
|
|
5634
5639
|
onDestroy() {
|
|
5635
5640
|
this.$map.removeOverlay(this.overlay);
|
|
5636
5641
|
}
|
|
5637
|
-
}),
|
|
5642
|
+
}), Ns = C({
|
|
5638
5643
|
name: "tg-rectangle",
|
|
5639
5644
|
mixins: [P],
|
|
5640
5645
|
inheritAttrs: !1,
|
|
@@ -5700,13 +5705,13 @@ const Rs = /* @__PURE__ */ U(es, [["render", ts]]), $s = C({
|
|
|
5700
5705
|
onDestroy() {
|
|
5701
5706
|
this.$map.removeOverlay(this.overlay);
|
|
5702
5707
|
}
|
|
5703
|
-
}),
|
|
5708
|
+
}), is = ["beforeUpdate", "updated"], Gs = {
|
|
5704
5709
|
install(i, t = {}) {
|
|
5705
5710
|
if (t.enable !== !1) {
|
|
5706
5711
|
const e = C({
|
|
5707
5712
|
beforeCreate() {
|
|
5708
|
-
const r =
|
|
5709
|
-
t.hookNames ? t.hookNames.includes(a) && console.debug("[lifecycle]", r, a) :
|
|
5713
|
+
const r = fr() ?? "", n = (t.nameRegex || /^[A-Z]/).test(r) ? (a) => {
|
|
5714
|
+
t.hookNames ? t.hookNames.includes(a) && console.debug("[lifecycle]", r, a) : is.includes(a) || console.debug("[lifecycle]", r, a);
|
|
5710
5715
|
} : me;
|
|
5711
5716
|
n("beforeCreate"), this.__life_impl = n;
|
|
5712
5717
|
},
|
|
@@ -5746,168 +5751,168 @@ const Rs = /* @__PURE__ */ U(es, [["render", ts]]), $s = C({
|
|
|
5746
5751
|
i.mixin(e);
|
|
5747
5752
|
}
|
|
5748
5753
|
}
|
|
5749
|
-
},
|
|
5754
|
+
}, ss = 6378137;
|
|
5750
5755
|
function ge(i) {
|
|
5751
5756
|
return i * Math.PI / 180;
|
|
5752
5757
|
}
|
|
5753
|
-
function
|
|
5758
|
+
function Dt(i) {
|
|
5754
5759
|
return i * 180 / Math.PI;
|
|
5755
5760
|
}
|
|
5756
|
-
function
|
|
5761
|
+
function ns(i, t) {
|
|
5757
5762
|
if (i.lat === t.lat && i.lng === t.lng)
|
|
5758
5763
|
return 0;
|
|
5759
5764
|
const e = ge((i.lat + t.lat) / 2), r = ge((i.lat - t.lat) / 2), s = ge((i.lng - t.lng) / 2);
|
|
5760
5765
|
let n = Math.sin(r), a = Math.sin(s), h = Math.sin(e);
|
|
5761
|
-
const o =
|
|
5766
|
+
const o = ss, l = 1 / 298.257;
|
|
5762
5767
|
n = n * n, a = a * a, h = h * h;
|
|
5763
5768
|
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, M = (3 * b - 1) / 2 / u, g = (3 * b + 1) / 2 / d;
|
|
5764
5769
|
return _ * (1 + l * (M * h * (1 - n) - g * (1 - h) * n));
|
|
5765
5770
|
}
|
|
5766
|
-
function
|
|
5771
|
+
function os(i, t, e) {
|
|
5767
5772
|
const s = 63567523142e-4, n = 1 / 298.257223563, a = ge(t), h = Math.sin(a), o = Math.cos(a), l = (1 - n) * Math.tan(ge(i.lat)), d = 1 / Math.sqrt(1 + l * l), u = l * d, p = Math.atan2(l, o), b = d * h, _ = 1 - b * b, M = _ * (6378137 * 6378137 - s * s) / (s * s), g = 1 + M / 16384 * (4096 + M * (-768 + M * (320 - 175 * M))), f = M / 1024 * (256 + M * (-128 + M * (74 - 47 * M)));
|
|
5768
5773
|
let v = 0, O = 0, x = 0, w = e / (s * g), K = 2 * Math.PI;
|
|
5769
5774
|
for (; Math.abs(w - K) > 1e-12; ) {
|
|
5770
5775
|
v = Math.cos(2 * p + w), O = Math.sin(w), x = Math.cos(w);
|
|
5771
|
-
const
|
|
5772
|
-
K = w, w = e / (s * g) +
|
|
5776
|
+
const _r = f * O * (v + f / 4 * (x * (-1 + 2 * v * v) - f / 6 * v * (-3 + 4 * O * O) * (-3 + 4 * v * v)));
|
|
5777
|
+
K = w, w = e / (s * g) + _r;
|
|
5773
5778
|
}
|
|
5774
|
-
const te = u * O - d * x * o,
|
|
5779
|
+
const te = u * O - d * x * o, Ge = Math.atan2(
|
|
5775
5780
|
u * x + d * O * o,
|
|
5776
5781
|
(1 - n) * Math.sqrt(b * b + te * te)
|
|
5777
|
-
),
|
|
5778
|
-
return { lng: i.lng +
|
|
5782
|
+
), yr = Math.atan2(O * h, d * x - u * O * o), Ze = n / 16 * _ * (4 + n * (4 - 3 * _)), vr = yr - (1 - Ze) * n * b * (w + Ze * O * (v + Ze * x * (-1 + 2 * v * v)));
|
|
5783
|
+
return { lng: i.lng + Dt(vr), lat: Dt(Ge) };
|
|
5779
5784
|
}
|
|
5780
|
-
const
|
|
5781
|
-
getDistance:
|
|
5782
|
-
getDestination:
|
|
5783
|
-
},
|
|
5785
|
+
const Zs = {
|
|
5786
|
+
getDistance: ns,
|
|
5787
|
+
getDestination: os
|
|
5788
|
+
}, Ws = {
|
|
5784
5789
|
install(i, t) {
|
|
5785
|
-
|
|
5790
|
+
Yr(t);
|
|
5786
5791
|
const e = i.config.optionMergeStrategies;
|
|
5787
|
-
e[
|
|
5792
|
+
e[Te] = e[Oe] = (r, s) => r ? [...new Set([].concat(r, s))] : Array.isArray(s) ? s : [s];
|
|
5788
5793
|
}
|
|
5789
5794
|
};
|
|
5790
5795
|
export {
|
|
5791
|
-
|
|
5792
|
-
|
|
5796
|
+
Kt as AbstractControl,
|
|
5797
|
+
ot as AbstractMap,
|
|
5793
5798
|
ae as Arrays,
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5799
|
+
rr as Autocomplete,
|
|
5800
|
+
ni as BaiduAutocomplete,
|
|
5801
|
+
lt as BaiduCircle,
|
|
5802
|
+
Je as BaiduControl,
|
|
5803
|
+
pt as BaiduInfoBoxOverlay,
|
|
5804
|
+
dt as BaiduInfoWindow,
|
|
5805
|
+
et as BaiduMapTypeControl,
|
|
5806
|
+
Me as BaiduMarker,
|
|
5807
|
+
ci as BaiduMarkerClusterer,
|
|
5808
|
+
ze as BaiduOverlay,
|
|
5809
|
+
pi as BaiduPlacesService,
|
|
5810
|
+
vt as BaiduPolyShape,
|
|
5811
|
+
Mt as BaiduPolygon,
|
|
5812
|
+
_t as BaiduPolyline,
|
|
5813
|
+
Ot as BaiduRectangle,
|
|
5814
|
+
tt as BaiduScaleControl,
|
|
5815
|
+
mi as BaiduSearchBox,
|
|
5816
|
+
it as BaiduZoomControl,
|
|
5817
|
+
Bt as CachedValue,
|
|
5813
5818
|
k as ControlPosition,
|
|
5814
5819
|
A as ControlPositionConverter,
|
|
5815
5820
|
Q as CoordType,
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5821
|
+
Qr as CustomControl,
|
|
5822
|
+
Jr as FastFindValues,
|
|
5823
|
+
si as GoogleAutocomplete,
|
|
5824
|
+
ht as GoogleCircle,
|
|
5825
|
+
Qe as GoogleControl,
|
|
5826
|
+
gt as GoogleInfoBoxOverlay,
|
|
5827
|
+
ut as GoogleInfoWindow,
|
|
5828
|
+
Le as GoogleMapTypeControl,
|
|
5829
|
+
yt as GoogleMarker,
|
|
5830
|
+
di as GoogleMarkerClusterer,
|
|
5831
|
+
at as GoogleOverlay,
|
|
5832
|
+
ui as GooglePlacesService,
|
|
5833
|
+
Tt as GooglePolygon,
|
|
5834
|
+
bt as GooglePolyline,
|
|
5835
|
+
Ct as GoogleRectangle,
|
|
5836
|
+
rt as GoogleScaleControl,
|
|
5837
|
+
gi as GoogleSearchBox,
|
|
5838
|
+
st as GoogleZoomControl,
|
|
5839
|
+
Ie as Icon,
|
|
5840
|
+
ct as InfoWindow,
|
|
5841
|
+
kt as KeyValue,
|
|
5837
5842
|
y as LatLng,
|
|
5838
5843
|
I as LatLngBounds,
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5844
|
+
Gs as LifecycleLogPlugin,
|
|
5845
|
+
Te as MIXIN_HOOK_CREATE,
|
|
5846
|
+
Oe as MIXIN_HOOK_DESTROY,
|
|
5847
|
+
wt as MIXIN_MAP_NAME,
|
|
5843
5848
|
le as MVCArrays,
|
|
5844
5849
|
P as MapMixin,
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5850
|
+
Jt as MapTypeControlType,
|
|
5851
|
+
fi as MapZoom,
|
|
5852
|
+
lr as MarkerClusterer,
|
|
5848
5853
|
ye as Objects,
|
|
5849
|
-
|
|
5850
|
-
|
|
5854
|
+
ur as Overlay,
|
|
5855
|
+
hr as PlacesService,
|
|
5851
5856
|
q as Point,
|
|
5852
|
-
|
|
5853
|
-
|
|
5857
|
+
cr as SearchBox,
|
|
5858
|
+
Zs as SphericalUtils,
|
|
5854
5859
|
ve as Strings,
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5860
|
+
Se as SymbolIcon,
|
|
5861
|
+
bs as SymbolPath,
|
|
5862
|
+
Is as TgCircle,
|
|
5863
|
+
Ls as TgCustomControl,
|
|
5864
|
+
Ss as TgElementOverlay,
|
|
5865
|
+
As as TgInfoBox,
|
|
5866
|
+
Rs as TgInfoWindow,
|
|
5867
|
+
$s as TgLabel,
|
|
5868
|
+
$i as TgMap,
|
|
5869
|
+
Ke as TgMapFactory,
|
|
5865
5870
|
z as TgMapType,
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5871
|
+
xs as TgMapTypeControl,
|
|
5872
|
+
Es as TgMapWidget,
|
|
5873
|
+
Et as TgMarker,
|
|
5874
|
+
Vi as TgMarkerClusterer,
|
|
5875
|
+
Ds as TgPolygon,
|
|
5876
|
+
zs as TgPolyline,
|
|
5877
|
+
Ns as TgRectangle,
|
|
5878
|
+
Ps as TgScaleControl,
|
|
5879
|
+
Bs as TgTrafficLayer,
|
|
5880
|
+
ks as TgZoomControl,
|
|
5881
|
+
Be as UnionIcon,
|
|
5877
5882
|
se as assert,
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5883
|
+
Fe as assertNever,
|
|
5884
|
+
Ee as callHook,
|
|
5885
|
+
Ms as computedSaveOnThis,
|
|
5886
|
+
mr as createEmptyVNode,
|
|
5887
|
+
Ii as createPropertyObject,
|
|
5888
|
+
Ts as createPropertyObjectTyped,
|
|
5889
|
+
ms as debug,
|
|
5890
|
+
Ws as default,
|
|
5886
5891
|
L as eventProp,
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5892
|
+
Cs as extractVNodeFromSlotsByComponent,
|
|
5893
|
+
Os as findByComponentType,
|
|
5894
|
+
os as getDestination,
|
|
5895
|
+
Ft as getTgMapConfig,
|
|
5896
|
+
fs as isDef,
|
|
5897
|
+
ds as isInstanceOf,
|
|
5898
|
+
cs as lateinit,
|
|
5894
5899
|
me as noop,
|
|
5895
5900
|
m as optionalProp,
|
|
5896
|
-
|
|
5901
|
+
Mi as path,
|
|
5897
5902
|
R as requiredProp,
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5903
|
+
us as safeAs,
|
|
5904
|
+
Ce as safeAsComponent,
|
|
5905
|
+
Yr as setTgMapConfig,
|
|
5906
|
+
Si as splitAttrs,
|
|
5907
|
+
N as stringEnumProp,
|
|
5908
|
+
Bi as stringUnionPropFromValues,
|
|
5904
5909
|
E as throwError,
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
+
Wt as throwUnsupported,
|
|
5911
|
+
gs as todo,
|
|
5912
|
+
Ue as typed,
|
|
5913
|
+
ps as unwrapStringEnumValue,
|
|
5914
|
+
ws as useEventLogMethods,
|
|
5910
5915
|
F as useSplittedAttrs,
|
|
5911
|
-
|
|
5916
|
+
Wi as useTgMapInner
|
|
5912
5917
|
};
|
|
5913
5918
|
//# sourceMappingURL=tg-map.js.map
|