tg-map-vue3 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/map/map/baidu-map.d.ts +1 -1
- package/dist/src/map/map/google-map.d.ts +1 -1
- package/dist/src/map/map/here-map.d.ts +1 -1
- package/dist/src/map/map/map.d.ts +1 -1
- package/dist/tg-map.js +48 -48
- package/dist/tg-map.js.map +1 -1
- package/dist/tg-map.umd.cjs +1 -1
- package/dist/tg-map.umd.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -74,5 +74,5 @@ export declare class BaiduMap extends AbstractMap {
|
|
|
74
74
|
createAutocomplete(options: AutocompleteOptions): Autocomplete;
|
|
75
75
|
createSearchBox(options: SearchBoxOptions): SearchBox;
|
|
76
76
|
createPlacesService(options: PlacesServiceOptions): PlacesService;
|
|
77
|
-
|
|
77
|
+
createMapUrls(options: MapUrlsOptions): MapUrls;
|
|
78
78
|
}
|
|
@@ -74,5 +74,5 @@ export declare class GoogleMap extends AbstractMap {
|
|
|
74
74
|
createAutocomplete(options: AutocompleteOptions): Autocomplete;
|
|
75
75
|
createSearchBox(options: SearchBoxOptions): SearchBox;
|
|
76
76
|
createPlacesService(options: PlacesServiceOptions): PlacesService;
|
|
77
|
-
|
|
77
|
+
createMapUrls(options: MapUrlsOptions): MapUrls;
|
|
78
78
|
}
|
|
@@ -59,7 +59,7 @@ export declare class HereMap extends AbstractMap {
|
|
|
59
59
|
createAutocomplete(options: AutocompleteOptions): Autocomplete;
|
|
60
60
|
createSearchBox(options: SearchBoxOptions): SearchBox;
|
|
61
61
|
createPlacesService(options: PlacesServiceOptions): PlacesService;
|
|
62
|
-
|
|
62
|
+
createMapUrls(options: MapUrlsOptions): MapUrls;
|
|
63
63
|
createInfoWindow(options: InfoWindowOptions): InfoWindowOverlay;
|
|
64
64
|
createInfoBox(options: InfoBoxOptions): InfoBoxOverlay;
|
|
65
65
|
createPolyline(options: PolylineOptions): PolylineOverlay;
|
|
@@ -138,7 +138,7 @@ export declare abstract class AbstractMap implements CoordTypeSupplier, Tg.Event
|
|
|
138
138
|
abstract createAutocomplete(options: AutocompleteOptions): Autocomplete;
|
|
139
139
|
abstract createSearchBox(options: SearchBoxOptions): SearchBox;
|
|
140
140
|
abstract createPlacesService(options: PlacesServiceOptions): PlacesService;
|
|
141
|
-
abstract
|
|
141
|
+
abstract createMapUrls(options: MapUrlsOptions): MapUrls;
|
|
142
142
|
abstract createInfoWindow(options: InfoWindowOptions): InfoWindowOverlay;
|
|
143
143
|
abstract createInfoBox(options: InfoBoxOptions): InfoBoxOverlay;
|
|
144
144
|
abstract createPolyline(options: PolylineOptions): PolylineOverlay;
|
package/dist/tg-map.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var Pr = Object.defineProperty;
|
|
3
3
|
var kr = (i, t, e) => t in i ? Pr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
4
4
|
var c = (i, t, e) => (kr(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
5
|
-
import { createCommentVNode as Ke, computed as jt, defineComponent as w, markRaw as
|
|
5
|
+
import { createCommentVNode as Ke, computed as jt, defineComponent as w, markRaw as Br, watch as Vt, openBlock as j, createElementBlock as V, mergeProps as de, createElementVNode as Sr, normalizeClass as Ne, renderSlot as Z, normalizeStyle as Ir, getCurrentInstance as Ar, inject as Rr, onMounted as $r, onBeforeUnmount as Dr, toRaw as Ge, withDirectives as zr, vShow as Nr } from "vue";
|
|
6
6
|
function F(i, t, e) {
|
|
7
7
|
Object.keys(i).forEach((r) => {
|
|
8
8
|
r.startsWith("update:") || e != null && e.includes(r) || t.addEventListener(r, i[r]);
|
|
@@ -12,7 +12,7 @@ let Gr = 1;
|
|
|
12
12
|
function Zr() {
|
|
13
13
|
return Gr++;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Se(i, t) {
|
|
16
16
|
return t.__id__ || (t.__id__ = Zr()), `${i}::${t.__id__}`;
|
|
17
17
|
}
|
|
18
18
|
var Ft = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -125,12 +125,12 @@ function ne(i, t) {
|
|
|
125
125
|
function Xe(i) {
|
|
126
126
|
throw new Error(`Unexpected object: ${i}`);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Bs() {
|
|
129
129
|
}
|
|
130
130
|
function Je(i) {
|
|
131
131
|
return i;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Ss(i, t) {
|
|
134
134
|
return i instanceof t;
|
|
135
135
|
}
|
|
136
136
|
function Is(i, t) {
|
|
@@ -164,7 +164,7 @@ function Ds(i) {
|
|
|
164
164
|
function qt(i) {
|
|
165
165
|
return i[1] != null;
|
|
166
166
|
}
|
|
167
|
-
var
|
|
167
|
+
var B = /* @__PURE__ */ ((i) => (i.wgs84 = "wgs84", i.gcj02 = "gcj02", i.bd09 = "bd09", i))(B || {});
|
|
168
168
|
const Ue = "wgs84", z = class {
|
|
169
169
|
constructor(t, e, r) {
|
|
170
170
|
this.lat = t, this.lng = e, this.coord = r;
|
|
@@ -578,14 +578,14 @@ class Ze {
|
|
|
578
578
|
this.delegate.removeEventListener(t, e);
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
const
|
|
581
|
+
const St = class extends er {
|
|
582
582
|
addEventListener(t, e) {
|
|
583
|
-
const r =
|
|
583
|
+
const r = Se(t, e);
|
|
584
584
|
if (this.eventMap.get(r)) {
|
|
585
585
|
console.warn("listener已经添加过了", r, e);
|
|
586
586
|
return;
|
|
587
587
|
}
|
|
588
|
-
const s = this.inner.addListener(
|
|
588
|
+
const s = this.inner.addListener(St.EVENT_TYPE_MAP[t] || t, (n) => {
|
|
589
589
|
const a = {
|
|
590
590
|
type: t,
|
|
591
591
|
target: this.target,
|
|
@@ -596,11 +596,11 @@ const Bt = class extends er {
|
|
|
596
596
|
this.eventMap.set(r, s);
|
|
597
597
|
}
|
|
598
598
|
removeEventListener(t, e) {
|
|
599
|
-
const r =
|
|
599
|
+
const r = Se(t, e), s = this.eventMap.get(r);
|
|
600
600
|
s ? (s.remove(), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, e);
|
|
601
601
|
}
|
|
602
602
|
};
|
|
603
|
-
let te =
|
|
603
|
+
let te = St;
|
|
604
604
|
// 事件类型映射: tg => google
|
|
605
605
|
c(te, "EVENT_TYPE_MAP", {
|
|
606
606
|
"center-changed": "center_changed",
|
|
@@ -620,7 +620,7 @@ c(te, "EVENT_TYPE_MAP", {
|
|
|
620
620
|
});
|
|
621
621
|
const ze = class extends er {
|
|
622
622
|
addEventListener(t, e) {
|
|
623
|
-
const r =
|
|
623
|
+
const r = Se(t, e);
|
|
624
624
|
if (this.eventMap.get(r)) {
|
|
625
625
|
console.warn("listener已经添加过了", r, e);
|
|
626
626
|
return;
|
|
@@ -636,7 +636,7 @@ const ze = class extends er {
|
|
|
636
636
|
this.inner.addEventListener(ze.EVENT_TYPE_MAP[t] || t, s), this.eventMap.set(r, s);
|
|
637
637
|
}
|
|
638
638
|
removeEventListener(t, e) {
|
|
639
|
-
const r =
|
|
639
|
+
const r = Se(t, e), s = this.eventMap.get(r);
|
|
640
640
|
s ? (this.inner.removeEventListener(ze.EVENT_TYPE_MAP[t] || t, s), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, e);
|
|
641
641
|
}
|
|
642
642
|
};
|
|
@@ -864,7 +864,7 @@ class nt extends rr {
|
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
866
|
var ir = /* @__PURE__ */ ((i) => (i.normal = "normal", i.satellite = "satellite", i.hybrid = "hybrid", i))(ir || {});
|
|
867
|
-
class
|
|
867
|
+
class S {
|
|
868
868
|
constructor(t, e, r, s) {
|
|
869
869
|
this.id = t, this.baidu = e, this.google = r, this.googleCoordType = s;
|
|
870
870
|
}
|
|
@@ -872,7 +872,7 @@ class B {
|
|
|
872
872
|
return this.id;
|
|
873
873
|
}
|
|
874
874
|
getBaiduCoordType() {
|
|
875
|
-
return
|
|
875
|
+
return B.bd09;
|
|
876
876
|
}
|
|
877
877
|
asBaiduMapType() {
|
|
878
878
|
return this.baidu();
|
|
@@ -954,13 +954,13 @@ class hi {
|
|
|
954
954
|
}
|
|
955
955
|
var A;
|
|
956
956
|
((i) => {
|
|
957
|
-
i.NORMAL = new
|
|
957
|
+
i.NORMAL = new S("normal", () => BMAP_NORMAL_MAP, () => google.maps.MapTypeId.ROADMAP, B.gcj02), i.SATELLITE = new S("satellite", () => BMAP_SATELLITE_MAP, () => google.maps.MapTypeId.SATELLITE, B.wgs84), i.HYBRID = new S("hybrid", () => BMAP_HYBRID_MAP, () => google.maps.MapTypeId.HYBRID, B.gcj02), i.TERRAIN = new S("terrain", () => (
|
|
958
958
|
/* 三维 */
|
|
959
959
|
BMAP_PERSPECTIVE_MAP
|
|
960
960
|
), () => (
|
|
961
961
|
/* 地形 */
|
|
962
962
|
google.maps.MapTypeId.TERRAIN
|
|
963
|
-
),
|
|
963
|
+
), B.wgs84), i.BUILD_IN_MAP_TYPES = new ai([i.NORMAL, i.SATELLITE, i.HYBRID, i.TERRAIN]);
|
|
964
964
|
})(A || (A = {}));
|
|
965
965
|
var sr = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(sr || {});
|
|
966
966
|
const nr = [A.NORMAL, A.SATELLITE, A.HYBRID];
|
|
@@ -990,11 +990,11 @@ const se = class extends nt {
|
|
|
990
990
|
}
|
|
991
991
|
onCreateOptions() {
|
|
992
992
|
const t = super.onCreateOptions();
|
|
993
|
-
return t.style = se.type2google[this.type], t.mapTypeIds = this.mapTypes.map((e) => e instanceof
|
|
993
|
+
return t.style = se.type2google[this.type], t.mapTypeIds = this.mapTypes.map((e) => e instanceof S ? e.getGoogleMapTypeId() : e.id), t;
|
|
994
994
|
}
|
|
995
995
|
addTo(t) {
|
|
996
996
|
super.addTo(t), this.mapTypes.forEach((e) => {
|
|
997
|
-
e instanceof
|
|
997
|
+
e instanceof S || t.innerMap.mapTypes.set(e.id, e.asGoogleMapType());
|
|
998
998
|
});
|
|
999
999
|
}
|
|
1000
1000
|
};
|
|
@@ -1180,8 +1180,8 @@ const It = class extends hr {
|
|
|
1180
1180
|
directions(t, e, r) {
|
|
1181
1181
|
const s = new URL("dir/", It.BASE_URL), n = new URLSearchParams(Object.entries({
|
|
1182
1182
|
api: "1",
|
|
1183
|
-
origin: Y.toString(t,
|
|
1184
|
-
destination: Y.toString(e,
|
|
1183
|
+
origin: Y.toString(t, B.wgs84),
|
|
1184
|
+
destination: Y.toString(e, B.wgs84),
|
|
1185
1185
|
travelmode: r
|
|
1186
1186
|
}).filter(qt));
|
|
1187
1187
|
return s.search = "?" + n.toString(), s;
|
|
@@ -1192,12 +1192,12 @@ c(ke, "BASE_URL", "https://www.google.com/maps/");
|
|
|
1192
1192
|
const At = class extends hr {
|
|
1193
1193
|
/** @see https://lbsyun.baidu.com/faq/api?title=webapi/uri/web#:~:text=%E6%9C%8D%E5%8A%A1%E5%9C%B0%E5%9D%80-,http%3A//api.map.baidu.com/direction,-//PC%26Webapp%E6%9C%8D%E5%8A%A1 */
|
|
1194
1194
|
directions(t, e, r = "driving") {
|
|
1195
|
-
const s = new URL("direction", At.BASE_URL), n = Y.getCoordType(e) ?? Y.getCoordType(t) ??
|
|
1195
|
+
const s = new URL("direction", At.BASE_URL), n = Y.getCoordType(e) ?? Y.getCoordType(t) ?? B.bd09, a = Y.toString(e, n), h = new URLSearchParams(Object.entries({
|
|
1196
1196
|
// baidu地图, 一定要有起点, 故这里用终点当起点, 防止导航失败
|
|
1197
1197
|
origin: Y.toString(t, n) ?? (typeof e != "string" ? `name:请选择起点|latlng:${a}` : a),
|
|
1198
1198
|
destination: a,
|
|
1199
1199
|
// 默认就是bd09
|
|
1200
|
-
coord_type: n ===
|
|
1200
|
+
coord_type: n === B.bd09 ? void 0 : n,
|
|
1201
1201
|
mode: r,
|
|
1202
1202
|
output: "html",
|
|
1203
1203
|
region: "中国",
|
|
@@ -1206,8 +1206,8 @@ const At = class extends hr {
|
|
|
1206
1206
|
return s.search = "?" + h.toString(), s;
|
|
1207
1207
|
}
|
|
1208
1208
|
};
|
|
1209
|
-
let
|
|
1210
|
-
c(
|
|
1209
|
+
let Be = At;
|
|
1210
|
+
c(Be, "BASE_URL", "https://api.map.baidu.com/");
|
|
1211
1211
|
let mi = class cr {
|
|
1212
1212
|
constructor(t, e, r) {
|
|
1213
1213
|
this.extend(cr, 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;
|
|
@@ -3273,7 +3273,7 @@ var Me = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overla
|
|
|
3273
3273
|
}
|
|
3274
3274
|
i.toBaidu = e;
|
|
3275
3275
|
})(Te || (Te = {}));
|
|
3276
|
-
class
|
|
3276
|
+
class Bi {
|
|
3277
3277
|
constructor(t, e) {
|
|
3278
3278
|
c(this, "baidu");
|
|
3279
3279
|
c(this, "google");
|
|
@@ -3347,7 +3347,7 @@ class Si {
|
|
|
3347
3347
|
}
|
|
3348
3348
|
}
|
|
3349
3349
|
let Ye;
|
|
3350
|
-
function
|
|
3350
|
+
function Si(i, t, e, r, s) {
|
|
3351
3351
|
return Ye || (Ye = Ii()), new Ye(i, t, e, r, s);
|
|
3352
3352
|
}
|
|
3353
3353
|
function Ii() {
|
|
@@ -3522,7 +3522,7 @@ class Mt extends We {
|
|
|
3522
3522
|
class Tt extends pt {
|
|
3523
3523
|
static create(t) {
|
|
3524
3524
|
var s;
|
|
3525
|
-
const e = this.coordType, r =
|
|
3525
|
+
const e = this.coordType, r = Si(
|
|
3526
3526
|
ce.toElement(t.content),
|
|
3527
3527
|
(s = t.position) == null ? void 0 : s.toGoogle(e),
|
|
3528
3528
|
t.offset,
|
|
@@ -4049,7 +4049,7 @@ class Ai extends ut {
|
|
|
4049
4049
|
c(this, "createMapTypeControl", ot.create);
|
|
4050
4050
|
c(this, "createZoomControl", ht.create);
|
|
4051
4051
|
c(this, "createScaleControl", at.create);
|
|
4052
|
-
this.buildInMapTypeId2BIMT = A.BUILD_IN_MAP_TYPES.getValueMap(
|
|
4052
|
+
this.buildInMapTypeId2BIMT = A.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.getId), this.baiduMapType2BIMT = A.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.asBaiduMapType), this.map = new BMap.Map(e, {
|
|
4053
4053
|
minZoom: r.minZoom && r.minZoom + Q,
|
|
4054
4054
|
maxZoom: r.maxZoom && r.maxZoom + Q,
|
|
4055
4055
|
mapType: r.buildInMapTypeId && ((s = this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId)) == null ? void 0 : s.asBaiduMapType()),
|
|
@@ -4208,8 +4208,8 @@ class Ai extends ut {
|
|
|
4208
4208
|
createPlacesService(e) {
|
|
4209
4209
|
return new Ti(this, e);
|
|
4210
4210
|
}
|
|
4211
|
-
|
|
4212
|
-
return new
|
|
4211
|
+
createMapUrls(e) {
|
|
4212
|
+
return new Be(e);
|
|
4213
4213
|
}
|
|
4214
4214
|
}
|
|
4215
4215
|
class Ri extends ut {
|
|
@@ -4230,7 +4230,7 @@ class Ri extends ut {
|
|
|
4230
4230
|
c(this, "createMapTypeControl", Pe.create);
|
|
4231
4231
|
c(this, "createZoomControl", ct.create);
|
|
4232
4232
|
c(this, "createScaleControl", lt.create);
|
|
4233
|
-
this.mapOptions = r, this.buildInMapTypeId2BIMT = A.BUILD_IN_MAP_TYPES.getValueMap(
|
|
4233
|
+
this.mapOptions = r, this.buildInMapTypeId2BIMT = A.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.getId), this.googleMapTypeId2BIMT = A.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.getGoogleMapTypeId);
|
|
4234
4234
|
const s = r.buildInMapTypeId && this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId);
|
|
4235
4235
|
this.map = new google.maps.Map(e, {
|
|
4236
4236
|
center: r.center.toGoogle((s ?? A.NORMAL).getGoogleCoordType()),
|
|
@@ -4305,7 +4305,7 @@ class Ri extends ut {
|
|
|
4305
4305
|
this.map.setMapTypeId(r ?? C("理论上来说不可能为空"));
|
|
4306
4306
|
}
|
|
4307
4307
|
setMapType(e) {
|
|
4308
|
-
e instanceof
|
|
4308
|
+
e instanceof S ? this.map.setMapTypeId(e.getGoogleMapTypeId()) : (this.map.mapTypes.set(e.id, e.asGoogleMapType()), this.map.setMapTypeId(e.id));
|
|
4309
4309
|
}
|
|
4310
4310
|
getMapType() {
|
|
4311
4311
|
const e = this.map.getMapTypeId() ?? google.maps.MapTypeId.ROADMAP, r = this.googleMapTypeId2BIMT.get(e);
|
|
@@ -4369,7 +4369,7 @@ class Ri extends ut {
|
|
|
4369
4369
|
createPlacesService(e) {
|
|
4370
4370
|
return new Mi(this, e);
|
|
4371
4371
|
}
|
|
4372
|
-
|
|
4372
|
+
createMapUrls(e) {
|
|
4373
4373
|
return new ke(e);
|
|
4374
4374
|
}
|
|
4375
4375
|
}
|
|
@@ -4395,7 +4395,7 @@ class $i extends ut {
|
|
|
4395
4395
|
return this.map;
|
|
4396
4396
|
}
|
|
4397
4397
|
get coordType() {
|
|
4398
|
-
return
|
|
4398
|
+
return B.wgs84;
|
|
4399
4399
|
}
|
|
4400
4400
|
getCenter() {
|
|
4401
4401
|
return y.fromHere(this.map.getCenter(), this.coordType);
|
|
@@ -4485,7 +4485,7 @@ class $i extends ut {
|
|
|
4485
4485
|
createPlacesService(e) {
|
|
4486
4486
|
throw new Error("Method not implemented.");
|
|
4487
4487
|
}
|
|
4488
|
-
|
|
4488
|
+
createMapUrls(e) {
|
|
4489
4489
|
throw new Error("Method not implemented.");
|
|
4490
4490
|
}
|
|
4491
4491
|
createInfoWindow(e) {
|
|
@@ -4704,8 +4704,8 @@ const Us = () => {
|
|
|
4704
4704
|
((s && s.type) !== i || Date.now() - (t ?? 0) > 1e3) && e(s);
|
|
4705
4705
|
}
|
|
4706
4706
|
return { eventLog: e, eventLogLess: r };
|
|
4707
|
-
},
|
|
4708
|
-
inject: [
|
|
4707
|
+
}, Bt = "$map", Ce = "onCreate", we = "onDestroy", P = w({
|
|
4708
|
+
inject: [Bt],
|
|
4709
4709
|
mounted() {
|
|
4710
4710
|
xe(this, Ce);
|
|
4711
4711
|
},
|
|
@@ -4724,7 +4724,7 @@ const Us = () => {
|
|
|
4724
4724
|
name: "tg-map",
|
|
4725
4725
|
provide() {
|
|
4726
4726
|
return {
|
|
4727
|
-
[
|
|
4727
|
+
[Bt]: jt(() => this.map)
|
|
4728
4728
|
};
|
|
4729
4729
|
},
|
|
4730
4730
|
inheritAttrs: !1,
|
|
@@ -4851,7 +4851,7 @@ const Us = () => {
|
|
|
4851
4851
|
buildInMapTypeId: this.mapTypeId
|
|
4852
4852
|
}
|
|
4853
4853
|
);
|
|
4854
|
-
if (this.map =
|
|
4854
|
+
if (this.map = Br(t), this.mapType && t.setMapType(this.mapType), "ready" in this.attrs.listeners && console.error("地图载入完成的事件已经从ready改为了load, 请手动修改"), F(
|
|
4855
4855
|
this.attrs.listeners,
|
|
4856
4856
|
t,
|
|
4857
4857
|
/* excludes: */
|
|
@@ -4892,7 +4892,7 @@ const q = (i, t) => {
|
|
|
4892
4892
|
};
|
|
4893
4893
|
function ji(i, t, e, r, s, n) {
|
|
4894
4894
|
return j(), V("div", de({ class: "tg-map" }, i.attrs.binds), [
|
|
4895
|
-
|
|
4895
|
+
Sr("div", {
|
|
4896
4896
|
ref: "map",
|
|
4897
4897
|
class: Ne({
|
|
4898
4898
|
"tg-map__map": !0,
|
|
@@ -5056,7 +5056,7 @@ function Cr() {
|
|
|
5056
5056
|
return t;
|
|
5057
5057
|
}
|
|
5058
5058
|
function es() {
|
|
5059
|
-
const i = Rr(
|
|
5059
|
+
const i = Rr(Bt);
|
|
5060
5060
|
let t, e;
|
|
5061
5061
|
return i == null && C(`<${Cr() || "unknown"}>必须作为<tg-map>的子代组件`), {
|
|
5062
5062
|
mapRef: i,
|
|
@@ -5263,7 +5263,7 @@ const wr = /* @__PURE__ */ q(rs, [["render", is]]), ss = w({
|
|
|
5263
5263
|
this.$map.removeOverlay(this.overlay);
|
|
5264
5264
|
}
|
|
5265
5265
|
});
|
|
5266
|
-
class os extends
|
|
5266
|
+
class os extends Bi {
|
|
5267
5267
|
constructor(t, e, r, s) {
|
|
5268
5268
|
super(t, e), this.content = r, this.position = s;
|
|
5269
5269
|
}
|
|
@@ -5935,7 +5935,7 @@ export {
|
|
|
5935
5935
|
_t as BaiduInfoBoxOverlay,
|
|
5936
5936
|
yt as BaiduInfoWindow,
|
|
5937
5937
|
ot as BaiduMapTypeControl,
|
|
5938
|
-
|
|
5938
|
+
Be as BaiduMapUrls,
|
|
5939
5939
|
Oe as BaiduMarker,
|
|
5940
5940
|
_i as BaiduMarkerClusterer,
|
|
5941
5941
|
We as BaiduOverlay,
|
|
@@ -5947,12 +5947,12 @@ export {
|
|
|
5947
5947
|
at as BaiduScaleControl,
|
|
5948
5948
|
Ci as BaiduSearchBox,
|
|
5949
5949
|
ht as BaiduZoomControl,
|
|
5950
|
-
|
|
5950
|
+
S as BuildInMapType,
|
|
5951
5951
|
ir as BuildInMapTypeId,
|
|
5952
5952
|
me as CachedValue,
|
|
5953
5953
|
k as ControlPosition,
|
|
5954
5954
|
R as ControlPositionConverter,
|
|
5955
|
-
|
|
5955
|
+
B as CoordType,
|
|
5956
5956
|
li as CustomControl,
|
|
5957
5957
|
ai as FastFindValues,
|
|
5958
5958
|
pi as GoogleAutocomplete,
|
|
@@ -5982,7 +5982,7 @@ export {
|
|
|
5982
5982
|
Y as Location,
|
|
5983
5983
|
Ce as MIXIN_HOOK_CREATE,
|
|
5984
5984
|
we as MIXIN_HOOK_DESTROY,
|
|
5985
|
-
|
|
5985
|
+
Bt as MIXIN_MAP_NAME,
|
|
5986
5986
|
he as MVCArrays,
|
|
5987
5987
|
P as MapMixin,
|
|
5988
5988
|
A as MapType,
|
|
@@ -6036,8 +6036,8 @@ export {
|
|
|
6036
6036
|
Jt as getTgMapConfig,
|
|
6037
6037
|
Ds as isDef,
|
|
6038
6038
|
qt as isEntryValueDef,
|
|
6039
|
-
|
|
6040
|
-
|
|
6039
|
+
Ss as isInstanceOf,
|
|
6040
|
+
Bs as lateinit,
|
|
6041
6041
|
ye as noop,
|
|
6042
6042
|
m as optionalProp,
|
|
6043
6043
|
ki as path,
|