vue3-google-map 0.18.0 → 0.20.0

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.
@@ -1,9 +1,9 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".mapdiv[data-v-174b771e]{width:100%;height:100%}.info-window-wrapper[data-v-90174664]{display:none}.mapdiv .info-window-wrapper[data-v-90174664]{display:inline-block}.custom-marker-wrapper[data-v-2d2d343a]{display:none}.mapdiv .custom-marker-wrapper[data-v-2d2d343a]{display:inline-block}")),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".mapdiv[data-v-dbf82c40]{width:100%;height:100%}.custom-control-wrapper[data-v-d099a3a6]{display:none}.mapdiv .custom-control-wrapper[data-v-d099a3a6]{display:inline-block}.info-window-wrapper[data-v-cbe1707b]{display:none}.mapdiv .info-window-wrapper[data-v-cbe1707b]{display:inline-block}.custom-marker-wrapper[data-v-2d2d343a]{display:none}.mapdiv .custom-marker-wrapper[data-v-2d2d343a]{display:inline-block}")),document.head.appendChild(a)}}catch(d){console.error("vite-plugin-css-injected-by-js",d)}})();
2
2
  var qe = Object.defineProperty;
3
3
  var Be = (n, e, t) => e in n ? qe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
4
4
  var se = (n, e, t) => (Be(n, typeof e != "symbol" ? e + "" : e, t), t);
