tg-map-vue3 4.2.4 → 4.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tg-map.js CHANGED
@@ -1,7 +1,7 @@
1
- import { noop as x, typed as O, lateinit as l, path as Q, throwError as w, Arrays as F, deepEqual as ee } from "tg-commons";
2
- import { Strings as G, 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 y, dimen as ae, ControlPosition as c, CustomControl as ne, MapTypeControlType as le, TrafficLayer as he, MapPane as A, ElementOverlay as de, BaiduMarker as q, setTgMapConfig as pe } from "tg-map-core";
1
+ import { noop as x, typed as O, lateinit as l, path as te, throwError as w, Arrays as V, deepEqual as se } from "tg-commons";
2
+ import { Strings as G, TgMapType as D, unwrapStringEnumValue as d, loadCachedMap as re, TgMapFactory as ie, BuildInMapTypeId as z, GestureHandlingOptions as W, bindEvents as v, MapType as oe, Objects as ae, InfoWindowModeValues as ne, LatLng as y, dimen as le, ControlPosition as c, CustomControl as he, MapTypeControlType as de, TrafficLayer as pe, MapPane as A, ElementOverlay as ce, BaiduMarker as q, GoogleMap as X, wrapComponentElementForGoogle as K, setTgMapConfig as me } from "tg-map-core";
3
3
  export * from "tg-map-core";
4
- import { createCommentVNode as Z, computed as X, defineComponent as n, markRaw as ce, watch as k, createElementBlock as $, openBlock as C, mergeProps as M, createElementVNode as me, renderSlot as f, normalizeClass as L, normalizeStyle as ue, getCurrentInstance as fe, inject as ye, onBeforeUnmount as ve, onMounted as ge, toRaw as B, withDirectives as be, vShow as $e } from "vue";
4
+ import { createCommentVNode as Z, computed as J, defineComponent as n, markRaw as ue, watch as k, createElementBlock as b, openBlock as C, mergeProps as M, createElementVNode as fe, renderSlot as f, normalizeClass as L, normalizeStyle as ye, getCurrentInstance as ve, inject as ge, onBeforeUnmount as $e, onMounted as be, toRaw as B, withDirectives as Ce, vShow as _e } from "vue";
5
5
  import "tg-map-core/dist/tg-map-core.css";
