tg-map-vue3 4.1.3 → 4.1.5
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 +7 -0
- package/README.md +9 -6
- package/dist/assets/404-D34FYbNB.js +2 -0
- package/dist/assets/404-D34FYbNB.js.map +1 -0
- package/dist/assets/ControlDemo-BvElkDpq.js +2 -0
- package/dist/assets/ControlDemo-BvElkDpq.js.map +1 -0
- package/dist/assets/CssPositionDemo-DbSCIYVw.js +2 -0
- package/dist/assets/CssPositionDemo-DbSCIYVw.js.map +1 -0
- package/dist/assets/HeatmapDemo-CKEH0W3g.js +2 -0
- package/dist/assets/HeatmapDemo-CKEH0W3g.js.map +1 -0
- package/dist/assets/InfoDemo-BSp_czCk.js +2 -0
- package/dist/assets/InfoDemo-BSp_czCk.js.map +1 -0
- package/dist/assets/LifecycleBugDemo-Bldh5GGg.js +2 -0
- package/dist/assets/LifecycleBugDemo-Bldh5GGg.js.map +1 -0
- package/dist/assets/Main-DGU58I8w.js +2 -0
- package/dist/assets/Main-DGU58I8w.js.map +1 -0
- package/dist/assets/MapDemo-Crw8VrAs.vue +155 -0
- package/dist/assets/MapDemo-Z4UTQNq5.js +2 -0
- package/dist/assets/MapDemo-Z4UTQNq5.js.map +1 -0
- package/dist/assets/MapTypeDemo-bv5WPraY.js +2 -0
- package/dist/assets/MapTypeDemo-bv5WPraY.js.map +1 -0
- package/dist/assets/MapUrlsDemo-D0075XSg.js +2 -0
- package/dist/assets/MapUrlsDemo-D0075XSg.js.map +1 -0
- package/dist/assets/MarkerDemo-D9YK-9Js.js +2 -0
- package/dist/assets/MarkerDemo-D9YK-9Js.js.map +1 -0
- package/dist/assets/MarkerDemo-D_C5RDUy.vue +200 -0
- package/dist/assets/MultiMapDemo-D-BWUDR1.js +2 -0
- package/dist/assets/MultiMapDemo-D-BWUDR1.js.map +1 -0
- package/dist/assets/OverlayDemo-BtSawKbN.js +2 -0
- package/dist/assets/OverlayDemo-BtSawKbN.js.map +1 -0
- package/dist/assets/PlaceDemo-DswQxAPt.js +2 -0
- package/dist/assets/PlaceDemo-DswQxAPt.js.map +1 -0
- package/dist/assets/ReactiveDemo-D5H5d9dh.js +2 -0
- package/dist/assets/ReactiveDemo-D5H5d9dh.js.map +1 -0
- package/dist/assets/ShapeDemo-CX9Jwa7y.js +2 -0
- package/dist/assets/ShapeDemo-CX9Jwa7y.js.map +1 -0
- package/dist/assets/ShapeDemo-t5GXEmrA.vue +162 -0
- package/dist/assets/TalksDemo-D0da45jA.js +2 -0
- package/dist/assets/TalksDemo-D0da45jA.js.map +1 -0
- package/dist/assets/V2Demo-vX7YCqCc.js +2 -0
- package/dist/assets/V2Demo-vX7YCqCc.js.map +1 -0
- package/dist/assets/index-C6IOkH7Y.css +1 -0
- package/dist/assets/index-DkG0ZlIx.js +352 -0
- package/dist/assets/index-DkG0ZlIx.js.map +1 -0
- package/dist/index.html +14 -0
- package/dist/src/components/TgMap.vue.d.ts +161 -153
- package/dist/src/components/controls/TgZoomControl.vue.d.ts +6 -0
- package/dist/src/components/overlays/TgInfoBox.vue.d.ts +2 -0
- package/package.json +6 -4
- package/dist/tg-map.cjs +0 -2
- package/dist/tg-map.cjs.map +0 -1
- package/dist/tg-map.css +0 -1
- package/dist/tg-map.js +0 -1421
- package/dist/tg-map.js.map +0 -1
package/dist/tg-map.js
DELETED
|
@@ -1,1421 +0,0 @@
|
|
|
1
|
-
import { noop as S, typed as x, lateinit as l, path as Y, throwError as M, Arrays as Q, deepEqual as ee } from "tg-commons";
|
|
2
|
-
import { Strings as F, TgMapType as D, unwrapStringEnumValue as d, loadCachedMap as te, TgMapFactory as se, BuildInMapTypeId as z, GestureHandlingOptions as W, bindEvents as v, MapType as re, Objects as ie, InfoWindowModeValues as oe, LatLng as f, dimen as ae, ControlPosition as c, CustomControl as ne, MapTypeControlType as le, TrafficLayer as he, MapPane as B, ElementOverlay as de, BaiduMarker as G, setTgMapConfig as pe } from "tg-map-core";
|
|
3
|
-
export * from "tg-map-core";
|
|
4
|
-
import { createCommentVNode as R, computed as q, defineComponent as n, markRaw as ce, watch as T, createElementBlock as b, openBlock as C, mergeProps as I, createElementVNode as me, renderSlot as y, normalizeClass as A, normalizeStyle as ue, getCurrentInstance as ye, inject as fe, onBeforeUnmount as ve, onMounted as ge, toRaw as E, withDirectives as $e, vShow as be } from "vue";
|
|
5
|
-
import "tg-map-core/dist/tg-map-core.css";
|
|
6
|
-
function u(e, t) {
|
|
7
|
-
return {
|
|
8
|
-
type: String,
|
|
9
|
-
default: t,
|
|
10
|
-
validator: (r) => Object.values(e).includes(r)
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
function Ce(e, t) {
|
|
14
|
-
return {
|
|
15
|
-
type: String,
|
|
16
|
-
default: t,
|
|
17
|
-
validator: (r) => e.includes(r)
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
function m(e) {
|
|
21
|
-
return {
|
|
22
|
-
type: e,
|
|
23
|
-
required: !0
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function s(e, t) {
|
|
27
|
-
return {
|
|
28
|
-
type: e,
|
|
29
|
-
default: t
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function Qe(e) {
|
|
33
|
-
const t = {};
|
|
34
|
-
return Object.entries(e).forEach(([r, i]) => {
|
|
35
|
-
const o = `__${r}`;
|
|
36
|
-
t[r] = {
|
|
37
|
-
get() {
|
|
38
|
-
const a = this[o];
|
|
39
|
-
return a === void 0 ? i : a;
|
|
40
|
-
},
|
|
41
|
-
set(a) {
|
|
42
|
-
this[o] = a;
|
|
43
|
-
}
|
|
44
|
-
// Vue3已经不支持该属性
|
|
45
|
-
// cache: false
|
|
46
|
-
};
|
|
47
|
-
}), t;
|
|
48
|
-
}
|
|
49
|
-
const k = {
|
|
50
|
-
enumerable: !0,
|
|
51
|
-
configurable: !0,
|
|
52
|
-
get: S,
|
|
53
|
-
set: S
|
|
54
|
-
};
|
|
55
|
-
function _e(e) {
|
|
56
|
-
return Object.keys(e).forEach((t) => {
|
|
57
|
-
const r = e[t];
|
|
58
|
-
let i = !1;
|
|
59
|
-
typeof r == "function" ? (k.get = r, k.set = S, i = !0) : typeof r == "object" && typeof r.get == "function" && (k.get = r.get, k.set = r.set, i = !0), i && (e[t] = Object.defineProperty(e, t, k));
|
|
60
|
-
}), e;
|
|
61
|
-
}
|
|
62
|
-
function et(e) {
|
|
63
|
-
return _e(e);
|
|
64
|
-
}
|
|
65
|
-
function L() {
|
|
66
|
-
return R();
|
|
67
|
-
}
|
|
68
|
-
function w(e, t) {
|
|
69
|
-
const r = e.$options[t];
|
|
70
|
-
if (r)
|
|
71
|
-
for (const i of r)
|
|
72
|
-
i.call(e);
|
|
73
|
-
}
|
|
74
|
-
function tt(e, t) {
|
|
75
|
-
for (const r of e)
|
|
76
|
-
if (r.$options.name === t.name)
|
|
77
|
-
return r;
|
|
78
|
-
}
|
|
79
|
-
function st(e, t) {
|
|
80
|
-
if (!e.default) return;
|
|
81
|
-
const r = e.default();
|
|
82
|
-
for (const i of r)
|
|
83
|
-
if ((i == null ? void 0 : i.type).name === t.name)
|
|
84
|
-
return i;
|
|
85
|
-
}
|
|
86
|
-
function ke(e, t) {
|
|
87
|
-
const r = {}, i = {}, o = {};
|
|
88
|
-
return Object.keys(e).forEach((a) => {
|
|
89
|
-
a.startsWith("on") ? r[F.pascal2kebab(a.substring(2))] = e[a] : i[a] = e[a];
|
|
90
|
-
}), t && Object.keys(t).forEach((a) => {
|
|
91
|
-
a.startsWith("on") && (o[F.pascal2kebab(a.substring(2))] = t[a]);
|
|
92
|
-
}), {
|
|
93
|
-
/** class/style/未声明的属性 等 */
|
|
94
|
-
binds: i,
|
|
95
|
-
/** 未声明的事件 */
|
|
96
|
-
listeners: r,
|
|
97
|
-
/** 声明在`props`中的事件 */
|
|
98
|
-
listenerProps: o
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
function g(e, t) {
|
|
102
|
-
return q(() => ke(e, t));
|
|
103
|
-
}
|
|
104
|
-
function h() {
|
|
105
|
-
return Function;
|
|
106
|
-
}
|
|
107
|
-
const rt = () => {
|
|
108
|
-
let e, t;
|
|
109
|
-
function r(o) {
|
|
110
|
-
console.log(o), e = o && o.type, t = Date.now();
|
|
111
|
-
}
|
|
112
|
-
function i(o) {
|
|
113
|
-
((o && o.type) !== e || Date.now() - (t ?? 0) > 1e3) && r(o);
|
|
114
|
-
}
|
|
115
|
-
return { eventLog: r, eventLogLess: i };
|
|
116
|
-
};
|
|
117
|
-
function U(e, t) {
|
|
118
|
-
return (e == null ? void 0 : e.$options.name) === t.name;
|
|
119
|
-
}
|
|
120
|
-
function X(e, t) {
|
|
121
|
-
return U(e, t) ? e : void 0;
|
|
122
|
-
}
|
|
123
|
-
function Z(e, t, r) {
|
|
124
|
-
let i = t;
|
|
125
|
-
for (; i; ) {
|
|
126
|
-
if (U(i, e))
|
|
127
|
-
return i;
|
|
128
|
-
if (r && U(i, r))
|
|
129
|
-
return;
|
|
130
|
-
i = i.$parent;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
const j = "$map", O = "onCreate", P = "onDestroy", p = n({
|
|
134
|
-
inject: [j],
|
|
135
|
-
mounted() {
|
|
136
|
-
w(this, O);
|
|
137
|
-
},
|
|
138
|
-
beforeUnmount() {
|
|
139
|
-
w(this, P);
|
|
140
|
-
},
|
|
141
|
-
methods: {
|
|
142
|
-
recreate() {
|
|
143
|
-
w(this, P), w(this, O);
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
render() {
|
|
147
|
-
return L();
|
|
148
|
-
}
|
|
149
|
-
}), Te = {
|
|
150
|
-
/** type没做响应式, 但外部可以把type作为tg-map的key, 让type修改时完全重建tg-map */
|
|
151
|
-
type: u(D, D.google),
|
|
152
|
-
/**
|
|
153
|
-
* 当对该属性使用双向绑定时, 改变center将触发update:center又反过来触发center改变, 最终导致无限循环...
|
|
154
|
-
* 当前通过setCenter()时判断center是否有改变来避免该问题, 但为了避免可能存在的问题, 另外设计了如下机制:
|
|
155
|
-
* - :center-sync-delay="300": 延时同步center, 防止center的值更新过快
|
|
156
|
-
* - :current-center.sync="currentCenter": 实时获取center的值
|
|
157
|
-
* - :last-center.sync="center": 获取tg-map销毁时的最后的center的值, 使用这种方式可以做到type切换时保留中心点位置
|
|
158
|
-
* @see AbstractMapEventMap.center-changed
|
|
159
|
-
*/
|
|
160
|
-
center: m(f),
|
|
161
|
-
/**
|
|
162
|
-
* 同步center的延时
|
|
163
|
-
* @default 300
|
|
164
|
-
* @see center
|
|
165
|
-
*/
|
|
166
|
-
centerSyncDelay: s(Number, 300),
|
|
167
|
-
/**
|
|
168
|
-
* 仅用来获取center的值, 需要设置center的值请使用`center`属性
|
|
169
|
-
* @see center
|
|
170
|
-
* @deprecated 用的太少, 故maptalks未实现该属性, 要实时获取中心点, 请将{@link centerSyncDelay}设为0
|
|
171
|
-
*/
|
|
172
|
-
currentCenter: s(f),
|
|
173
|
-
/**
|
|
174
|
-
* 仅用于获取tg-map销毁时的最后的center的值
|
|
175
|
-
* @see center
|
|
176
|
-
* @deprecated 用的太少, 故maptalks未实现该属性
|
|
177
|
-
*/
|
|
178
|
-
lastCenter: s(f),
|
|
179
|
-
zoom: m(Number),
|
|
180
|
-
/**
|
|
181
|
-
* 该属性不会响应式更新, 要让它立即生效, 请参考{@link file://./../views/map/InfoDemo.vue#L3}
|
|
182
|
-
* @see MapOptions.infoWindowMode
|
|
183
|
-
*/
|
|
184
|
-
infoWindowMode: Ce(oe),
|
|
185
|
-
gestureHandling: u(W),
|
|
186
|
-
minZoom: s(Number),
|
|
187
|
-
maxZoom: s(Number),
|
|
188
|
-
mapStyle: s(Object),
|
|
189
|
-
mapTypeId: u(z),
|
|
190
|
-
/** 地图类型对象, 优先级比mapTypeId高 */
|
|
191
|
-
mapType: s(Object),
|
|
192
|
-
hideLogo: s(Boolean),
|
|
193
|
-
onLoad: h(),
|
|
194
|
-
"onUpdate:center": h(),
|
|
195
|
-
"onUpdate:current-center": h(),
|
|
196
|
-
"onUpdate:last-center": h(),
|
|
197
|
-
"onUpdate:map-type": h(),
|
|
198
|
-
"onUpdate:map-type-id": h(),
|
|
199
|
-
"onUpdate:zoom": h(),
|
|
200
|
-
onError: h()
|
|
201
|
-
}, Oe = n({
|
|
202
|
-
name: "tg-map",
|
|
203
|
-
provide() {
|
|
204
|
-
return {
|
|
205
|
-
[j]: q(() => this.map)
|
|
206
|
-
};
|
|
207
|
-
},
|
|
208
|
-
inheritAttrs: !1,
|
|
209
|
-
props: Te,
|
|
210
|
-
/** 声明事件的类型信息, 详见: {@link splitAttrs} */
|
|
211
|
-
emits: void 0,
|
|
212
|
-
setup(e, { attrs: t }) {
|
|
213
|
-
return {
|
|
214
|
-
attrs: g(t, e),
|
|
215
|
-
centerSyncTimeoutId: void 0
|
|
216
|
-
};
|
|
217
|
-
},
|
|
218
|
-
data() {
|
|
219
|
-
return {
|
|
220
|
-
map: x(),
|
|
221
|
-
isDestroyed: !1
|
|
222
|
-
};
|
|
223
|
-
},
|
|
224
|
-
computed: {
|
|
225
|
-
propsJson() {
|
|
226
|
-
return ie.toJsonSafely(this.$props);
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
watch: {
|
|
230
|
-
gestureHandling(e) {
|
|
231
|
-
var t;
|
|
232
|
-
e && ((t = this.map) == null || t.setGestureHandling(d(e, W)));
|
|
233
|
-
},
|
|
234
|
-
minZoom(e) {
|
|
235
|
-
var t;
|
|
236
|
-
(t = this.map) == null || t.setMinZoom(e);
|
|
237
|
-
},
|
|
238
|
-
maxZoom(e) {
|
|
239
|
-
var t;
|
|
240
|
-
(t = this.map) == null || t.setMaxZoom(e);
|
|
241
|
-
},
|
|
242
|
-
mapStyle(e) {
|
|
243
|
-
var t;
|
|
244
|
-
(t = this.map) == null || t.setMapStyle(e);
|
|
245
|
-
},
|
|
246
|
-
mapTypeId(e) {
|
|
247
|
-
var t;
|
|
248
|
-
e && ((t = this.map) == null || t.setBuildInMapTypeId(d(e, z)));
|
|
249
|
-
},
|
|
250
|
-
mapType(e) {
|
|
251
|
-
var t;
|
|
252
|
-
(t = this.map) == null || t.setMapType(e ?? re.NORMAL);
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
async mounted() {
|
|
256
|
-
const e = d(this.type, D);
|
|
257
|
-
try {
|
|
258
|
-
await te(e);
|
|
259
|
-
} catch (o) {
|
|
260
|
-
this.$emit("error", o);
|
|
261
|
-
return;
|
|
262
|
-
}
|
|
263
|
-
if (this.isDestroyed) {
|
|
264
|
-
console.warn(`tg-map(type=${e})已销毁, 不需要继续执行`);
|
|
265
|
-
return;
|
|
266
|
-
}
|
|
267
|
-
const t = se.createMap(
|
|
268
|
-
e,
|
|
269
|
-
this.$refs.map,
|
|
270
|
-
/* options: */
|
|
271
|
-
{
|
|
272
|
-
center: this.center,
|
|
273
|
-
zoom: this.zoom,
|
|
274
|
-
infoWindowMode: this.infoWindowMode,
|
|
275
|
-
gestureHandling: d(this.gestureHandling, W),
|
|
276
|
-
minZoom: this.minZoom,
|
|
277
|
-
maxZoom: this.maxZoom,
|
|
278
|
-
mapStyle: this.mapStyle,
|
|
279
|
-
buildInMapTypeId: d(this.mapTypeId, z)
|
|
280
|
-
}
|
|
281
|
-
);
|
|
282
|
-
if (this.map = ce(t), this.mapType && t.setMapType(this.mapType), "ready" in this.attrs.listeners && console.error("地图载入完成的事件已经从ready改为了load, 请手动修改"), v(
|
|
283
|
-
this.attrs.listeners,
|
|
284
|
-
t,
|
|
285
|
-
/* excludes: */
|
|
286
|
-
["load"]
|
|
287
|
-
), this.$emit("load", t), T([
|
|
288
|
-
() => this.zoom,
|
|
289
|
-
() => this.center
|
|
290
|
-
//
|
|
291
|
-
], ([o, a], [_, J]) => {
|
|
292
|
-
o !== _ && t.setZoom(o), a !== J && (t.getCenter().equals(a) || t.setCenter(a));
|
|
293
|
-
}), this.attrs.listenerProps["update:center"]) {
|
|
294
|
-
const o = () => this.$emit("update:center", t.getCenter());
|
|
295
|
-
t.addEventListener("center-changed", () => {
|
|
296
|
-
this.centerSyncDelay > 0 ? (clearTimeout(this.centerSyncTimeoutId), this.centerSyncTimeoutId = setTimeout(o, this.centerSyncDelay)) : o();
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
this.attrs.listenerProps["update:current-center"] && (this.$emit("update:current-center", this.center), t.addEventListener("center-changed", () => {
|
|
300
|
-
this.$emit("update:current-center", t.getCenter());
|
|
301
|
-
})), this.attrs.listenerProps["update:zoom"] && t.addEventListener("zoom-changed", () => {
|
|
302
|
-
this.$emit("update:zoom", t.getZoom());
|
|
303
|
-
});
|
|
304
|
-
const r = this.attrs.listenerProps["update:map-type"], i = this.attrs.listenerProps["update:map-type-id"];
|
|
305
|
-
(r || i) && t.addEventListener("map-type-changed", () => {
|
|
306
|
-
const o = t.getMapType();
|
|
307
|
-
r && this.$emit("update:map-type", o), i && this.$emit("update:map-type-id", o.id);
|
|
308
|
-
});
|
|
309
|
-
},
|
|
310
|
-
unmounted() {
|
|
311
|
-
this.isDestroyed = !0, this.map && (this.attrs.listenerProps["update:last-center"] && this.$emit("update:last-center", this.map.getCenter()), this.attrs.listenerProps["update:center"] && (clearTimeout(this.centerSyncTimeoutId), this.$emit("update:center", this.map.getCenter())));
|
|
312
|
-
},
|
|
313
|
-
methods: {}
|
|
314
|
-
}), $ = (e, t) => {
|
|
315
|
-
const r = e.__vccOpts || e;
|
|
316
|
-
for (const [i, o] of t)
|
|
317
|
-
r[i] = o;
|
|
318
|
-
return r;
|
|
319
|
-
};
|
|
320
|
-
function Pe(e, t, r, i, o, a) {
|
|
321
|
-
return C(), b("div", I({ class: "tg-map" }, e.attrs.binds), [
|
|
322
|
-
me("div", {
|
|
323
|
-
ref: "map",
|
|
324
|
-
class: A({
|
|
325
|
-
"tg-map__map": !0,
|
|
326
|
-
[`tg-map__map--hide-logo-${e.type}`]: e.hideLogo
|
|
327
|
-
})
|
|
328
|
-
}, null, 2),
|
|
329
|
-
R("", !0),
|
|
330
|
-
e.map ? y(e.$slots, "default", { key: 1 }) : R("", !0),
|
|
331
|
-
y(e.$slots, "overlay")
|
|
332
|
-
], 16);
|
|
333
|
-
}
|
|
334
|
-
const N = /* @__PURE__ */ $(Oe, [["render", Pe]]), Ie = n({
|
|
335
|
-
name: "tg-map-widget",
|
|
336
|
-
props: {
|
|
337
|
-
left: {
|
|
338
|
-
type: [Number, String],
|
|
339
|
-
default: null
|
|
340
|
-
},
|
|
341
|
-
top: {
|
|
342
|
-
type: [Number, String],
|
|
343
|
-
default: null
|
|
344
|
-
},
|
|
345
|
-
right: {
|
|
346
|
-
type: [Number, String],
|
|
347
|
-
default: null
|
|
348
|
-
},
|
|
349
|
-
bottom: {
|
|
350
|
-
type: [Number, String],
|
|
351
|
-
default: null
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
computed: {
|
|
355
|
-
topValue() {
|
|
356
|
-
return this.top == null && this.bottom == null ? 0 : this.top;
|
|
357
|
-
}
|
|
358
|
-
},
|
|
359
|
-
methods: {
|
|
360
|
-
dimen: ae
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
function Me(e, t, r, i, o, a) {
|
|
364
|
-
return C(), b("div", {
|
|
365
|
-
class: A(e.$options.name),
|
|
366
|
-
style: ue({ left: e.dimen(e.left), top: e.dimen(e.topValue), right: e.dimen(e.right), bottom: e.dimen(e.bottom) })
|
|
367
|
-
}, [
|
|
368
|
-
y(e.$slots, "default")
|
|
369
|
-
], 6);
|
|
370
|
-
}
|
|
371
|
-
const it = /* @__PURE__ */ $(Ie, [["render", Me]]), we = n({
|
|
372
|
-
name: "tg-custom-control",
|
|
373
|
-
mixins: [p],
|
|
374
|
-
props: {
|
|
375
|
-
position: u(c, c.RIGHT_BOTTOM)
|
|
376
|
-
},
|
|
377
|
-
setup() {
|
|
378
|
-
return {
|
|
379
|
-
control: l()
|
|
380
|
-
};
|
|
381
|
-
},
|
|
382
|
-
watch: {
|
|
383
|
-
position() {
|
|
384
|
-
this.recreate();
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
onCreate() {
|
|
388
|
-
X(this.$parent, N) || console.warn("请将tg-custom-control放到tg-map中");
|
|
389
|
-
const { $el: e } = this, t = class extends ne {
|
|
390
|
-
onCreateElement() {
|
|
391
|
-
return e;
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
this.control = new t(d(this.position, c)), this.$map.addCustomControl(this.control);
|
|
395
|
-
},
|
|
396
|
-
onDestroy() {
|
|
397
|
-
this.$map.removeCustomControl(this.control);
|
|
398
|
-
}
|
|
399
|
-
});
|
|
400
|
-
function Se(e, t, r, i, o, a) {
|
|
401
|
-
return C(), b("div", {
|
|
402
|
-
class: A(e.$options.name)
|
|
403
|
-
}, [
|
|
404
|
-
y(e.$slots, "default")
|
|
405
|
-
], 2);
|
|
406
|
-
}
|
|
407
|
-
const ot = /* @__PURE__ */ $(we, [["render", Se]]), at = n({
|
|
408
|
-
name: "tg-map-type-control",
|
|
409
|
-
mixins: [p],
|
|
410
|
-
props: {
|
|
411
|
-
position: u(c, c.TOP_LEFT),
|
|
412
|
-
type: u(le),
|
|
413
|
-
mapTypes: s(Array)
|
|
414
|
-
},
|
|
415
|
-
setup() {
|
|
416
|
-
return {
|
|
417
|
-
control: l()
|
|
418
|
-
};
|
|
419
|
-
},
|
|
420
|
-
watch: {
|
|
421
|
-
position(e) {
|
|
422
|
-
this.control.setPosition(e);
|
|
423
|
-
},
|
|
424
|
-
type() {
|
|
425
|
-
this.recreate();
|
|
426
|
-
},
|
|
427
|
-
mapTypes: {
|
|
428
|
-
handler() {
|
|
429
|
-
this.recreate();
|
|
430
|
-
},
|
|
431
|
-
deep: !0
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
onCreate() {
|
|
435
|
-
this.control = this.$map.createMapTypeControl(d(this)), this.$map.addControl(this.control);
|
|
436
|
-
},
|
|
437
|
-
onDestroy() {
|
|
438
|
-
this.$map.removeControl(this.control);
|
|
439
|
-
}
|
|
440
|
-
}), nt = n({
|
|
441
|
-
name: "tg-scale-control",
|
|
442
|
-
mixins: [p],
|
|
443
|
-
props: {
|
|
444
|
-
position: u(c, c.BOTTOM_RIGHT)
|
|
445
|
-
},
|
|
446
|
-
setup() {
|
|
447
|
-
return {
|
|
448
|
-
control: l()
|
|
449
|
-
};
|
|
450
|
-
},
|
|
451
|
-
watch: {
|
|
452
|
-
position(e) {
|
|
453
|
-
this.control.setPosition(e);
|
|
454
|
-
}
|
|
455
|
-
},
|
|
456
|
-
onCreate() {
|
|
457
|
-
this.control = this.$map.createScaleControl(d(this)), this.$map.addControl(this.control);
|
|
458
|
-
},
|
|
459
|
-
onDestroy() {
|
|
460
|
-
this.$map.removeControl(this.control);
|
|
461
|
-
}
|
|
462
|
-
});
|
|
463
|
-
function K() {
|
|
464
|
-
var r;
|
|
465
|
-
const e = (r = ye()) == null ? void 0 : r.type;
|
|
466
|
-
let t = (e == null ? void 0 : e.name) ?? (e == null ? void 0 : e.__name);
|
|
467
|
-
if (!t) {
|
|
468
|
-
const i = e == null ? void 0 : e.__file;
|
|
469
|
-
i && (t = Y.basename(i, ".vue"));
|
|
470
|
-
}
|
|
471
|
-
return t;
|
|
472
|
-
}
|
|
473
|
-
function V() {
|
|
474
|
-
const e = fe(j);
|
|
475
|
-
let t, r;
|
|
476
|
-
return e == null && M(`<${K() || "unknown"}>必须作为<tg-map>的子代组件`), {
|
|
477
|
-
mapRef: e,
|
|
478
|
-
/** 读取map对象, 只要放在<tg-map>里面的组件(除#overlay插槽外)都能够立即读取到map对象 */
|
|
479
|
-
get map() {
|
|
480
|
-
return e.value ?? M("map尚未初始化");
|
|
481
|
-
},
|
|
482
|
-
/** 地图元素创建回调 */
|
|
483
|
-
[O](i) {
|
|
484
|
-
ge(i), t && M(`${O}只能调用一次`), t = i;
|
|
485
|
-
},
|
|
486
|
-
/** 地图元素销毁回调 */
|
|
487
|
-
[P](i) {
|
|
488
|
-
ve(i), r && M(`${P}只能调用一次`), r = i;
|
|
489
|
-
},
|
|
490
|
-
/** 重新创建地图元素 */
|
|
491
|
-
recreate() {
|
|
492
|
-
r == null || r(), t == null || t();
|
|
493
|
-
}
|
|
494
|
-
};
|
|
495
|
-
}
|
|
496
|
-
const lt = n({
|
|
497
|
-
name: "tg-street-view-control",
|
|
498
|
-
props: {
|
|
499
|
-
position: u(c, c.RIGHT_BOTTOM)
|
|
500
|
-
},
|
|
501
|
-
setup(e) {
|
|
502
|
-
let t = l();
|
|
503
|
-
const { map: r, onCreate: i, onDestroy: o } = V();
|
|
504
|
-
return i(() => {
|
|
505
|
-
t = r.createStreetViewControl(d(e)), r.addControl(t);
|
|
506
|
-
}), o(() => {
|
|
507
|
-
r.removeControl(t);
|
|
508
|
-
}), T(() => e.position, (a) => {
|
|
509
|
-
t.setPosition(d(a, c));
|
|
510
|
-
}), L;
|
|
511
|
-
}
|
|
512
|
-
}), ht = n({
|
|
513
|
-
name: "tg-zoom-control",
|
|
514
|
-
props: {
|
|
515
|
-
position: u(c, c.RIGHT_BOTTOM)
|
|
516
|
-
},
|
|
517
|
-
setup(e) {
|
|
518
|
-
let t = l();
|
|
519
|
-
const { map: r, onCreate: i, onDestroy: o } = V();
|
|
520
|
-
return i(() => {
|
|
521
|
-
t = r.createZoomControl(d(e)), r.addControl(t);
|
|
522
|
-
}), o(() => {
|
|
523
|
-
r.removeControl(t);
|
|
524
|
-
}), T(() => e.position, (a) => {
|
|
525
|
-
t.setPosition(d(a, c));
|
|
526
|
-
}), L;
|
|
527
|
-
}
|
|
528
|
-
}), dt = n({
|
|
529
|
-
name: "tg-heatmap",
|
|
530
|
-
props: {
|
|
531
|
-
maxIntensity: s(Number),
|
|
532
|
-
gradient: s(Object),
|
|
533
|
-
opacity: s(Number),
|
|
534
|
-
radius: s(Number),
|
|
535
|
-
data: m(Array)
|
|
536
|
-
},
|
|
537
|
-
setup(e) {
|
|
538
|
-
const { map: t, onCreate: r, onDestroy: i } = V();
|
|
539
|
-
let o = l();
|
|
540
|
-
return r(() => {
|
|
541
|
-
o = t.createHeatmap(e);
|
|
542
|
-
}), i(() => {
|
|
543
|
-
o.remove();
|
|
544
|
-
}), T(() => e.data, (a) => o.setData(a)), T(
|
|
545
|
-
[() => e.maxIntensity, () => e.gradient, () => e.opacity, () => e.radius],
|
|
546
|
-
() => o.setOptions(e)
|
|
547
|
-
), L;
|
|
548
|
-
}
|
|
549
|
-
}), xe = n({
|
|
550
|
-
name: "tg-marker-clusterer",
|
|
551
|
-
mixins: [p],
|
|
552
|
-
// markers从this.$children中读取, 故需要省略(Omit)
|
|
553
|
-
props: {
|
|
554
|
-
gridSize: s(Number),
|
|
555
|
-
maxZoom: s(Number),
|
|
556
|
-
minClusterSize: s(Number),
|
|
557
|
-
averageCenter: s(Boolean),
|
|
558
|
-
styles: s(Array),
|
|
559
|
-
stylesIndexCalculator: s(Function),
|
|
560
|
-
zIndex: s(Number)
|
|
561
|
-
},
|
|
562
|
-
setup() {
|
|
563
|
-
return {
|
|
564
|
-
clusterer: l(),
|
|
565
|
-
markers: x([])
|
|
566
|
-
};
|
|
567
|
-
},
|
|
568
|
-
watch: {
|
|
569
|
-
gridSize() {
|
|
570
|
-
this.recreate();
|
|
571
|
-
},
|
|
572
|
-
maxZoom() {
|
|
573
|
-
this.recreate();
|
|
574
|
-
},
|
|
575
|
-
minClusterSize() {
|
|
576
|
-
this.recreate();
|
|
577
|
-
},
|
|
578
|
-
averageCenter() {
|
|
579
|
-
this.recreate();
|
|
580
|
-
},
|
|
581
|
-
styles: {
|
|
582
|
-
handler() {
|
|
583
|
-
this.recreate();
|
|
584
|
-
},
|
|
585
|
-
deep: !0
|
|
586
|
-
},
|
|
587
|
-
stylesIndexCalculator() {
|
|
588
|
-
this.recreate();
|
|
589
|
-
},
|
|
590
|
-
zIndex() {
|
|
591
|
-
this.recreate();
|
|
592
|
-
}
|
|
593
|
-
},
|
|
594
|
-
onCreate() {
|
|
595
|
-
this.clusterer = this.$map.createMarkerClusterer(this);
|
|
596
|
-
},
|
|
597
|
-
onDestroy() {
|
|
598
|
-
this.clusterer.clearMarkers();
|
|
599
|
-
},
|
|
600
|
-
methods: {
|
|
601
|
-
/** TgMarker有可能在该组件未初始化之前调用, 需要通过该方法判断 */
|
|
602
|
-
isInitiated() {
|
|
603
|
-
return this.clusterer != null;
|
|
604
|
-
},
|
|
605
|
-
onAddMarker(e) {
|
|
606
|
-
this.markers.push(e), this.isInitiated() && this.clusterer.addMarker(e);
|
|
607
|
-
},
|
|
608
|
-
onRemoveMarker(e) {
|
|
609
|
-
this.isInitiated() && this.clusterer.removeMarker(e), Q.remove(this.markers, e);
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
});
|
|
613
|
-
function Be(e, t, r, i, o, a) {
|
|
614
|
-
return C(), b("div", {
|
|
615
|
-
class: A(e.$options.name)
|
|
616
|
-
}, [
|
|
617
|
-
y(e.$slots, "default")
|
|
618
|
-
], 2);
|
|
619
|
-
}
|
|
620
|
-
const Ae = /* @__PURE__ */ $(xe, [["render", Be]]), pt = n({
|
|
621
|
-
name: "tg-traffic-layer",
|
|
622
|
-
mixins: [p],
|
|
623
|
-
// 请直接使用v-if来控制它的显隐
|
|
624
|
-
// 没有属性时, 写`{}`类型推断会有问题, 故注释掉
|
|
625
|
-
// props: {} satisfies Props<{}>,
|
|
626
|
-
setup() {
|
|
627
|
-
return {
|
|
628
|
-
layer: l()
|
|
629
|
-
};
|
|
630
|
-
},
|
|
631
|
-
watch: {},
|
|
632
|
-
onCreate() {
|
|
633
|
-
this.layer = new he(), this.$map.addLayer(this.layer);
|
|
634
|
-
},
|
|
635
|
-
onDestroy() {
|
|
636
|
-
this.$map.removeLayer(this.layer);
|
|
637
|
-
}
|
|
638
|
-
}), ct = n({
|
|
639
|
-
name: "tg-circle",
|
|
640
|
-
mixins: [p],
|
|
641
|
-
inheritAttrs: !1,
|
|
642
|
-
props: {
|
|
643
|
-
center: m(f),
|
|
644
|
-
radius: m(Number),
|
|
645
|
-
clickable: s(Boolean),
|
|
646
|
-
editable: s(Boolean),
|
|
647
|
-
strokeColor: s(String),
|
|
648
|
-
strokeOpacity: s(Number),
|
|
649
|
-
strokeWeight: s(Number),
|
|
650
|
-
visible: s(Boolean),
|
|
651
|
-
zIndex: s(Number),
|
|
652
|
-
fillColor: s(String),
|
|
653
|
-
fillOpacity: s(Number),
|
|
654
|
-
"onUpdate:center": h(),
|
|
655
|
-
"onUpdate:radius": h()
|
|
656
|
-
},
|
|
657
|
-
emits: void 0,
|
|
658
|
-
setup(e, { attrs: t }) {
|
|
659
|
-
return {
|
|
660
|
-
attrs: g(t, e),
|
|
661
|
-
overlay: l(),
|
|
662
|
-
emittedRadius: void 0,
|
|
663
|
-
emittedCenter: void 0
|
|
664
|
-
};
|
|
665
|
-
},
|
|
666
|
-
watch: {
|
|
667
|
-
center(e) {
|
|
668
|
-
if (this.emittedCenter != null) {
|
|
669
|
-
const t = this.emittedCenter;
|
|
670
|
-
if (this.emittedCenter = void 0, t === E(e))
|
|
671
|
-
return;
|
|
672
|
-
}
|
|
673
|
-
this.overlay.setCenter(e);
|
|
674
|
-
},
|
|
675
|
-
radius(e) {
|
|
676
|
-
if (this.emittedRadius != null) {
|
|
677
|
-
const t = this.emittedRadius;
|
|
678
|
-
if (this.emittedRadius = void 0, t === e)
|
|
679
|
-
return;
|
|
680
|
-
}
|
|
681
|
-
this.overlay.setRadius(e);
|
|
682
|
-
},
|
|
683
|
-
clickable() {
|
|
684
|
-
this.recreate();
|
|
685
|
-
},
|
|
686
|
-
editable(e) {
|
|
687
|
-
this.overlay.setEditable(e);
|
|
688
|
-
},
|
|
689
|
-
strokeColor(e) {
|
|
690
|
-
this.overlay.setStrokeColor(e);
|
|
691
|
-
},
|
|
692
|
-
strokeOpacity(e) {
|
|
693
|
-
this.overlay.setStrokeOpacity(e);
|
|
694
|
-
},
|
|
695
|
-
strokeWeight(e) {
|
|
696
|
-
this.overlay.setStrokeWeight(e);
|
|
697
|
-
},
|
|
698
|
-
fillColor(e) {
|
|
699
|
-
this.overlay.setFillColor(e);
|
|
700
|
-
},
|
|
701
|
-
fillOpacity(e) {
|
|
702
|
-
this.overlay.setFillOpacity(e);
|
|
703
|
-
},
|
|
704
|
-
visible(e) {
|
|
705
|
-
this.overlay.setVisible(e);
|
|
706
|
-
},
|
|
707
|
-
zIndex(e) {
|
|
708
|
-
this.overlay.setZIndex(e);
|
|
709
|
-
}
|
|
710
|
-
},
|
|
711
|
-
onCreate() {
|
|
712
|
-
this.overlay = this.$map.createCircle(this), this.$map.addOverlay(this.overlay), v(this.attrs.listeners, this.overlay), this.attrs.listenerProps["update:center"] && this.overlay.addEventListener("center-changed", () => {
|
|
713
|
-
this.$emit("update:center", this.emittedCenter = this.overlay.getCenter());
|
|
714
|
-
}), this.attrs.listenerProps["update:radius"] && this.overlay.addEventListener("radius-changed", () => {
|
|
715
|
-
this.$emit("update:radius", this.emittedRadius = this.overlay.getRadius());
|
|
716
|
-
});
|
|
717
|
-
},
|
|
718
|
-
onDestroy() {
|
|
719
|
-
this.$map.removeOverlay(this.overlay);
|
|
720
|
-
}
|
|
721
|
-
});
|
|
722
|
-
class Ee extends de {
|
|
723
|
-
constructor(t, r, i, o) {
|
|
724
|
-
super(t, r), this.content = i, this.position = o;
|
|
725
|
-
}
|
|
726
|
-
onCreate() {
|
|
727
|
-
return this.content;
|
|
728
|
-
}
|
|
729
|
-
onDraw(t) {
|
|
730
|
-
const r = t.fromLatLngToOverlayPoint(this.position);
|
|
731
|
-
this.content.style.left = r.x + "px", this.content.style.top = r.y + "px";
|
|
732
|
-
}
|
|
733
|
-
setPosition(t) {
|
|
734
|
-
this.position = t, this.draw();
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
const Le = n({
|
|
738
|
-
name: "tg-element-overlay",
|
|
739
|
-
mixins: [p],
|
|
740
|
-
props: {
|
|
741
|
-
mapPane: u(B, B.overlayMouseTarget),
|
|
742
|
-
position: m(f)
|
|
743
|
-
},
|
|
744
|
-
setup() {
|
|
745
|
-
return {
|
|
746
|
-
overlay: l()
|
|
747
|
-
};
|
|
748
|
-
},
|
|
749
|
-
watch: {
|
|
750
|
-
position(e) {
|
|
751
|
-
this.overlay.setPosition(e);
|
|
752
|
-
},
|
|
753
|
-
mapPane() {
|
|
754
|
-
this.recreate();
|
|
755
|
-
}
|
|
756
|
-
},
|
|
757
|
-
methods: {
|
|
758
|
-
content() {
|
|
759
|
-
return this.$el;
|
|
760
|
-
}
|
|
761
|
-
},
|
|
762
|
-
onCreate() {
|
|
763
|
-
this.overlay = new Ee(this.$map, d(this), this.content(), this.position), this.$map.addElementOverlay(this.overlay);
|
|
764
|
-
},
|
|
765
|
-
onDestroy() {
|
|
766
|
-
this.$map.removeElementOverlay(this.overlay);
|
|
767
|
-
}
|
|
768
|
-
});
|
|
769
|
-
function Ne(e, t, r, i, o, a) {
|
|
770
|
-
return C(), b("div", I({
|
|
771
|
-
class: e.$options.name
|
|
772
|
-
}, e.$attrs), [
|
|
773
|
-
y(e.$slots, "default")
|
|
774
|
-
], 16);
|
|
775
|
-
}
|
|
776
|
-
const mt = /* @__PURE__ */ $(Le, [["render", Ne]]), De = {
|
|
777
|
-
position: m(f),
|
|
778
|
-
title: s(String),
|
|
779
|
-
label: s(Object),
|
|
780
|
-
icon: s(Object),
|
|
781
|
-
clickable: s(Boolean),
|
|
782
|
-
draggable: s(Boolean),
|
|
783
|
-
crossOnDrag: s(Boolean),
|
|
784
|
-
cursor: s(String),
|
|
785
|
-
zIndex: s(Number),
|
|
786
|
-
visible: s(Boolean),
|
|
787
|
-
normalizePositionForBaidu: s(Boolean),
|
|
788
|
-
/**
|
|
789
|
-
* 是否自动添加到TgMarkerClusterer中去
|
|
790
|
-
* @default true
|
|
791
|
-
*/
|
|
792
|
-
autoAddToClusterer: s(Boolean, !0),
|
|
793
|
-
"onUpdate:position": h()
|
|
794
|
-
}, ze = n({
|
|
795
|
-
name: "tg-marker",
|
|
796
|
-
mixins: [p],
|
|
797
|
-
inheritAttrs: !1,
|
|
798
|
-
props: De,
|
|
799
|
-
emits: void 0,
|
|
800
|
-
setup(e, { attrs: t }) {
|
|
801
|
-
return {
|
|
802
|
-
attrs: g(t, e),
|
|
803
|
-
marker: l(),
|
|
804
|
-
labelOverlay: x(),
|
|
805
|
-
info: x(),
|
|
806
|
-
emittedPosition: void 0,
|
|
807
|
-
autoAddToClustererWhenCreate: e.autoAddToClusterer
|
|
808
|
-
};
|
|
809
|
-
},
|
|
810
|
-
watch: {
|
|
811
|
-
position(e) {
|
|
812
|
-
if (this.emittedPosition != null) {
|
|
813
|
-
const t = this.emittedPosition;
|
|
814
|
-
if (this.emittedPosition = void 0, t === E(e))
|
|
815
|
-
return;
|
|
816
|
-
}
|
|
817
|
-
this.marker.setPosition(e);
|
|
818
|
-
},
|
|
819
|
-
title(e) {
|
|
820
|
-
this.marker.setTitle(e);
|
|
821
|
-
},
|
|
822
|
-
label(e, t) {
|
|
823
|
-
ee(e, t) || (e ? this.marker.setLabel(e) : this.recreate());
|
|
824
|
-
},
|
|
825
|
-
icon(e) {
|
|
826
|
-
e ? this.marker.setIcon(e) : this.recreate();
|
|
827
|
-
},
|
|
828
|
-
clickable(e) {
|
|
829
|
-
this.marker instanceof G ? this.recreate() : this.marker.setClickable(e);
|
|
830
|
-
},
|
|
831
|
-
draggable(e) {
|
|
832
|
-
this.marker.setDraggable(e);
|
|
833
|
-
},
|
|
834
|
-
crossOnDrag() {
|
|
835
|
-
this.recreate();
|
|
836
|
-
},
|
|
837
|
-
cursor() {
|
|
838
|
-
this.recreate();
|
|
839
|
-
},
|
|
840
|
-
zIndex(e) {
|
|
841
|
-
this.marker instanceof G ? this.recreate() : this.marker.setZIndex(e);
|
|
842
|
-
},
|
|
843
|
-
visible(e) {
|
|
844
|
-
this.marker.setVisible(e);
|
|
845
|
-
},
|
|
846
|
-
normalizePositionForBaidu() {
|
|
847
|
-
this.recreate();
|
|
848
|
-
},
|
|
849
|
-
autoAddToClusterer() {
|
|
850
|
-
this.recreate();
|
|
851
|
-
}
|
|
852
|
-
},
|
|
853
|
-
onCreate() {
|
|
854
|
-
this.marker = this.$map.createMarker(this), this.labelOverlay && this.marker.attachLabelOverlay(this.labelOverlay.overlay), this.$clusterer() && this.autoAddToClusterer ? this.$clusterer().onAddMarker(this.marker) : this.$map.addOverlay(this.marker), this.autoAddToClustererWhenCreate = this.autoAddToClusterer, this.info && this.info.show && this.info.overlay.open(this.marker), v(this.attrs.listeners, this.marker), this.attrs.listenerProps["update:position"] && this.marker.addEventListener("dragend", (e) => {
|
|
855
|
-
this.$emit("update:position", this.emittedPosition = e.position);
|
|
856
|
-
});
|
|
857
|
-
},
|
|
858
|
-
onDestroy() {
|
|
859
|
-
this.$clusterer() && this.autoAddToClustererWhenCreate ? this.$clusterer().onRemoveMarker(this.marker) : this.$map.removeOverlay(this.marker);
|
|
860
|
-
},
|
|
861
|
-
methods: {
|
|
862
|
-
$clusterer() {
|
|
863
|
-
return X(this.$parent, Ae);
|
|
864
|
-
},
|
|
865
|
-
onAddLabel(e) {
|
|
866
|
-
this.labelOverlay = e, this.marker && this.marker.attachLabelOverlay(e.overlay);
|
|
867
|
-
},
|
|
868
|
-
onRemoveLabel(e) {
|
|
869
|
-
this.marker.attachLabelOverlay(void 0), this.labelOverlay = void 0;
|
|
870
|
-
},
|
|
871
|
-
onAddInfo(e) {
|
|
872
|
-
this.info = e, this.marker && e.show && e.overlay.open(this.marker);
|
|
873
|
-
},
|
|
874
|
-
onRemoveInfo(e) {
|
|
875
|
-
e.overlay.close(), this.info = void 0;
|
|
876
|
-
},
|
|
877
|
-
onInfoShowChanged(e, t) {
|
|
878
|
-
t ? e.overlay.open(this.marker) : e.overlay.close();
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
});
|
|
882
|
-
function We(e, t, r, i, o, a) {
|
|
883
|
-
return y(e.$slots, "default");
|
|
884
|
-
}
|
|
885
|
-
const H = /* @__PURE__ */ $(ze, [["render", We]]), Re = n({
|
|
886
|
-
name: "tg-info-box",
|
|
887
|
-
mixins: [p],
|
|
888
|
-
inheritAttrs: !1,
|
|
889
|
-
props: {
|
|
890
|
-
show: m(Boolean),
|
|
891
|
-
position: s(f),
|
|
892
|
-
offset: s(Object),
|
|
893
|
-
maxWidth: s(Number),
|
|
894
|
-
borderClass: s(String),
|
|
895
|
-
zIndex: s(Number),
|
|
896
|
-
"onUpdate:show": h()
|
|
897
|
-
},
|
|
898
|
-
emits: void 0,
|
|
899
|
-
setup(e, { attrs: t }) {
|
|
900
|
-
return {
|
|
901
|
-
attrs: g(t, e),
|
|
902
|
-
overlay: l()
|
|
903
|
-
};
|
|
904
|
-
},
|
|
905
|
-
watch: {
|
|
906
|
-
show(e) {
|
|
907
|
-
this.$marker() ? this.$marker().onInfoShowChanged(this, e) : e ? this.overlay.open() : this.overlay.close();
|
|
908
|
-
},
|
|
909
|
-
position(e) {
|
|
910
|
-
this.overlay.setPosition(e);
|
|
911
|
-
},
|
|
912
|
-
offset() {
|
|
913
|
-
this.recreate();
|
|
914
|
-
},
|
|
915
|
-
maxWidth(e) {
|
|
916
|
-
this.overlay.setMaxWidth(e);
|
|
917
|
-
},
|
|
918
|
-
borderClass() {
|
|
919
|
-
this.recreate();
|
|
920
|
-
},
|
|
921
|
-
zIndex(e) {
|
|
922
|
-
this.overlay.setZIndex(e);
|
|
923
|
-
}
|
|
924
|
-
},
|
|
925
|
-
onCreate() {
|
|
926
|
-
this.overlay = this.$map.createInfoBox(this.getOptions()), this.$marker() ? this.$marker().onAddInfo(this) : this.show && this.overlay.open(), this.attrs.listenerProps["update:show"] && this.overlay.addEventListener("closeclick", () => {
|
|
927
|
-
this.$emit("update:show", !1);
|
|
928
|
-
}), v(this.attrs.listeners, this.overlay);
|
|
929
|
-
},
|
|
930
|
-
onDestroy() {
|
|
931
|
-
this.$marker() ? this.$marker().onRemoveInfo(this) : this.overlay.close();
|
|
932
|
-
},
|
|
933
|
-
methods: {
|
|
934
|
-
getOptions() {
|
|
935
|
-
return {
|
|
936
|
-
content: this.content(),
|
|
937
|
-
position: this.position,
|
|
938
|
-
offset: this.offset,
|
|
939
|
-
zIndex: this.zIndex,
|
|
940
|
-
maxWidth: this.maxWidth,
|
|
941
|
-
borderClass: this.borderClass
|
|
942
|
-
};
|
|
943
|
-
},
|
|
944
|
-
content() {
|
|
945
|
-
return this.$el;
|
|
946
|
-
},
|
|
947
|
-
$marker() {
|
|
948
|
-
return Z(H, this.$parent, N);
|
|
949
|
-
},
|
|
950
|
-
open(e) {
|
|
951
|
-
this.overlay.open(e);
|
|
952
|
-
},
|
|
953
|
-
close() {
|
|
954
|
-
this.overlay.close();
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
});
|
|
958
|
-
function Ue(e, t, r, i, o, a) {
|
|
959
|
-
return C(), b("div", I({
|
|
960
|
-
class: e.$options.name
|
|
961
|
-
}, e.attrs.binds), [
|
|
962
|
-
y(e.$slots, "default")
|
|
963
|
-
], 16);
|
|
964
|
-
}
|
|
965
|
-
const ut = /* @__PURE__ */ $(Re, [["render", Ue]]), Ze = n({
|
|
966
|
-
name: "tg-info-window",
|
|
967
|
-
mixins: [p],
|
|
968
|
-
inheritAttrs: !1,
|
|
969
|
-
props: {
|
|
970
|
-
show: m(Boolean),
|
|
971
|
-
position: s(f),
|
|
972
|
-
maxWidth: s(Number),
|
|
973
|
-
offset: s(Object),
|
|
974
|
-
disableAutoPan: s(Boolean),
|
|
975
|
-
"onUpdate:show": h()
|
|
976
|
-
},
|
|
977
|
-
emits: void 0,
|
|
978
|
-
setup(e, { attrs: t }) {
|
|
979
|
-
return {
|
|
980
|
-
attrs: g(t, e),
|
|
981
|
-
overlay: l()
|
|
982
|
-
};
|
|
983
|
-
},
|
|
984
|
-
watch: {
|
|
985
|
-
show(e) {
|
|
986
|
-
this.$marker() ? this.$marker().onInfoShowChanged(this, e) : e ? this.overlay.open() : this.overlay.close();
|
|
987
|
-
},
|
|
988
|
-
position(e) {
|
|
989
|
-
this.overlay.setPosition(e);
|
|
990
|
-
},
|
|
991
|
-
maxWidth() {
|
|
992
|
-
this.recreate();
|
|
993
|
-
},
|
|
994
|
-
offset() {
|
|
995
|
-
this.recreate();
|
|
996
|
-
},
|
|
997
|
-
disableAutoPan() {
|
|
998
|
-
this.recreate();
|
|
999
|
-
}
|
|
1000
|
-
},
|
|
1001
|
-
methods: {
|
|
1002
|
-
content() {
|
|
1003
|
-
return this.$el;
|
|
1004
|
-
},
|
|
1005
|
-
$marker() {
|
|
1006
|
-
return Z(H, this.$parent, N);
|
|
1007
|
-
},
|
|
1008
|
-
getOptions() {
|
|
1009
|
-
return {
|
|
1010
|
-
content: this.content(),
|
|
1011
|
-
position: this.position,
|
|
1012
|
-
maxWidth: this.maxWidth,
|
|
1013
|
-
offset: this.offset,
|
|
1014
|
-
disableAutoPan: this.disableAutoPan
|
|
1015
|
-
};
|
|
1016
|
-
}
|
|
1017
|
-
},
|
|
1018
|
-
onCreate() {
|
|
1019
|
-
this.overlay = this.$map.createInfoWindow(this.getOptions()), this.$marker() ? this.$marker().onAddInfo(this) : this.show && this.overlay.open(), this.overlay.addEventListener("open", () => {
|
|
1020
|
-
this.$emit("update:show", !0);
|
|
1021
|
-
}), this.overlay.addEventListener("close", () => {
|
|
1022
|
-
this.$emit("update:show", !1);
|
|
1023
|
-
}), v(this.attrs.listeners, this.overlay);
|
|
1024
|
-
},
|
|
1025
|
-
onDestroy() {
|
|
1026
|
-
this.$marker() ? this.$marker().onRemoveInfo(this) : this.overlay.close();
|
|
1027
|
-
}
|
|
1028
|
-
});
|
|
1029
|
-
function je(e, t, r, i, o, a) {
|
|
1030
|
-
return $e((C(), b("div", I({
|
|
1031
|
-
class: e.$options.name
|
|
1032
|
-
}, e.attrs.binds), [
|
|
1033
|
-
y(e.$slots, "default")
|
|
1034
|
-
], 16)), [
|
|
1035
|
-
[be, e.show]
|
|
1036
|
-
]);
|
|
1037
|
-
}
|
|
1038
|
-
const yt = /* @__PURE__ */ $(Ze, [["render", je]]), Ve = n({
|
|
1039
|
-
name: "tg-label",
|
|
1040
|
-
mixins: [p],
|
|
1041
|
-
inheritAttrs: !1,
|
|
1042
|
-
props: {
|
|
1043
|
-
position: s(f),
|
|
1044
|
-
offset: s(Object),
|
|
1045
|
-
zIndex: s(Number),
|
|
1046
|
-
mapPane: u(B)
|
|
1047
|
-
},
|
|
1048
|
-
emits: void 0,
|
|
1049
|
-
setup(e, { attrs: t }) {
|
|
1050
|
-
return {
|
|
1051
|
-
attrs: g(t),
|
|
1052
|
-
overlay: l()
|
|
1053
|
-
};
|
|
1054
|
-
},
|
|
1055
|
-
watch: {
|
|
1056
|
-
position(e) {
|
|
1057
|
-
this.overlay.setPosition(e);
|
|
1058
|
-
},
|
|
1059
|
-
offset(e) {
|
|
1060
|
-
this.overlay.setOffset(e);
|
|
1061
|
-
},
|
|
1062
|
-
zIndex(e) {
|
|
1063
|
-
this.overlay.setZIndex(e);
|
|
1064
|
-
},
|
|
1065
|
-
visible(e) {
|
|
1066
|
-
this.overlay.setVisible(e);
|
|
1067
|
-
},
|
|
1068
|
-
mapPane() {
|
|
1069
|
-
this.recreate();
|
|
1070
|
-
}
|
|
1071
|
-
},
|
|
1072
|
-
methods: {
|
|
1073
|
-
content() {
|
|
1074
|
-
return this.$el;
|
|
1075
|
-
},
|
|
1076
|
-
marker() {
|
|
1077
|
-
var e;
|
|
1078
|
-
return (e = this.$marker()) == null ? void 0 : e.marker;
|
|
1079
|
-
},
|
|
1080
|
-
$marker() {
|
|
1081
|
-
return Z(H, this.$parent, N);
|
|
1082
|
-
},
|
|
1083
|
-
getOptions() {
|
|
1084
|
-
return {
|
|
1085
|
-
content: this.content(),
|
|
1086
|
-
position: this.position,
|
|
1087
|
-
offset: this.offset,
|
|
1088
|
-
zIndex: this.zIndex,
|
|
1089
|
-
mapPane: d(this.mapPane, B)
|
|
1090
|
-
};
|
|
1091
|
-
}
|
|
1092
|
-
},
|
|
1093
|
-
onCreate() {
|
|
1094
|
-
this.overlay = this.$map.createLabel(this.getOptions()), this.$marker() ? this.$marker().onAddLabel(this) : this.$map.addOverlay(this.overlay), v(this.attrs.listeners, this.overlay);
|
|
1095
|
-
},
|
|
1096
|
-
onDestroy() {
|
|
1097
|
-
this.$marker() ? this.$marker().onRemoveLabel(this) : this.$map.removeOverlay(this.overlay);
|
|
1098
|
-
}
|
|
1099
|
-
});
|
|
1100
|
-
function He(e, t, r, i, o, a) {
|
|
1101
|
-
return C(), b("div", I({
|
|
1102
|
-
class: e.$options.name
|
|
1103
|
-
}, e.attrs.binds), [
|
|
1104
|
-
y(e.$slots, "default")
|
|
1105
|
-
], 16);
|
|
1106
|
-
}
|
|
1107
|
-
const ft = /* @__PURE__ */ $(Ve, [["render", He]]), Fe = {
|
|
1108
|
-
paths: m(Array),
|
|
1109
|
-
clickable: s(Boolean),
|
|
1110
|
-
editable: s(Boolean),
|
|
1111
|
-
strokeColor: s(String),
|
|
1112
|
-
strokeOpacity: s(Number),
|
|
1113
|
-
strokeWeight: s(Number),
|
|
1114
|
-
visible: s(Boolean),
|
|
1115
|
-
zIndex: s(Number),
|
|
1116
|
-
fillColor: s(String),
|
|
1117
|
-
fillOpacity: s(Number),
|
|
1118
|
-
"onUpdate:paths": h()
|
|
1119
|
-
}, vt = n({
|
|
1120
|
-
name: "tg-polygon",
|
|
1121
|
-
mixins: [p],
|
|
1122
|
-
inheritAttrs: !1,
|
|
1123
|
-
props: Fe,
|
|
1124
|
-
emits: void 0,
|
|
1125
|
-
setup(e, { attrs: t }) {
|
|
1126
|
-
return {
|
|
1127
|
-
attrs: g(t, e),
|
|
1128
|
-
overlay: l(),
|
|
1129
|
-
emittedPaths: void 0
|
|
1130
|
-
};
|
|
1131
|
-
},
|
|
1132
|
-
watch: {
|
|
1133
|
-
paths: {
|
|
1134
|
-
handler(e) {
|
|
1135
|
-
if (this.emittedPaths != null) {
|
|
1136
|
-
const t = this.emittedPaths;
|
|
1137
|
-
if (this.emittedPaths = void 0, t.length === e.length && t.every((r, i) => r === E(e[i])))
|
|
1138
|
-
return;
|
|
1139
|
-
}
|
|
1140
|
-
this.overlay.setPaths(e);
|
|
1141
|
-
},
|
|
1142
|
-
deep: !0
|
|
1143
|
-
},
|
|
1144
|
-
clickable() {
|
|
1145
|
-
this.recreate();
|
|
1146
|
-
},
|
|
1147
|
-
editable(e) {
|
|
1148
|
-
this.overlay.setEditable(e);
|
|
1149
|
-
},
|
|
1150
|
-
strokeColor(e) {
|
|
1151
|
-
this.overlay.setStrokeColor(e);
|
|
1152
|
-
},
|
|
1153
|
-
strokeOpacity(e) {
|
|
1154
|
-
this.overlay.setStrokeOpacity(e);
|
|
1155
|
-
},
|
|
1156
|
-
strokeWeight(e) {
|
|
1157
|
-
this.overlay.setStrokeWeight(e);
|
|
1158
|
-
},
|
|
1159
|
-
fillColor(e) {
|
|
1160
|
-
this.overlay.setFillColor(e);
|
|
1161
|
-
},
|
|
1162
|
-
fillOpacity(e) {
|
|
1163
|
-
this.overlay.setFillOpacity(e);
|
|
1164
|
-
},
|
|
1165
|
-
visible(e) {
|
|
1166
|
-
this.overlay.setVisible(e);
|
|
1167
|
-
},
|
|
1168
|
-
zIndex(e) {
|
|
1169
|
-
this.overlay.setZIndex(e);
|
|
1170
|
-
}
|
|
1171
|
-
},
|
|
1172
|
-
onCreate() {
|
|
1173
|
-
this.overlay = this.$map.createPolygon(this), this.$map.addOverlay(this.overlay), v(this.attrs.listeners, this.overlay), this.attrs.listenerProps["update:paths"] && this.overlay.addEventListener("paths-edited", () => {
|
|
1174
|
-
this.$emit("update:paths", this.emittedPaths = this.overlay.getPaths());
|
|
1175
|
-
});
|
|
1176
|
-
},
|
|
1177
|
-
onDestroy() {
|
|
1178
|
-
this.$map.removeOverlay(this.overlay);
|
|
1179
|
-
}
|
|
1180
|
-
}), gt = n({
|
|
1181
|
-
name: "tg-polyline",
|
|
1182
|
-
mixins: [p],
|
|
1183
|
-
inheritAttrs: !1,
|
|
1184
|
-
props: {
|
|
1185
|
-
path: m(Array),
|
|
1186
|
-
icons: s(Array),
|
|
1187
|
-
clickable: s(Boolean),
|
|
1188
|
-
editable: s(Boolean),
|
|
1189
|
-
strokeColor: s(String),
|
|
1190
|
-
strokeOpacity: s(Number),
|
|
1191
|
-
strokeWeight: s(Number),
|
|
1192
|
-
visible: s(Boolean),
|
|
1193
|
-
zIndex: s(Number),
|
|
1194
|
-
"onUpdate:path": h()
|
|
1195
|
-
},
|
|
1196
|
-
emits: void 0,
|
|
1197
|
-
setup(e, { attrs: t }) {
|
|
1198
|
-
return {
|
|
1199
|
-
attrs: g(t, e),
|
|
1200
|
-
overlay: l(),
|
|
1201
|
-
emittedPath: void 0
|
|
1202
|
-
};
|
|
1203
|
-
},
|
|
1204
|
-
watch: {
|
|
1205
|
-
path: {
|
|
1206
|
-
handler(e) {
|
|
1207
|
-
if (this.emittedPath != null) {
|
|
1208
|
-
const t = this.emittedPath;
|
|
1209
|
-
if (this.emittedPath = void 0, t === E(e))
|
|
1210
|
-
return;
|
|
1211
|
-
}
|
|
1212
|
-
this.overlay.setPath(e);
|
|
1213
|
-
},
|
|
1214
|
-
deep: !0
|
|
1215
|
-
},
|
|
1216
|
-
icons: {
|
|
1217
|
-
handler() {
|
|
1218
|
-
this.recreate();
|
|
1219
|
-
},
|
|
1220
|
-
deep: !0
|
|
1221
|
-
},
|
|
1222
|
-
clickable() {
|
|
1223
|
-
this.recreate();
|
|
1224
|
-
},
|
|
1225
|
-
editable(e) {
|
|
1226
|
-
this.overlay.setEditable(e);
|
|
1227
|
-
},
|
|
1228
|
-
strokeColor(e) {
|
|
1229
|
-
this.overlay.setStrokeColor(e);
|
|
1230
|
-
},
|
|
1231
|
-
strokeOpacity(e) {
|
|
1232
|
-
this.overlay.setStrokeOpacity(e);
|
|
1233
|
-
},
|
|
1234
|
-
strokeWeight(e) {
|
|
1235
|
-
this.overlay.setStrokeWeight(e);
|
|
1236
|
-
},
|
|
1237
|
-
visible(e) {
|
|
1238
|
-
this.overlay.setVisible(e);
|
|
1239
|
-
},
|
|
1240
|
-
zIndex(e) {
|
|
1241
|
-
this.overlay.setZIndex(e);
|
|
1242
|
-
}
|
|
1243
|
-
},
|
|
1244
|
-
onCreate() {
|
|
1245
|
-
this.overlay = this.$map.createPolyline(this), this.$map.addOverlay(this.overlay), v(this.attrs.listeners, this.overlay), this.attrs.listenerProps["update:path"] && this.overlay.addEventListener("path-edited", () => {
|
|
1246
|
-
this.$emit("update:path", this.emittedPath = this.overlay.getPath());
|
|
1247
|
-
});
|
|
1248
|
-
},
|
|
1249
|
-
onDestroy() {
|
|
1250
|
-
this.overlay.remove();
|
|
1251
|
-
}
|
|
1252
|
-
}), $t = n({
|
|
1253
|
-
name: "tg-rectangle",
|
|
1254
|
-
mixins: [p],
|
|
1255
|
-
inheritAttrs: !1,
|
|
1256
|
-
props: {
|
|
1257
|
-
bounds: m(Object),
|
|
1258
|
-
clickable: s(Boolean),
|
|
1259
|
-
editable: s(Boolean),
|
|
1260
|
-
strokeColor: s(String),
|
|
1261
|
-
strokeOpacity: s(Number),
|
|
1262
|
-
strokeWeight: s(Number),
|
|
1263
|
-
visible: s(Boolean),
|
|
1264
|
-
zIndex: s(Number),
|
|
1265
|
-
fillColor: s(String),
|
|
1266
|
-
fillOpacity: s(Number),
|
|
1267
|
-
"onUpdate:bounds": h()
|
|
1268
|
-
},
|
|
1269
|
-
emits: void 0,
|
|
1270
|
-
setup(e, { attrs: t }) {
|
|
1271
|
-
return {
|
|
1272
|
-
attrs: g(t, e),
|
|
1273
|
-
overlay: l(),
|
|
1274
|
-
emittedBounds: void 0
|
|
1275
|
-
};
|
|
1276
|
-
},
|
|
1277
|
-
watch: {
|
|
1278
|
-
bounds(e) {
|
|
1279
|
-
if (this.emittedBounds != null) {
|
|
1280
|
-
const t = this.emittedBounds;
|
|
1281
|
-
if (this.emittedBounds = void 0, t.equals(e))
|
|
1282
|
-
return;
|
|
1283
|
-
}
|
|
1284
|
-
this.overlay.setBounds(e);
|
|
1285
|
-
},
|
|
1286
|
-
clickable() {
|
|
1287
|
-
this.recreate();
|
|
1288
|
-
},
|
|
1289
|
-
editable(e) {
|
|
1290
|
-
this.overlay.setEditable(e);
|
|
1291
|
-
},
|
|
1292
|
-
strokeColor(e) {
|
|
1293
|
-
this.overlay.setStrokeColor(e);
|
|
1294
|
-
},
|
|
1295
|
-
strokeOpacity(e) {
|
|
1296
|
-
this.overlay.setStrokeOpacity(e);
|
|
1297
|
-
},
|
|
1298
|
-
strokeWeight(e) {
|
|
1299
|
-
this.overlay.setStrokeWeight(e);
|
|
1300
|
-
},
|
|
1301
|
-
fillColor(e) {
|
|
1302
|
-
this.overlay.setFillColor(e);
|
|
1303
|
-
},
|
|
1304
|
-
fillOpacity(e) {
|
|
1305
|
-
this.overlay.setFillOpacity(e);
|
|
1306
|
-
},
|
|
1307
|
-
visible(e) {
|
|
1308
|
-
this.overlay.setVisible(e);
|
|
1309
|
-
},
|
|
1310
|
-
zIndex(e) {
|
|
1311
|
-
this.overlay.setZIndex(e);
|
|
1312
|
-
}
|
|
1313
|
-
},
|
|
1314
|
-
onCreate() {
|
|
1315
|
-
this.overlay = this.$map.createRectangle(this), this.$map.addOverlay(this.overlay), v(this.attrs.listeners, this.overlay), this.attrs.listenerProps["update:bounds"] && this.overlay.addEventListener("bounds-changed", () => {
|
|
1316
|
-
this.$emit("update:bounds", this.emittedBounds = this.overlay.getBounds());
|
|
1317
|
-
});
|
|
1318
|
-
},
|
|
1319
|
-
onDestroy() {
|
|
1320
|
-
this.$map.removeOverlay(this.overlay);
|
|
1321
|
-
}
|
|
1322
|
-
}), Ge = ["beforeUpdate", "updated"], bt = {
|
|
1323
|
-
install(e, t = {}) {
|
|
1324
|
-
if (t.enable !== !1) {
|
|
1325
|
-
const r = n({
|
|
1326
|
-
beforeCreate() {
|
|
1327
|
-
const i = K() ?? "", a = (t.nameRegex || /^[A-Z]/).test(i) ? (_) => {
|
|
1328
|
-
t.hookNames ? t.hookNames.includes(_) && console.debug("[lifecycle]", i, _) : Ge.includes(_) || console.debug("[lifecycle]", i, _);
|
|
1329
|
-
} : S;
|
|
1330
|
-
a("beforeCreate"), this.__life_impl = a;
|
|
1331
|
-
},
|
|
1332
|
-
created() {
|
|
1333
|
-
this.__life("created");
|
|
1334
|
-
},
|
|
1335
|
-
beforeMount() {
|
|
1336
|
-
this.__life("beforeMount");
|
|
1337
|
-
},
|
|
1338
|
-
mounted() {
|
|
1339
|
-
this.__life("mounted");
|
|
1340
|
-
},
|
|
1341
|
-
beforeUpdate() {
|
|
1342
|
-
this.__life("beforeUpdate");
|
|
1343
|
-
},
|
|
1344
|
-
updated() {
|
|
1345
|
-
this.__life("updated");
|
|
1346
|
-
},
|
|
1347
|
-
beforeUnmount() {
|
|
1348
|
-
this.__life("beforeUnmount");
|
|
1349
|
-
},
|
|
1350
|
-
unmounted() {
|
|
1351
|
-
this.__life("unmounted");
|
|
1352
|
-
},
|
|
1353
|
-
methods: {
|
|
1354
|
-
__life(i) {
|
|
1355
|
-
this.__life_impl(i);
|
|
1356
|
-
}
|
|
1357
|
-
},
|
|
1358
|
-
onCreate() {
|
|
1359
|
-
this.__life("onCreate");
|
|
1360
|
-
},
|
|
1361
|
-
onDestroy() {
|
|
1362
|
-
this.__life("onDestroy");
|
|
1363
|
-
}
|
|
1364
|
-
});
|
|
1365
|
-
e.mixin(r);
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
}, Ct = {
|
|
1369
|
-
install(e, t) {
|
|
1370
|
-
pe(t);
|
|
1371
|
-
const r = e.config.optionMergeStrategies;
|
|
1372
|
-
r[O] = r[P] = (i, o) => i ? [...new Set([].concat(i, o))] : Array.isArray(o) ? o : [o];
|
|
1373
|
-
}
|
|
1374
|
-
};
|
|
1375
|
-
export {
|
|
1376
|
-
bt as LifecycleLogPlugin,
|
|
1377
|
-
O as MIXIN_HOOK_CREATE,
|
|
1378
|
-
P as MIXIN_HOOK_DESTROY,
|
|
1379
|
-
j as MIXIN_MAP_NAME,
|
|
1380
|
-
p as MapMixin,
|
|
1381
|
-
ct as TgCircle,
|
|
1382
|
-
ot as TgCustomControl,
|
|
1383
|
-
mt as TgElementOverlay,
|
|
1384
|
-
dt as TgHeatmap,
|
|
1385
|
-
ut as TgInfoBox,
|
|
1386
|
-
yt as TgInfoWindow,
|
|
1387
|
-
ft as TgLabel,
|
|
1388
|
-
N as TgMap,
|
|
1389
|
-
at as TgMapTypeControl,
|
|
1390
|
-
it as TgMapWidget,
|
|
1391
|
-
H as TgMarker,
|
|
1392
|
-
Ae as TgMarkerClusterer,
|
|
1393
|
-
vt as TgPolygon,
|
|
1394
|
-
gt as TgPolyline,
|
|
1395
|
-
$t as TgRectangle,
|
|
1396
|
-
nt as TgScaleControl,
|
|
1397
|
-
lt as TgStreetViewControl,
|
|
1398
|
-
pt as TgTrafficLayer,
|
|
1399
|
-
ht as TgZoomControl,
|
|
1400
|
-
w as callHook,
|
|
1401
|
-
Qe as computedSaveOnThis,
|
|
1402
|
-
L as createEmptyVNode,
|
|
1403
|
-
_e as createPropertyObject,
|
|
1404
|
-
et as createPropertyObjectTyped,
|
|
1405
|
-
Ct as default,
|
|
1406
|
-
h as eventProp,
|
|
1407
|
-
st as extractVNodeFromSlotsByComponent,
|
|
1408
|
-
Z as findAncestorComponentByType,
|
|
1409
|
-
tt as findByComponentType,
|
|
1410
|
-
U as isComponentByType,
|
|
1411
|
-
s as optionalProp,
|
|
1412
|
-
m as requiredProp,
|
|
1413
|
-
X as safeAsComponent,
|
|
1414
|
-
ke as splitAttrs,
|
|
1415
|
-
u as stringEnumProp,
|
|
1416
|
-
Ce as stringUnionPropFromValues,
|
|
1417
|
-
rt as useEventLogMethods,
|
|
1418
|
-
g as useSplittedAttrs,
|
|
1419
|
-
V as useTgMapInner
|
|
1420
|
-
};
|
|
1421
|
-
//# sourceMappingURL=tg-map.js.map
|