5
- import { defineComponent as P, ref as y, provide as G, watch as O, onMounted as Me, onBeforeUnmount as B, markRaw as I, toRef as N, openBlock as Y, createElementBlock as X, createElementVNode as ae, renderSlot as Q, normalizeProps as Ne, guardReactiveProps as Ze, inject as C, computed as J, withDirectives as De, vShow as Ue, Comment as Ee, mergeProps as Pe, createCommentVNode as Oe } from "vue";
6
- const Z = Symbol("map"), D = Symbol("api"), xe = Symbol("marker"), Le = Symbol("markerCluster"), ee = Symbol("CustomMarker"), Se = Symbol("mapTilesLoaded"), q = [
5
+ import { defineComponent as P, ref as y, provide as G, watch as O, onMounted as Me, onBeforeUnmount as B, markRaw as I, toRef as Z, openBlock as Y, createElementBlock as X, createElementVNode as ae, renderSlot as Q, normalizeProps as Ze, guardReactiveProps as Ne, inject as C, computed as J, Comment as Ee, mergeProps as Pe, createCommentVNode as Oe } from "vue";
6
+ const N = Symbol("map"), U = Symbol("api"), xe = Symbol("marker"), Le = Symbol("markerCluster"), ee = Symbol("CustomMarker"), Se = Symbol("mapTilesLoaded"), q = [
7
7
  "click",
8
8
  "dblclick",
9
9
  "drag",
@@ -30,7 +30,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
30
30
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
31
31
  PERFORMANCE OF THIS SOFTWARE.
32
32
  ***************************************************************************** */
33
- function Fe(n, e, t, s) {
33
+ function Ue(n, e, t, s) {
34
34
  function r(o) {
35
35
  return o instanceof t ? o : new t(function(a) {
36
36
  a(o);
@@ -57,7 +57,7 @@ function Fe(n, e, t, s) {
57
57
  d((s = s.apply(n, e || [])).next());
58
58
  });
59
59
  }
60
- var Ve = function n(e, t) {
60
+ var De = function n(e, t) {
61
61
  if (e === t)
62
62
  return !0;
63
63
  if (e && t && typeof e == "object" && typeof t == "object") {
@@ -109,7 +109,7 @@ class T {
109
109
  */
110
110
  constructor({ apiKey: e, authReferrerPolicy: t, channel: s, client: r, id: o = de, language: a, libraries: l = [], mapIds: i, nonce: d, region: u, retries: c = 3, url: h = "https://maps.googleapis.com/maps/api/js", version: p }) {
111
111
  if (this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = e, this.authReferrerPolicy = t, this.channel = s, this.client = r, this.id = o || de, this.language = a, this.libraries = l, this.mapIds = i, this.nonce = d, this.region = u, this.retries = c, this.url = h, this.version = p, T.instance) {
112
- if (!Ve(this.options, T.instance.options))
112
+ if (!De(this.options, T.instance.options))
113
113
  throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(T.instance.options)}`);
114
114
  return T.instance;
115
115
  }
@@ -209,7 +209,7 @@ class T {
209
209
  m = m[u] || (m[u] = {});
210
210
  const f = m.maps || (m.maps = {}), g = /* @__PURE__ */ new Set(), v = new URLSearchParams(), w = () => (
211
211
  // @ts-ignore
212
- a || (a = new Promise((_, E) => Fe(this, void 0, void 0, function* () {
212
+ a || (a = new Promise((_, E) => Ue(this, void 0, void 0, function* () {
213
213
  var b;
214
214
  yield l = p.createElement("script"), l.id = this.id, v.set("libraries", [...g] + "");
215
215
  for (i in o)
@@ -260,7 +260,7 @@ class T {
260
260
  }
261
261
  }
262
262
  }
263
- function ze(n) {
263
+ function Fe(n) {
264
264
  return class extends n.OverlayView {
265
265
  constructor(s) {
266
266
  super();
@@ -337,23 +337,26 @@ const pe = [
337
337
  "bounds_changed",
338
338
  "center_changed",
339
339
  "click",
340
+ "contextmenu",
340
341
  "dblclick",
341
342
  "drag",
342
343
  "dragend",
343
344
  "dragstart",
344
345
  "heading_changed",
345
346
  "idle",
347
+ "isfractionalzoomenabled_changed",
348
+ "mapcapabilities_changed",
346
349
  "maptypeid_changed",
347
350
  "mousemove",
348
351
  "mouseout",
349
352
  "mouseover",
350
353
  "projection_changed",
351
- "resize",
354
+ "renderingtype_changed",
352
355
  "rightclick",
353
356
  "tilesloaded",
354
357
  "tilt_changed",
355
358
  "zoom_changed"
356
- ], Ge = P({
359
+ ], Ve = P({
357
360
  props: {
358
361
  apiPromise: {
359
362
  type: Promise
@@ -435,6 +438,11 @@ const pe = [
435
438
  type: Number,
436
439
  required: !1
437
440
  },
441
+ isFractionalZoomEnabled: {
442
+ type: Boolean,
443
+ required: !1,
444
+ default: void 0
445
+ },
438
446
  keyboardShortcuts: {
439
447
  type: Boolean,
440
448
  required: !1,
@@ -539,12 +547,16 @@ const pe = [
539
547
  zoomControlPosition: {
540
548
  type: String,
541
549
  required: !1
550
+ },
551
+ nonce: {
552
+ type: String,
553
+ default: ""
542
554
  }
543
555
  },
544
556
  emits: pe,
545
557
  setup(n, { emit: e }) {
546
558
  const t = y(), s = y(!1), r = y(), o = y(), a = y(!1);
547
- G(Z, r), G(D, o), G(Se, a);
559
+ G(N, r), G(U, o), G(Se, a);
548
560
  const l = () => {
549
561
  const c = { ...n };
550
562
  Object.keys(c).forEach((f) => {
@@ -574,21 +586,21 @@ const pe = [
574
586
  { immediate: !0 }
575
587
  ), d = () => {
576
588
  try {
577
- const { apiKey: c, region: h, version: p, language: m, libraries: f } = n;
578
- he = new T({ apiKey: c, region: h, version: p, language: m, libraries: f });
589
+ const { apiKey: c, region: h, version: p, language: m, libraries: f, nonce: g } = n;
590
+ he = new T({ apiKey: c, region: h, version: p, language: m, libraries: f, nonce: g });
579
591
  } catch (c) {
580
592
  console.error(c);
581
593
  }
582
594
  }, u = (c) => {
583
595
  o.value = I(c.maps), r.value = I(new c.maps.Map(t.value, l()));
584
- const h = ze(o.value);
596
+ const h = Fe(o.value);
585
597
  o.value[ee] = h, pe.forEach((m) => {
586
598
  var f;
587
599
  (f = r.value) == null || f.addListener(m, (g) => e(m, g));
588
600
  }), s.value = !0;
589
601
  const p = Object.keys(n).filter(
590
- (m) => !["apiPromise", "apiKey", "version", "libraries", "region", "language", "center", "zoom"].includes(m)
591
- ).map((m) => N(n, m));
602
+ (m) => !["apiPromise", "apiKey", "version", "libraries", "region", "language", "center", "zoom", "nonce"].includes(m)
603
+ ).map((m) => Z(n, m));
592
604
  O(
593
605
  [() => n.center, () => n.zoom, ...p],
594
606
  ([m, f], [g, v]) => {
@@ -613,21 +625,21 @@ const te = (n, e) => {
613
625
  for (const [s, r] of e)
614
626
  t[s] = r;
615
627
  return t;
616
- }, He = {
628
+ }, ze = {
617
629
  ref: "mapRef",
618
630
  class: "mapdiv"
619
631
  };
620
- function We(n, e, t, s, r, o) {
632
+ function Ge(n, e, t, s, r, o) {
621
633
  return Y(), X("div", null, [
622
- ae("div", He, null, 512),
623
- Q(n.$slots, "default", Ne(Ze({ ready: n.ready, map: n.map, api: n.api, mapTilesLoaded: n.mapTilesLoaded })), void 0, !0)
634
+ ae("div", ze, null, 512),
635
+ Q(n.$slots, "default", Ze(Ne({ ready: n.ready, map: n.map, api: n.api, mapTilesLoaded: n.mapTilesLoaded })), void 0, !0)
624
636
  ]);
625
637
  }
626
- const Ot = /* @__PURE__ */ te(Ge, [["render", We], ["__scopeId", "data-v-174b771e"]]);
627
- function Ke(n) {
638
+ const Et = /* @__PURE__ */ te(Ve, [["render", Ge], ["__scopeId", "data-v-dbf82c40"]]);
639
+ function He(n) {
628
640
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
629
641
  }
630
- var Je = function n(e, t) {
642
+ var We = function n(e, t) {
631
643
  if (e === t)
632
644
  return !0;
633
645
  if (e && t && typeof e == "object" && typeof t == "object") {
@@ -662,8 +674,8 @@ var Je = function n(e, t) {
662
674
  }
663
675
  return e !== e && t !== t;
664
676
  };
665
- const $ = /* @__PURE__ */ Ke(Je), Ye = (n) => n === "Marker", Xe = (n) => n === ee, U = (n, e, t, s) => {
666
- const r = y(), o = C(Z, y()), a = C(D, y()), l = C(Le, y()), i = J(
677
+ const $ = /* @__PURE__ */ He(We), Ke = (n) => n === "Marker", Je = (n) => n === ee, D = (n, e, t, s) => {
678
+ const r = y(), o = C(N, y()), a = C(U, y()), l = C(Le, y()), i = J(
667
679
  () => !!(l.value && a.value && (r.value instanceof a.value.Marker || r.value instanceof a.value[ee]))
668
680
  );
669
681
  return O(
@@ -671,9 +683,9 @@ const $ = /* @__PURE__ */ Ke(Je), Ye = (n) => n === "Marker", Xe = (n) => n ===
671
683
  (d, [u, c]) => {
672
684
  var p, m, f;
673
685
  const h = !$(t.value, c) || o.value !== u;
674
- !o.value || !a.value || !h || (r.value ? (r.value.setOptions(t.value), i.value && ((p = l.value) == null || p.removeMarker(r.value), (m = l.value) == null || m.addMarker(r.value))) : (Ye(n) ? r.value = I(
686
+ !o.value || !a.value || !h || (r.value ? (r.value.setOptions(t.value), i.value && ((p = l.value) == null || p.removeMarker(r.value), (m = l.value) == null || m.addMarker(r.value))) : (Ke(n) ? r.value = I(
675
687
  new a.value[n](t.value)
676
- ) : Xe(n) ? r.value = I(
688
+ ) : Je(n) ? r.value = I(
677
689
  new a.value[n](t.value)
678
690
  ) : r.value = I(
679
691
  new a.value[n]({
@@ -716,7 +728,7 @@ const $ = /* @__PURE__ */ Ke(Je), Ye = (n) => n === "Marker", Xe = (n) => n ===
716
728
  "shape_changed",
717
729
  "title_changed",
718
730
  "visible_changed"
719
- ], xt = P({
731
+ ], Pt = P({
720
732
  name: "Marker",
721
733
  props: {
722
734
  options: {
@@ -726,13 +738,13 @@ const $ = /* @__PURE__ */ Ke(Je), Ye = (n) => n === "Marker", Xe = (n) => n ===
726
738
  },
727
739
  emits: fe,
728
740
  setup(n, { emit: e, expose: t, slots: s }) {
729
- const r = N(n, "options"), o = U("Marker", fe, r, e);
741
+ const r = Z(n, "options"), o = D("Marker", fe, r, e);
730
742
  return G(xe, o), t({ marker: o }), () => {
731
743
  var a;
732
744
  return (a = s.default) == null ? void 0 : a.call(s);
733
745
  };
734
746
  }
735
- }), Lt = P({
747
+ }), Ot = P({
736
748
  name: "Polyline",
737
749
  props: {
738
750
  options: {
@@ -742,11 +754,11 @@ const $ = /* @__PURE__ */ Ke(Je), Ye = (n) => n === "Marker", Xe = (n) => n ===
742
754
  },
743
755
  emits: q,
744
756
  setup(n, { emit: e }) {
745
- const t = N(n, "options");
746
- return { polyline: U("Polyline", q, t, e) };
757
+ const t = Z(n, "options");
758
+ return { polyline: D("Polyline", q, t, e) };
747
759
  },
748
760
  render: () => null
749
- }), St = P({
761
+ }), xt = P({
750
762
  name: "Polygon",
751
763
  props: {
752
764
  options: {
@@ -756,11 +768,11 @@ const $ = /* @__PURE__ */ Ke(Je), Ye = (n) => n === "Marker", Xe = (n) => n ===
756
768
  },
757
769
  emits: q,
758
770
  setup(n, { emit: e }) {
759
- const t = N(n, "options");
760
- return { polygon: U("Polygon", q, t, e) };
771
+ const t = Z(n, "options");
772
+ return { polygon: D("Polygon", q, t, e) };
761
773
  },
762
774
  render: () => null
763
- }), me = q.concat(["bounds_changed"]), It = P({
775
+ }), me = q.concat(["bounds_changed"]), Lt = P({
764
776
  name: "Rectangle",
765
777
  props: {
766
778
  options: {
@@ -770,11 +782,11 @@ const $ = /* @__PURE__ */ Ke(Je), Ye = (n) => n === "Marker", Xe = (n) => n ===
770
782
  },
771
783
  emits: me,
772
784
  setup(n, { emit: e }) {
773
- const t = N(n, "options");
774
- return { rectangle: U("Rectangle", me, t, e) };
785
+ const t = Z(n, "options");
786
+ return { rectangle: D("Rectangle", me, t, e) };
775
787
  },
776
788
  render: () => null
777
- }), ge = q.concat(["center_changed", "radius_changed"]), At = P({
789
+ }), ge = q.concat(["center_changed", "radius_changed"]), St = P({
778
790
  name: "Circle",
779
791
  props: {
780
792
  options: {
@@ -784,11 +796,11 @@ const $ = /* @__PURE__ */ Ke(Je), Ye = (n) => n === "Marker", Xe = (n) => n ===
784
796
  },
785
797
  emits: ge,
786
798
  setup(n, { emit: e }) {
787
- const t = N(n, "options");
788
- return { circle: U("Circle", ge, t, e) };
799
+ const t = Z(n, "options");
800
+ return { circle: D("Circle", ge, t, e) };
789
801
  },
790
802
  render: () => null
791
- }), Qe = P({
803
+ }), Ye = P({
792
804
  props: {
793
805
  position: {
794
806
  type: String,
@@ -801,47 +813,49 @@ const $ = /* @__PURE__ */ Ke(Je), Ye = (n) => n === "Marker", Xe = (n) => n ===
801
813
  },
802
814
  emits: ["content:loaded"],
803
815
  setup(n, { emit: e }) {
804
- const t = y(null), s = C(Z, y()), r = C(D, y()), o = C(Se, y(!1)), a = y(!1), l = O(
816
+ const t = y(null), s = C(N, y()), r = C(U, y()), o = C(Se, y(!1)), a = O(
805
817
  [o, r, t],
806
- ([u, c, h]) => {
807
- c && u && h && (i(n.position), a.value = !0, e("content:loaded"), setTimeout(l, 0));
818
+ ([d, u, c]) => {
819
+ u && d && c && (l(n.position), e("content:loaded"), setTimeout(a, 0));
808
820
  },
809
821
  { immediate: !0 }
810
- ), i = (u) => {
822
+ ), l = (d) => {
811
823
  if (s.value && r.value && t.value) {
812
- const c = r.value.ControlPosition[u];
813
- s.value.controls[c].push(t.value);
824
+ const u = r.value.ControlPosition[d];
825
+ s.value.controls[u].push(t.value);
814
826
  }
815
- }, d = (u) => {
827
+ }, i = (d) => {
816
828
  if (s.value && r.value) {
817
- let c = null;
818
- const h = r.value.ControlPosition[u];
819
- s.value.controls[h].forEach((p, m) => {
820
- p === t.value && (c = m);
821
- }), c !== null && s.value.controls[h].removeAt(c);
829
+ let u = null;
830
+ const c = r.value.ControlPosition[d];
831
+ s.value.controls[c].forEach((h, p) => {
832
+ h === t.value && (u = p);
833
+ }), u !== null && s.value.controls[c].removeAt(u);
822
834
  }
823
835
  };
824
- return B(() => d(n.position)), O(
836
+ return B(() => i(n.position)), O(
825
837
  () => n.position,
826
- (u, c) => {
827
- d(c), i(u);
838
+ (d, u) => {
839
+ i(u), l(d);
828
840
  }
829
841
  ), O(
830
842
  () => n.index,
831
- (u) => {
832
- u && t.value && (t.value.index = n.index);
843
+ (d) => {
844
+ d && t.value && (t.value.index = n.index);
833
845
  }
834
- ), { controlRef: t, showContent: a };
835
- }
836
- }), et = { ref: "controlRef" };
837
- function tt(n, e, t, s, r, o) {
838
- return De((Y(), X("div", et, [
839
- Q(n.$slots, "default")
840
- ], 512)), [
841
- [Ue, n.showContent]
842
- ]);
846
+ ), { controlRef: t };
847
+ }
848
+ });
849
+ const Xe = {
850
+ ref: "controlRef",
851
+ class: "custom-control-wrapper"
852
+ };
853
+ function Qe(n, e, t, s, r, o) {
854
+ return Y(), X("div", Xe, [
855
+ Q(n.$slots, "default", {}, void 0, !0)
856
+ ], 512);
843
857
  }
844
- const Tt = /* @__PURE__ */ te(Qe, [["render", tt]]), ve = ["closeclick", "content_changed", "domready", "position_changed", "visible", "zindex_changed"], st = P({
858
+ const It = /* @__PURE__ */ te(Ye, [["render", Qe], ["__scopeId", "data-v-d099a3a6"]]), ve = ["closeclick", "content_changed", "domready", "position_changed", "visible", "zindex_changed"], et = P({
845
859
  inheritAttrs: !1,
846
860
  props: {
847
861
  options: {
@@ -854,7 +868,7 @@ const Tt = /* @__PURE__ */ te(Qe, [["render", tt]]), ve = ["closeclick", "conten
854
868
  },
855
869
  emits: [...ve, "update:modelValue"],
856
870
  setup(n, { slots: e, emit: t, expose: s }) {
857
- const r = y(), o = y(), a = C(Z, y()), l = C(D, y()), i = C(xe, y());
871
+ const r = y(), o = y(), a = C(N, y()), l = C(U, y()), i = C(xe, y());
858
872
  let d, u = n.modelValue;
859
873
  const c = J(() => {
860
874
  var f;
@@ -890,27 +904,30 @@ const Tt = /* @__PURE__ */ te(Qe, [["render", tt]]), ve = ["closeclick", "conten
890
904
  {
891
905
  immediate: !0
892
906
  }
893
- ), O(() => n.modelValue, (f) => {
894
- f !== u && (f ? p() : m());
895
- });
907
+ ), O(
908
+ () => n.modelValue,
909
+ (f) => {
910
+ f !== u && (f ? p() : m());
911
+ }
912
+ );
896
913
  }), B(() => {
897
914
  var f;
898
915
  d && d.remove(), r.value && ((f = l.value) == null || f.event.clearInstanceListeners(r.value), m());
899
916
  }), s({ infoWindow: r, open: p, close: m }), { infoWindow: r, infoWindowRef: o, hasSlotContent: c, open: p, close: m };
900
917
  }
901
918
  });
902
- const rt = {
919
+ const tt = {
903
920
  key: 0,
904
921
  class: "info-window-wrapper"
905
922
  };
906
- function nt(n, e, t, s, r, o) {
907
- return n.hasSlotContent ? (Y(), X("div", rt, [
923
+ function st(n, e, t, s, r, o) {
924
+ return n.hasSlotContent ? (Y(), X("div", tt, [
908
925
  ae("div", Pe({ ref: "infoWindowRef" }, n.$attrs), [
909
926
  Q(n.$slots, "default", {}, void 0, !0)
910
927
  ], 16)
911
928
  ])) : Oe("", !0);
912
929
  }
913
- const $t = /* @__PURE__ */ te(st, [["render", nt], ["__scopeId", "data-v-90174664"]]), ye = [
930
+ const At = /* @__PURE__ */ te(et, [["render", st], ["__scopeId", "data-v-cbe1707b"]]), ye = [
914
931
  Int8Array,
915
932
  Uint8Array,
916
933
  Uint8ClampedArray,
@@ -1060,7 +1077,7 @@ function we(n, e, t, s) {
1060
1077
  const r = n - t, o = e - s;
1061
1078
  return r * r + o * o;
1062
1079
  }
1063
- const ot = {
1080
+ const rt = {
1064
1081
  minZoom: 0,
1065
1082
  // min zoom to generate clusters on
1066
1083
  maxZoom: 16,
@@ -1086,7 +1103,7 @@ const ot = {
1086
1103
  }, _e = Math.fround || ((n) => (e) => (n[0] = +e, n[0]))(new Float32Array(1)), A = 2, S = 3, oe = 4, L = 5, Ae = 6;
1087
1104
  class Te {
1088
1105
  constructor(e) {
1089
- this.options = Object.assign(Object.create(ot), e), this.trees = new Array(this.options.maxZoom + 1), this.stride = this.options.reduce ? 7 : 6, this.clusterProps = [];
1106
+ this.options = Object.assign(Object.create(rt), e), this.trees = new Array(this.options.maxZoom + 1), this.stride = this.options.reduce ? 7 : 6, this.clusterProps = [];
1090
1107
  }
1091
1108
  load(e) {
1092
1109
  const { log: t, minZoom: s, maxZoom: r } = this.options;
@@ -1303,7 +1320,7 @@ function ke(n, e, t) {
1303
1320
  properties: $e(n, e, t),
1304
1321
  geometry: {
1305
1322
  type: "Point",
1306
- coordinates: [it(n[e]), at(n[e + 1])]
1323
+ coordinates: [nt(n[e]), ot(n[e + 1])]
1307
1324
  }
1308
1325
  };
1309
1326
  }
@@ -1323,10 +1340,10 @@ function K(n) {
1323
1340
  const e = Math.sin(n * Math.PI / 180), t = 0.5 - 0.25 * Math.log((1 + e) / (1 - e)) / Math.PI;
1324
1341
  return t < 0 ? 0 : t > 1 ? 1 : t;
1325
1342
  }
1326
- function it(n) {
1343
+ function nt(n) {
1327
1344
  return (n - 0.5) * 360;
1328
1345
  }
1329
- function at(n) {
1346
+ function ot(n) {
1330
1347
  const e = (180 - n * 360) * Math.PI / 180;
1331
1348
  return 360 * Math.atan(Math.exp(e)) / Math.PI - 90;
1332
1349
  }
@@ -1413,19 +1430,19 @@ class H {
1413
1430
  this.marker && (k.setMap(this.marker, null), this.marker = void 0), this.markers.length = 0;
1414
1431
  }
1415
1432
  }
1416
- const lt = (n, e, t, s) => {
1433
+ const it = (n, e, t, s) => {
1417
1434
  const r = Re(n.getBounds(), e, s);
1418
1435
  return t.filter((o) => r.contains(k.getPosition(o)));
1419
1436
  }, Re = (n, e, t) => {
1420
- const { northEast: s, southWest: r } = ct(n, e), o = ut({ northEast: s, southWest: r }, t);
1421
- return dt(o, e);
1437
+ const { northEast: s, southWest: r } = at(n, e), o = lt({ northEast: s, southWest: r }, t);
1438
+ return ct(o, e);
1422
1439
  }, Ce = (n, e, t) => {
1423
1440
  const s = Re(n, e, t), r = s.getNorthEast(), o = s.getSouthWest();
1424
1441
  return [o.lng(), o.lat(), r.lng(), r.lat()];
1425
- }, ct = (n, e) => ({
1442
+ }, at = (n, e) => ({
1426
1443
  northEast: e.fromLatLngToDivPixel(n.getNorthEast()),
1427
1444
  southWest: e.fromLatLngToDivPixel(n.getSouthWest())
1428
- }), ut = ({ northEast: n, southWest: e }, t) => (n.x += t, n.y -= t, e.x -= t, e.y += t, { northEast: n, southWest: e }), dt = ({ northEast: n, southWest: e }, t) => {
1445
+ }), lt = ({ northEast: n, southWest: e }, t) => (n.x += t, n.y -= t, e.x -= t, e.y += t, { northEast: n, southWest: e }), ct = ({ northEast: n, southWest: e }, t) => {
1429
1446
  const s = t.fromDivPixelToLatLng(e), r = t.fromDivPixelToLatLng(n);
1430
1447
  return new google.maps.LatLngBounds(s, r);
1431
1448
  };
@@ -1446,10 +1463,10 @@ class je {
1446
1463
  * ```
1447
1464
  */
1448
1465
  noop({ markers: e }) {
1449
- return pt(e);
1466
+ return dt(e);
1450
1467
  }
1451
1468
  }
1452
- class ht extends je {
1469
+ class ut extends je {
1453
1470
  constructor(e) {
1454
1471
  var { viewportPadding: t = 60 } = e, s = ce(e, ["viewportPadding"]);
1455
1472
  super(s), this.viewportPadding = 60, this.viewportPadding = t;
@@ -1462,18 +1479,18 @@ class ht extends je {
1462
1479
  changed: !1
1463
1480
  } : {
1464
1481
  clusters: this.cluster({
1465
- markers: lt(t, s, e, this.viewportPadding),
1482
+ markers: it(t, s, e, this.viewportPadding),
1466
1483
  map: t,
1467
1484
  mapCanvasProjection: s
1468
1485
  })
1469
1486
  };
1470
1487
  }
1471
1488
  }
1472
- const pt = (n) => n.map((t) => new H({
1489
+ const dt = (n) => n.map((t) => new H({
1473
1490
  position: k.getPosition(t),
1474
1491
  markers: [t]
1475
1492
  }));
1476
- class ft extends je {
1493
+ class ht extends je {
1477
1494
  constructor(e) {
1478
1495
  var { maxZoom: t, radius: s = 60 } = e, r = ce(e, ["maxZoom", "radius"]);
1479
1496
  super({ maxZoom: t }), this.state = { zoom: -1 }, this.superCluster = new Te(Object.assign({ maxZoom: this.maxZoom, radius: s }, r));
@@ -1514,7 +1531,7 @@ class ft extends je {
1514
1531
  });
1515
1532
  }
1516
1533
  }
1517
- class mt extends ht {
1534
+ class pt extends ut {
1518
1535
  constructor(e) {
1519
1536
  var { maxZoom: t, radius: s = 60, viewportPadding: r = 60 } = e, o = ce(e, ["maxZoom", "radius", "viewportPadding"]);
1520
1537
  super({ maxZoom: t, viewportPadding: r }), this.superCluster = new Te(Object.assign({ maxZoom: this.maxZoom, radius: s }, o)), this.state = { zoom: -1, view: [0, 0, 0, 0] };
@@ -1562,7 +1579,7 @@ class mt extends ht {
1562
1579
  });
1563
1580
  }
1564
1581
  }
1565
- class gt {
1582
+ class ft {
1566
1583
  constructor(e, t) {
1567
1584
  this.markers = { sum: e.length };
1568
1585
  const s = t.map((o) => o.count), r = s.reduce((o, a) => o + a, 0);
@@ -1577,7 +1594,7 @@ class gt {
1577
1594
  };
1578
1595
  }
1579
1596
  }
1580
- class vt {
1597
+ class mt {
1581
1598
  /**
1582
1599
  * The default render function for the library used by {@link MarkerClusterer}.
1583
1600
  *
@@ -1649,24 +1666,24 @@ class vt {
1649
1666
  return new google.maps.Marker(d);
1650
1667
  }
1651
1668
  }
1652
- function yt(n, e) {
1669
+ function gt(n, e) {
1653
1670
  for (let t in e.prototype)
1654
1671
  n.prototype[t] = e.prototype[t];
1655
1672
  }
1656
1673
  class ue {
1657
1674
  constructor() {
1658
- yt(ue, google.maps.OverlayView);
1675
+ gt(ue, google.maps.OverlayView);
1659
1676
  }
1660
1677
  }
1661
1678
  var j;
1662
1679
  (function(n) {
1663
1680
  n.CLUSTERING_BEGIN = "clusteringbegin", n.CLUSTERING_END = "clusteringend", n.CLUSTER_CLICK = "click";
1664
1681
  })(j || (j = {}));
1665
- const wt = (n, e, t) => {
1682
+ const vt = (n, e, t) => {
1666
1683
  t.fitBounds(e.bounds);
1667
1684
  };
1668
- class _t extends ue {
1669
- constructor({ map: e, markers: t = [], algorithmOptions: s = {}, algorithm: r = new ft(s), renderer: o = new vt(), onClusterClick: a = wt }) {
1685
+ class yt extends ue {
1686
+ constructor({ map: e, markers: t = [], algorithmOptions: s = {}, algorithm: r = new ht(s), renderer: o = new mt(), onClusterClick: a = vt }) {
1670
1687
  super(), this.markers = [...t], this.clusters = [], this.algorithm = r, this.renderer = o, this.onClusterClick = a, e && this.setMap(e);
1671
1688
  }
1672
1689
  addMarker(e, t) {
@@ -1724,7 +1741,7 @@ class _t extends ue {
1724
1741
  this.markers.forEach((e) => k.setMap(e, null)), this.clusters.forEach((e) => e.delete()), this.clusters = [];
1725
1742
  }
1726
1743
  renderClusters() {
1727
- const e = new gt(this.markers, this.clusters), t = this.getMap();
1744
+ const e = new ft(this.markers, this.clusters), t = this.getMap();
1728
1745
  this.clusters.forEach((s) => {
1729
1746
  s.markers.length === 1 ? s.marker = s.markers[0] : (s.marker = this.renderer.render(s, e, t), s.markers.forEach((r) => k.setMap(r, null)), this.onClusterClick && s.marker.addListener(
1730
1747
  "click",
@@ -1736,7 +1753,7 @@ class _t extends ue {
1736
1753
  });
1737
1754
  }
1738
1755
  }
1739
- const be = Object.values(j), Rt = P({
1756
+ const be = Object.values(j), Tt = P({
1740
1757
  name: "MarkerCluster",
1741
1758
  props: {
1742
1759
  options: {
@@ -1746,16 +1763,16 @@ const be = Object.values(j), Rt = P({
1746
1763
  },
1747
1764
  emits: be,
1748
1765
  setup(n, { emit: e, expose: t, slots: s }) {
1749
- const r = y(), o = C(Z, y()), a = C(D, y());
1766
+ const r = y(), o = C(N, y()), a = C(U, y());
1750
1767
  return G(Le, r), O(
1751
1768
  o,
1752
1769
  () => {
1753
1770
  o.value && (r.value = I(
1754
- new _t({
1771
+ new yt({
1755
1772
  map: o.value,
1756
1773
  // Better perf than the default `SuperClusterAlgorithm`. See:
1757
1774
  // https://github.com/googlemaps/js-markerclusterer/pull/640
1758
- algorithm: new mt(n.options.algorithmOptions ?? {}),
1775
+ algorithm: new pt(n.options.algorithmOptions ?? {}),
1759
1776
  ...n.options
1760
1777
  })
1761
1778
  ), be.forEach((l) => {
@@ -1774,7 +1791,7 @@ const be = Object.values(j), Rt = P({
1774
1791
  return (l = s.default) == null ? void 0 : l.call(s);
1775
1792
  };
1776
1793
  }
1777
- }), kt = P({
1794
+ }), wt = P({
1778
1795
  inheritAttrs: !1,
1779
1796
  props: {
1780
1797
  options: {
@@ -1789,18 +1806,18 @@ const be = Object.values(j), Rt = P({
1789
1806
  }), a = J(() => ({
1790
1807
  ...n.options,
1791
1808
  element: r.value
1792
- })), l = U(ee, [], a, t);
1809
+ })), l = D(ee, [], a, t);
1793
1810
  return s({
1794
1811
  customMarker: l
1795
1812
  }), { customMarkerRef: r, customMarker: l, hasSlotContent: o };
1796
1813
  }
1797
1814
  });
1798
- const Ct = {
1815
+ const _t = {
1799
1816
  key: 0,
1800
1817
  class: "custom-marker-wrapper"
1801
1818
  };
1802
- function bt(n, e, t, s, r, o) {
1803
- return n.hasSlotContent ? (Y(), X("div", Ct, [
1819
+ function kt(n, e, t, s, r, o) {
1820
+ return n.hasSlotContent ? (Y(), X("div", _t, [
1804
1821
  ae("div", Pe({
1805
1822
  ref: "customMarkerRef",
1806
1823
  style: { cursor: n.$attrs.onClick ? "pointer" : void 0 }
@@ -1809,7 +1826,7 @@ function bt(n, e, t, s, r, o) {
1809
1826
  ], 16)
1810
1827
  ])) : Oe("", !0);
1811
1828
  }
1812
- const jt = /* @__PURE__ */ te(kt, [["render", bt], ["__scopeId", "data-v-2d2d343a"]]), qt = P({
1829
+ const $t = /* @__PURE__ */ te(wt, [["render", kt], ["__scopeId", "data-v-2d2d343a"]]), Rt = P({
1813
1830
  name: "HeatmapLayer",
1814
1831
  props: {
1815
1832
  options: {
@@ -1818,7 +1835,7 @@ const jt = /* @__PURE__ */ te(kt, [["render", bt], ["__scopeId", "data-v-2d2d343
1818
1835
  }
1819
1836
  },
1820
1837
  setup(n) {
1821
- const e = y(), t = C(Z, y()), s = C(D, y());
1838
+ const e = y(), t = C(N, y()), s = C(U, y());
1822
1839
  return O(
1823
1840
  [t, () => n.options],
1824
1841
  ([r, o], [a, l]) => {
@@ -1846,15 +1863,15 @@ const jt = /* @__PURE__ */ te(kt, [["render", bt], ["__scopeId", "data-v-2d2d343
1846
1863
  render: () => null
1847
1864
  });
1848
1865
  export {
1849
- At as Circle,
1850
- Tt as CustomControl,
1851
- jt as CustomMarker,
1852
- Ot as GoogleMap,
1853
- qt as HeatmapLayer,
1854
- $t as InfoWindow,
1855
- xt as Marker,
1856
- Rt as MarkerCluster,
1857
- St as Polygon,
1858
- Lt as Polyline,
1859
- It as Rectangle
1866
+ St as Circle,
1867
+ It as CustomControl,
1868
+ $t as CustomMarker,
1869
+ Et as GoogleMap,
1870
+ Rt as HeatmapLayer,
1871
+ At as InfoWindow,
1872
+ Pt as Marker,
1873
+ Tt as MarkerCluster,
1874
+ xt as Polygon,
1875
+ Ot as Polyline,
1876
+ Lt as Rectangle
1860
1877
  };