6
6
  function u(e, t) {
7
7
  return {
@@ -10,7 +10,7 @@ function u(e, t) {
10
10
  validator: (r) => Object.values(e).includes(r)
11
11
  };
12
12
  }
13
- function Ce(e, t) {
13
+ function ke(e, t) {
14
14
  return {
15
15
  type: String,
16
16
  default: t,
@@ -29,7 +29,7 @@ function s(e, t) {
29
29
  default: t
30
30
  };
31
31
  }
32
- function Qe(e) {
32
+ function tt(e) {
33
33
  const t = {};
34
34
  return Object.entries(e).forEach(([r, i]) => {
35
35
  const o = `__${r}`;
@@ -52,15 +52,15 @@ const T = {
52
52
  get: x,
53
53
  set: x
54
54
  };
55
- function _e(e) {
55
+ function Te(e) {
56
56
  return Object.keys(e).forEach((t) => {
57
57
  const r = e[t];
58
58
  let i = !1;
59
59
  typeof r == "function" ? (T.get = r, T.set = x, i = !0) : typeof r == "object" && typeof r.get == "function" && (T.get = r.get, T.set = r.set, i = !0), i && (e[t] = Object.defineProperty(e, t, T));
60
60
  }), e;
61
61
  }
62
- function et(e) {
63
- return _e(e);
62
+ function st(e) {
63
+ return Te(e);
64
64
  }
65
65
  function E() {
66
66
  return Z();
@@ -71,19 +71,19 @@ function S(e, t) {
71
71
  for (const i of r)
72
72
  i.call(e);
73
73
  }
74
- function tt(e, t) {
74
+ function rt(e, t) {
75
75
  for (const r of e)
76
76
  if (r.$options.name === t.name)
77
77
  return r;
78
78
  }
79
- function st(e, t) {
79
+ function it(e, t) {
80
80
  if (!e.default) return;
81
81
  const r = e.default();
82
82
  for (const i of r)
83
83
  if ((i == null ? void 0 : i.type).name === t.name)
84
84
  return i;
85
85
  }
86
- function ke(e, t) {
86
+ function Oe(e, t) {
87
87
  const r = {}, i = {}, o = {};
88
88
  return Object.keys(e).forEach((a) => {
89
89
  a.startsWith("on") ? r[G.pascal2kebab(a.substring(2))] = e[a] : i[a] = e[a];
@@ -99,12 +99,12 @@ function ke(e, t) {
99
99
  };
100
100
  }
101
101
  function g(e, t) {
102
- return X(() => ke(e, t));
102
+ return J(() => Oe(e, t));
103
103
  }
104
104
  function h() {
105
105
  return Function;
106
106
  }
107
- const rt = () => {
107
+ const ot = () => {
108
108
  let e, t;
109
109
  function r(o) {
110
110
  console.log(o), e = o && o.type, t = Date.now();
@@ -117,7 +117,7 @@ const rt = () => {
117
117
  function R(e, t) {
118
118
  return (e == null ? void 0 : e.$options.name) === t.name;
119
119
  }
120
- function K(e, t) {
120
+ function Y(e, t) {
121
121
  return R(e, t) ? e : void 0;
122
122
  }
123
123
  function U(e, t, r) {
@@ -146,7 +146,7 @@ const j = "$map", P = "onCreate", I = "onDestroy", p = n({
146
146
  render() {
147
147
  return E();
148
148
  }
149
- }), Te = {
149
+ }), Pe = {
150
150
  /** type没做响应式, 但外部可以把type作为tg-map的key, 让type修改时完全重建tg-map */
151
151
  type: u(D, D.google),
152
152
  /**
@@ -181,7 +181,7 @@ const j = "$map", P = "onCreate", I = "onDestroy", p = n({
181
181
  * 该属性不会响应式更新, 要让它立即生效, 请参考{@link file://./../views/map/InfoDemo.vue#L3}
182
182
  * @see MapOptions.infoWindowMode
183
183
  */
184
- infoWindowMode: Ce(oe),
184
+ infoWindowMode: ke(ne),
185
185
  gestureHandling: u(W),
186
186
  fractionalZoom: s(Boolean),
187
187
  minZoom: s(Number),
@@ -199,15 +199,15 @@ const j = "$map", P = "onCreate", I = "onDestroy", p = n({
199
199
  "onUpdate:map-type-id": h(),
200
200
  "onUpdate:zoom": h(),
201
201
  onError: h()
202
- }, Oe = n({
202
+ }, Ie = n({
203
203
  name: "tg-map",
204
204
  provide() {
205
205
  return {
206
- [j]: X(() => this.map)
206
+ [j]: J(() => this.map)
207
207
  };
208
208
  },
209
209
  inheritAttrs: !1,
210
- props: Te,
210
+ props: Pe,
211
211
  /** 声明事件的类型信息, 详见: {@link splitAttrs} */
212
212
  emits: void 0,
213
213
  setup(e, { attrs: t }) {
@@ -224,7 +224,7 @@ const j = "$map", P = "onCreate", I = "onDestroy", p = n({
224
224
  },
225
225
  computed: {
226
226
  propsJson() {
227
- return ie.toJsonSafely(this.$props);
227
+ return ae.toJsonSafely(this.$props);
228
228
  }
229
229
  },
230
230
  watch: {
@@ -250,7 +250,7 @@ const j = "$map", P = "onCreate", I = "onDestroy", p = n({
250
250
  },
251
251
  mapType(e) {
252
252
  var t;
253
- (t = this.map) == null || t.setMapType(e ?? re.NORMAL);
253
+ (t = this.map) == null || t.setMapType(e ?? oe.NORMAL);
254
254
  },
255
255
  hideLogo(e) {
256
256
  var t;
@@ -264,7 +264,7 @@ const j = "$map", P = "onCreate", I = "onDestroy", p = n({
264
264
  async mounted() {
265
265
  const e = d(this.type, D);
266
266
  try {
267
- await te(e);
267
+ await re(e);
268
268
  } catch (o) {
269
269
  this.$emit("error", o);
270
270
  return;
@@ -273,7 +273,7 @@ const j = "$map", P = "onCreate", I = "onDestroy", p = n({
273
273
  console.warn(`tg-map(type=${e})已销毁, 不需要继续执行`);
274
274
  return;
275
275
  }
276
- const t = se.createMap(
276
+ const t = ie.createMap(
277
277
  e,
278
278
  this.$refs.map,
279
279
  /* options: */
@@ -290,7 +290,7 @@ const j = "$map", P = "onCreate", I = "onDestroy", p = n({
290
290
  fractionalZoom: this.fractionalZoom
291
291
  }
292
292
  );
293
- if (this.map = ce(t), this.mapType && t.setMapType(this.mapType), "ready" in this.attrs.listeners && console.error("地图载入完成的事件已经从ready改为了load, 请手动修改"), v(
293
+ if (this.map = ue(t), this.mapType && t.setMapType(this.mapType), "ready" in this.attrs.listeners && console.error("地图载入完成的事件已经从ready改为了load, 请手动修改"), v(
294
294
  this.attrs.listeners,
295
295
  t,
296
296
  /* excludes: */
@@ -299,8 +299,8 @@ const j = "$map", P = "onCreate", I = "onDestroy", p = n({
299
299
  () => this.zoom,
300
300
  () => this.center
301
301
  //
302
- ], ([o, a], [_, Y]) => {
303
- o !== _ && t.setZoom(o), a !== Y && (t.getCenter().equals(a) || t.setCenter(a));
302
+ ], ([o, a], [_, ee]) => {
303
+ o !== _ && t.setZoom(o), a !== ee && (t.getCenter().equals(a) || t.setCenter(a));
304
304
  }), this.attrs.listenerProps["update:center"]) {
305
305
  const o = () => this.$emit("update:center", t.getCenter());
306
306
  t.addEventListener("center-changed", () => {
@@ -322,15 +322,15 @@ const j = "$map", P = "onCreate", I = "onDestroy", p = n({
322
322
  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())));
323
323
  },
324
324
  methods: {}
325
- }), b = (e, t) => {
325
+ }), $ = (e, t) => {
326
326
  const r = e.__vccOpts || e;
327
327
  for (const [i, o] of t)
328
328
  r[i] = o;
329
329
  return r;
330
330
  };
331
- function Pe(e, t, r, i, o, a) {
332
- return C(), $("div", M({ class: "tg-map" }, e.attrs.binds), [
333
- me("div", {
331
+ function Me(e, t, r, i, o, a) {
332
+ return C(), b("div", M({ class: "tg-map" }, e.attrs.binds), [
333
+ fe("div", {
334
334
  ref: "map",
335
335
  class: L({
336
336
  "tg-map__map": !0,
@@ -342,7 +342,7 @@ function Pe(e, t, r, i, o, a) {
342
342
  f(e.$slots, "overlay")
343
343
  ], 16);
344
344
  }
345
- const N = /* @__PURE__ */ b(Oe, [["render", Pe]]), Ie = n({
345
+ const N = /* @__PURE__ */ $(Ie, [["render", Me]]), we = n({
346
346
  name: "tg-map-widget",
347
347
  props: {
348
348
  left: {
@@ -368,18 +368,18 @@ const N = /* @__PURE__ */ b(Oe, [["render", Pe]]), Ie = n({
368
368
  }
369
369
  },
370
370
  methods: {
371
- dimen: ae
371
+ dimen: le
372
372
  }
373
373
  });
374
- function Me(e, t, r, i, o, a) {
375
- return C(), $("div", {
374
+ function Se(e, t, r, i, o, a) {
375
+ return C(), b("div", {
376
376
  class: L(e.$options.name),
377
- style: ue({ left: e.dimen(e.left), top: e.dimen(e.topValue), right: e.dimen(e.right), bottom: e.dimen(e.bottom) })
377
+ style: ye({ left: e.dimen(e.left), top: e.dimen(e.topValue), right: e.dimen(e.right), bottom: e.dimen(e.bottom) })
378
378
  }, [
379
379
  f(e.$slots, "default")
380
380
  ], 6);
381
381
  }
382
- const it = /* @__PURE__ */ b(Ie, [["render", Me]]), we = n({
382
+ const at = /* @__PURE__ */ $(we, [["render", Se]]), xe = n({
383
383
  name: "tg-custom-control",
384
384
  mixins: [p],
385
385
  props: {
@@ -396,8 +396,8 @@ const it = /* @__PURE__ */ b(Ie, [["render", Me]]), we = n({
396
396
  }
397
397
  },
398
398
  onCreate() {
399
- K(this.$parent, N) || console.warn("请将tg-custom-control放到tg-map中");
400
- const { $el: e } = this, t = class extends ne {
399
+ Y(this.$parent, N) || console.warn("请将tg-custom-control放到tg-map中");
400
+ const { $el: e } = this, t = class extends he {
401
401
  onCreateElement() {
402
402
  return e;
403
403
  }
@@ -408,19 +408,19 @@ const it = /* @__PURE__ */ b(Ie, [["render", Me]]), we = n({
408
408
  this.$map.removeCustomControl(this.control);
409
409
  }
410
410
  });
411
- function Se(e, t, r, i, o, a) {
412
- return C(), $("div", {
411
+ function Ae(e, t, r, i, o, a) {
412
+ return C(), b("div", {
413
413
  class: L(e.$options.name)
414
414
  }, [
415
415
  f(e.$slots, "default")
416
416
  ], 2);
417
417
  }
418
- const ot = /* @__PURE__ */ b(we, [["render", Se]]), at = n({
418
+ const nt = /* @__PURE__ */ $(xe, [["render", Ae]]), lt = n({
419
419
  name: "tg-map-type-control",
420
420
  mixins: [p],
421
421
  props: {
422
422
  position: u(c, c.TOP_LEFT),
423
- type: u(le),
423
+ type: u(de),
424
424
  mapTypes: s(Array)
425
425
  },
426
426
  setup() {
@@ -448,7 +448,7 @@ const ot = /* @__PURE__ */ b(we, [["render", Se]]), at = n({
448
448
  onDestroy() {
449
449
  this.$map.removeControl(this.control);
450
450
  }
451
- }), nt = n({
451
+ }), ht = n({
452
452
  name: "tg-scale-control",
453
453
  mixins: [p],
454
454
  props: {
@@ -471,20 +471,20 @@ const ot = /* @__PURE__ */ b(we, [["render", Se]]), at = n({
471
471
  this.$map.removeControl(this.control);
472
472
  }
473
473
  });
474
- function J() {
474
+ function Q() {
475
475
  var r;
476
- const e = (r = fe()) == null ? void 0 : r.type;
476
+ const e = (r = ve()) == null ? void 0 : r.type;
477
477
  let t = (e == null ? void 0 : e.name) ?? (e == null ? void 0 : e.__name);
478
478
  if (!t) {
479
479
  const i = e == null ? void 0 : e.__file;
480
- i && (t = Q.basename(i, ".vue"));
480
+ i && (t = te.basename(i, ".vue"));
481
481
  }
482
482
  return t;
483
483
  }
484
- function H() {
485
- const e = ye(j);
484
+ function F() {
485
+ const e = ge(j);
486
486
  let t, r;
487
- return e == null && w(`<${J() || "unknown"}>必须作为<tg-map>的子代组件`), {
487
+ return e == null && w(`<${Q() || "unknown"}>必须作为<tg-map>的子代组件`), {
488
488
  mapRef: e,
489
489
  /** 读取map对象, 只要放在<tg-map>里面的组件(除#overlay插槽外)都能够立即读取到map对象 */
490
490
  get map() {
@@ -492,11 +492,11 @@ function H() {
492
492
  },
493
493
  /** 地图元素创建回调 */
494
494
  [P](i) {
495
- ge(i), t && w(`${P}只能调用一次`), t = i;
495
+ be(i), t && w(`${P}只能调用一次`), t = i;
496
496
  },
497
497
  /** 地图元素销毁回调 */
498
498
  [I](i) {
499
- ve(i), r && w(`${I}只能调用一次`), r = i;
499
+ $e(i), r && w(`${I}只能调用一次`), r = i;
500
500
  },
501
501
  /** 重新创建地图元素 */
502
502
  recreate() {
@@ -504,14 +504,14 @@ function H() {
504
504
  }
505
505
  };
506
506
  }
507
- const lt = n({
507
+ const dt = n({
508
508
  name: "tg-street-view-control",
509
509
  props: {
510
510
  position: u(c, c.RIGHT_BOTTOM)
511
511
  },
512
512
  setup(e) {
513
513
  let t = l();
514
- const { map: r, onCreate: i, onDestroy: o } = H();
514
+ const { map: r, onCreate: i, onDestroy: o } = F();
515
515
  return i(() => {
516
516
  t = r.createStreetViewControl(d(e)), r.addControl(t);
517
517
  }), o(() => {
@@ -520,7 +520,7 @@ const lt = n({
520
520
  t.setPosition(d(a, c));
521
521
  }), E;
522
522
  }
523
- }), ht = n({
523
+ }), pt = n({
524
524
  name: "tg-zoom-control",
525
525
  props: {
526
526
  position: u(c, c.RIGHT_BOTTOM),
@@ -528,7 +528,7 @@ const lt = n({
528
528
  },
529
529
  setup(e) {
530
530
  let t = l();
531
- const { map: r, onCreate: i, onDestroy: o } = H();
531
+ const { map: r, onCreate: i, onDestroy: o } = F();
532
532
  return i(() => {
533
533
  t = r.createZoomControl(d(e)), r.addControl(t);
534
534
  }), o(() => {
@@ -539,7 +539,7 @@ const lt = n({
539
539
  t.setShowZoomLevel(a ?? !0);
540
540
  }), E;
541
541
  }
542
- }), dt = n({
542
+ }), ct = n({
543
543
  name: "tg-heatmap",
544
544
  props: {
545
545
  maxIntensity: s(Number),
@@ -549,7 +549,7 @@ const lt = n({
549
549
  data: m(Array)
550
550
  },
551
551
  setup(e) {
552
- const { map: t, onCreate: r, onDestroy: i } = H();
552
+ const { map: t, onCreate: r, onDestroy: i } = F();
553
553
  let o = l();
554
554
  return r(() => {
555
555
  o = t.createHeatmap(e);
@@ -560,7 +560,7 @@ const lt = n({
560
560
  () => o.setOptions(e)
561
561
  ), E;
562
562
  }
563
- }), xe = n({
563
+ }), Le = n({
564
564
  name: "tg-marker-clusterer",
565
565
  mixins: [p],
566
566
  // markers从this.$children中读取, 故需要省略(Omit)
@@ -624,18 +624,18 @@ const lt = n({
624
624
  this.markers.push(e), this.isInitiated() && (this.pendingMarkers.length || this.$nextTick(this.performAddMarkers), this.pendingMarkers.push(e));
625
625
  },
626
626
  onRemoveMarker(e) {
627
- this.isInitiated() && (F.remove(this.pendingMarkers, e) || this.clusterer.removeMarker(e)), F.remove(this.markers, e);
627
+ this.isInitiated() && (V.remove(this.pendingMarkers, e) || this.clusterer.removeMarker(e)), V.remove(this.markers, e);
628
628
  }
629
629
  }
630
630
  });
631
- function Ae(e, t, r, i, o, a) {
632
- return C(), $("div", {
631
+ function Be(e, t, r, i, o, a) {
632
+ return C(), b("div", {
633
633
  class: L(e.$options.name)
634
634
  }, [
635
635
  f(e.$slots, "default")
636
636
  ], 2);
637
637
  }
638
- const Le = /* @__PURE__ */ b(xe, [["render", Ae]]), pt = n({
638
+ const Ee = /* @__PURE__ */ $(Le, [["render", Be]]), mt = n({
639
639
  name: "tg-traffic-layer",
640
640
  mixins: [p],
641
641
  // 请直接使用v-if来控制它的显隐
@@ -648,12 +648,12 @@ const Le = /* @__PURE__ */ b(xe, [["render", Ae]]), pt = n({
648
648
  },
649
649
  watch: {},
650
650
  onCreate() {
651
- this.layer = new he(), this.$map.addLayer(this.layer);
651
+ this.layer = new pe(), this.$map.addLayer(this.layer);
652
652
  },
653
653
  onDestroy() {
654
654
  this.$map.removeLayer(this.layer);
655
655
  }
656
- }), ct = n({
656
+ }), ut = n({
657
657
  name: "tg-circle",
658
658
  mixins: [p],
659
659
  inheritAttrs: !1,
@@ -737,7 +737,7 @@ const Le = /* @__PURE__ */ b(xe, [["render", Ae]]), pt = n({
737
737
  this.$map.removeOverlay(this.overlay);
738
738
  }
739
739
  });
740
- class Be extends de {
740
+ class Ne extends ce {
741
741
  constructor(t, r, i, o) {
742
742
  super(t, r), this.content = i, this.position = o;
743
743
  }
@@ -752,7 +752,7 @@ class Be extends de {
752
752
  this.position = t, this.draw();
753
753
  }
754
754
  }
755
- const Ee = n({
755
+ const De = n({
756
756
  name: "tg-element-overlay",
757
757
  mixins: [p],
758
758
  props: {
@@ -778,20 +778,20 @@ const Ee = n({
778
778
  }
779
779
  },
780
780
  onCreate() {
781
- this.overlay = new Be(this.$map, d(this), this.content(), this.position), this.$map.addElementOverlay(this.overlay);
781
+ this.overlay = new Ne(this.$map, d(this), this.content(), this.position), this.$map.addElementOverlay(this.overlay);
782
782
  },
783
783
  onDestroy() {
784
784
  this.$map.removeElementOverlay(this.overlay);
785
785
  }
786
786
  });
787
- function Ne(e, t, r, i, o, a) {
788
- return C(), $("div", M({
787
+ function ze(e, t, r, i, o, a) {
788
+ return C(), b("div", M({
789
789
  class: e.$options.name
790
790
  }, e.$attrs), [
791
791
  f(e.$slots, "default")
792
792
  ], 16);
793
793
  }
794
- const mt = /* @__PURE__ */ b(Ee, [["render", Ne]]), De = {
794
+ const ft = /* @__PURE__ */ $(De, [["render", ze]]), We = {
795
795
  position: m(y),
796
796
  title: s(String),
797
797
  label: s(Object),
@@ -809,11 +809,11 @@ const mt = /* @__PURE__ */ b(Ee, [["render", Ne]]), De = {
809
809
  */
810
810
  autoAddToClusterer: s(Boolean, !0),
811
811
  "onUpdate:position": h()
812
- }, ze = n({
812
+ }, Ze = n({
813
813
  name: "tg-marker",
814
814
  mixins: [p],
815
815
  inheritAttrs: !1,
816
- props: De,
816
+ props: We,
817
817
  emits: void 0,
818
818
  setup(e, { attrs: t }) {
819
819
  return {
@@ -838,7 +838,7 @@ const mt = /* @__PURE__ */ b(Ee, [["render", Ne]]), De = {
838
838
  this.marker.setTitle(e);
839
839
  },
840
840
  label(e, t) {
841
- ee(e, t) || (e ? this.marker.setLabel(e) : this.recreate());
841
+ se(e, t) || (e ? this.marker.setLabel(e) : this.recreate());
842
842
  },
843
843
  icon(e) {
844
844
  e ? this.marker.setIcon(e) : this.recreate();
@@ -878,7 +878,7 @@ const mt = /* @__PURE__ */ b(Ee, [["render", Ne]]), De = {
878
878
  },
879
879
  methods: {
880
880
  $clusterer() {
881
- return K(this.$parent, Le);
881
+ return Y(this.$parent, Ee);
882
882
  },
883
883
  onAddLabel(e) {
884
884
  this.labelOverlay = e, this.marker && this.marker.attachLabelOverlay(e.overlay);
@@ -897,10 +897,10 @@ const mt = /* @__PURE__ */ b(Ee, [["render", Ne]]), De = {
897
897
  }
898
898
  }
899
899
  });
900
- function We(e, t, r, i, o, a) {
900
+ function Re(e, t, r, i, o, a) {
901
901
  return f(e.$slots, "default");
902
902
  }
903
- const V = /* @__PURE__ */ b(ze, [["render", We]]), Ze = n({
903
+ const H = /* @__PURE__ */ $(Ze, [["render", Re]]), Ue = n({
904
904
  name: "tg-info-box",
905
905
  mixins: [p],
906
906
  inheritAttrs: !1,
@@ -965,10 +965,10 @@ const V = /* @__PURE__ */ b(ze, [["render", We]]), Ze = n({
965
965
  };
966
966
  },
967
967
  content() {
968
- return this.$el;
968
+ return this.$map instanceof X ? K(this.$el, "google-info-container") : this.$el;
969
969
  },
970
970
  $marker() {
971
- return U(V, this.$parent, N);
971
+ return U(H, this.$parent, N);
972
972
  },
973
973
  open(e) {
974
974
  this.overlay.open(e);
@@ -978,14 +978,14 @@ const V = /* @__PURE__ */ b(ze, [["render", We]]), Ze = n({
978
978
  }
979
979
  }
980
980
  });
981
- function Re(e, t, r, i, o, a) {
982
- return C(), $("div", M({
981
+ function je(e, t, r, i, o, a) {
982
+ return C(), b("div", M({
983
983
  class: e.$options.name
984
984
  }, e.attrs.binds), [
985
985
  f(e.$slots, "default")
986
986
  ], 16);
987
987
  }
988
- const ut = /* @__PURE__ */ b(Ze, [["render", Re]]), Ue = n({
988
+ const yt = /* @__PURE__ */ $(Ue, [["render", je]]), Fe = n({
989
989
  name: "tg-info-window",
990
990
  mixins: [p],
991
991
  inheritAttrs: !1,
@@ -1023,10 +1023,10 @@ const ut = /* @__PURE__ */ b(Ze, [["render", Re]]), Ue = n({
1023
1023
  },
1024
1024
  methods: {
1025
1025
  content() {
1026
- return this.$el;
1026
+ return this.$map instanceof X ? K(this.$el, "google-info-container") : this.$el;
1027
1027
  },
1028
1028
  $marker() {
1029
- return U(V, this.$parent, N);
1029
+ return U(H, this.$parent, N);
1030
1030
  },
1031
1031
  getOptions() {
1032
1032
  return {
@@ -1049,16 +1049,16 @@ const ut = /* @__PURE__ */ b(Ze, [["render", Re]]), Ue = n({
1049
1049
  this.$marker() ? this.$marker().onRemoveInfo(this) : this.overlay.close();
1050
1050
  }
1051
1051
  });
1052
- function je(e, t, r, i, o, a) {
1053
- return be((C(), $("div", M({
1052
+ function He(e, t, r, i, o, a) {
1053
+ return Ce((C(), b("div", M({
1054
1054
  class: e.$options.name
1055
1055
  }, e.attrs.binds), [
1056
1056
  f(e.$slots, "default")
1057
1057
  ], 16)), [
1058
- [$e, e.show]
1058
+ [_e, e.show]
1059
1059
  ]);
1060
1060
  }
1061
- const ft = /* @__PURE__ */ b(Ue, [["render", je]]), He = n({
1061
+ const vt = /* @__PURE__ */ $(Fe, [["render", He]]), Ve = n({
1062
1062
  name: "tg-label",
1063
1063
  mixins: [p],
1064
1064
  inheritAttrs: !1,
@@ -1101,7 +1101,7 @@ const ft = /* @__PURE__ */ b(Ue, [["render", je]]), He = n({
1101
1101
  return (e = this.$marker()) == null ? void 0 : e.marker;
1102
1102
  },
1103
1103
  $marker() {
1104
- return U(V, this.$parent, N);
1104
+ return U(H, this.$parent, N);
1105
1105
  },
1106
1106
  getOptions() {
1107
1107
  return {
@@ -1120,14 +1120,14 @@ const ft = /* @__PURE__ */ b(Ue, [["render", je]]), He = n({
1120
1120
  this.$marker() ? this.$marker().onRemoveLabel(this) : this.$map.removeOverlay(this.overlay);
1121
1121
  }
1122
1122
  });
1123
- function Ve(e, t, r, i, o, a) {
1124
- return C(), $("div", M({
1123
+ function Ge(e, t, r, i, o, a) {
1124
+ return C(), b("div", M({
1125
1125
  class: e.$options.name
1126
1126
  }, e.attrs.binds), [
1127
1127
  f(e.$slots, "default")
1128
1128
  ], 16);
1129
1129
  }
1130
- const yt = /* @__PURE__ */ b(He, [["render", Ve]]), Fe = {
1130
+ const gt = /* @__PURE__ */ $(Ve, [["render", Ge]]), qe = {
1131
1131
  paths: m(Array),
1132
1132
  clickable: s(Boolean),
1133
1133
  editable: s(Boolean),
@@ -1139,11 +1139,11 @@ const yt = /* @__PURE__ */ b(He, [["render", Ve]]), Fe = {
1139
1139
  fillColor: s(String),
1140
1140
  fillOpacity: s(Number),
1141
1141
  "onUpdate:paths": h()
1142
- }, vt = n({
1142
+ }, $t = n({
1143
1143
  name: "tg-polygon",
1144
1144
  mixins: [p],
1145
1145
  inheritAttrs: !1,
1146
- props: Fe,
1146
+ props: qe,
1147
1147
  emits: void 0,
1148
1148
  setup(e, { attrs: t }) {
1149
1149
  return {
@@ -1200,7 +1200,7 @@ const yt = /* @__PURE__ */ b(He, [["render", Ve]]), Fe = {
1200
1200
  onDestroy() {
1201
1201
  this.$map.removeOverlay(this.overlay);
1202
1202
  }
1203
- }), gt = n({
1203
+ }), bt = n({
1204
1204
  name: "tg-polyline",
1205
1205
  mixins: [p],
1206
1206
  inheritAttrs: !1,
@@ -1272,7 +1272,7 @@ const yt = /* @__PURE__ */ b(He, [["render", Ve]]), Fe = {
1272
1272
  onDestroy() {
1273
1273
  this.overlay.remove();
1274
1274
  }
1275
- }), bt = n({
1275
+ }), Ct = n({
1276
1276
  name: "tg-rectangle",
1277
1277
  mixins: [p],
1278
1278
  inheritAttrs: !1,
@@ -1342,13 +1342,13 @@ const yt = /* @__PURE__ */ b(He, [["render", Ve]]), Fe = {
1342
1342
  onDestroy() {
1343
1343
  this.$map.removeOverlay(this.overlay);
1344
1344
  }
1345
- }), Ge = ["beforeUpdate", "updated"], $t = {
1345
+ }), Xe = ["beforeUpdate", "updated"], _t = {
1346
1346
  install(e, t = {}) {
1347
1347
  if (t.enable !== !1) {
1348
1348
  const r = n({
1349
1349
  beforeCreate() {
1350
- const i = J() ?? "", a = (t.nameRegex || /^[A-Z]/).test(i) ? (_) => {
1351
- t.hookNames ? t.hookNames.includes(_) && console.debug("[lifecycle]", i, _) : Ge.includes(_) || console.debug("[lifecycle]", i, _);
1350
+ const i = Q() ?? "", a = (t.nameRegex || /^[A-Z]/).test(i) ? (_) => {
1351
+ t.hookNames ? t.hookNames.includes(_) && console.debug("[lifecycle]", i, _) : Xe.includes(_) || console.debug("[lifecycle]", i, _);
1352
1352
  } : x;
1353
1353
  a("beforeCreate"), this.__life_impl = a;
1354
1354
  },
@@ -1388,57 +1388,57 @@ const yt = /* @__PURE__ */ b(He, [["render", Ve]]), Fe = {
1388
1388
  e.mixin(r);
1389
1389
  }
1390
1390
  }
1391
- }, Ct = {
1391
+ }, kt = {
1392
1392
  install(e, t) {
1393
- pe(t);
1393
+ me(t);
1394
1394
  const r = e.config.optionMergeStrategies;
1395
1395
  r[P] = r[I] = (i, o) => i ? [...new Set([].concat(i, o))] : Array.isArray(o) ? o : [o];
1396
1396
  }
1397
1397
  };
1398
1398
  export {
1399
- $t as LifecycleLogPlugin,
1399
+ _t as LifecycleLogPlugin,
1400
1400
  P as MIXIN_HOOK_CREATE,
1401
1401
  I as MIXIN_HOOK_DESTROY,
1402
1402
  j as MIXIN_MAP_NAME,
1403
1403
  p as MapMixin,
1404
- ct as TgCircle,
1405
- ot as TgCustomControl,
1406
- mt as TgElementOverlay,
1407
- dt as TgHeatmap,
1408
- ut as TgInfoBox,
1409
- ft as TgInfoWindow,
1410
- yt as TgLabel,
1404
+ ut as TgCircle,
1405
+ nt as TgCustomControl,
1406
+ ft as TgElementOverlay,
1407
+ ct as TgHeatmap,
1408
+ yt as TgInfoBox,
1409
+ vt as TgInfoWindow,
1410
+ gt as TgLabel,
1411
1411
  N as TgMap,
1412
- at as TgMapTypeControl,
1413
- it as TgMapWidget,
1414
- V as TgMarker,
1415
- Le as TgMarkerClusterer,
1416
- vt as TgPolygon,
1417
- gt as TgPolyline,
1418
- bt as TgRectangle,
1419
- nt as TgScaleControl,
1420
- lt as TgStreetViewControl,
1421
- pt as TgTrafficLayer,
1422
- ht as TgZoomControl,
1412
+ lt as TgMapTypeControl,
1413
+ at as TgMapWidget,
1414
+ H as TgMarker,
1415
+ Ee as TgMarkerClusterer,
1416
+ $t as TgPolygon,
1417
+ bt as TgPolyline,
1418
+ Ct as TgRectangle,
1419
+ ht as TgScaleControl,
1420
+ dt as TgStreetViewControl,
1421
+ mt as TgTrafficLayer,
1422
+ pt as TgZoomControl,
1423
1423
  S as callHook,
1424
- Qe as computedSaveOnThis,
1424
+ tt as computedSaveOnThis,
1425
1425
  E as createEmptyVNode,
1426
- _e as createPropertyObject,
1427
- et as createPropertyObjectTyped,
1428
- Ct as default,
1426
+ Te as createPropertyObject,
1427
+ st as createPropertyObjectTyped,
1428
+ kt as default,
1429
1429
  h as eventProp,
1430
- st as extractVNodeFromSlotsByComponent,
1430
+ it as extractVNodeFromSlotsByComponent,
1431
1431
  U as findAncestorComponentByType,
1432
- tt as findByComponentType,
1432
+ rt as findByComponentType,
1433
1433
  R as isComponentByType,
1434
1434
  s as optionalProp,
1435
1435
  m as requiredProp,
1436
- K as safeAsComponent,
1437
- ke as splitAttrs,
1436
+ Y as safeAsComponent,
1437
+ Oe as splitAttrs,
1438
1438
  u as stringEnumProp,
1439
- Ce as stringUnionPropFromValues,
1440
- rt as useEventLogMethods,
1439
+ ke as stringUnionPropFromValues,
1440
+ ot as useEventLogMethods,
1441
1441
  g as useSplittedAttrs,
1442
- H as useTgMapInner
1442
+ F as useTgMapInner
1443
1443
  };
1444
1444
  //# sourceMappingURL=tg-map.js.map