@abi-software/mapintegratedvuer 1.1.0 → 1.2.0-beta.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,62 +0,0 @@
1
- import { m as i } from "./ContentMixin-Belbk7R9.js";
2
- import { mapStores as n } from "pinia";
3
- import { u as f } from "./index-CpppckRD.js";
4
- const p = (e, r, t, o) => {
5
- r && r.forEach((a) => {
6
- let s = !1;
7
- for (let m = 0; m < i.length; m++)
8
- if (i[m].id === a) {
9
- if (s = !0, t >= i[m].showAtZoom) {
10
- let l = "standard-marker";
11
- o.includes(a) && (l = "hovered-marker"), e.addMarker(a, { className: l, cluster: !1 });
12
- }
13
- break;
14
- }
15
- s || e.addMarker(a, { className: "standard-marker", cluster: !1 });
16
- });
17
- }, k = {
18
- computed: {
19
- ...n(f)
20
- },
21
- methods: {
22
- flatmapPanZoomCallback: function(e) {
23
- if (this.mouseHovered) {
24
- const r = {
25
- paneIndex: this.entry.id,
26
- eventType: "panZoom",
27
- payload: e,
28
- type: this.entry.type
29
- };
30
- this.flatmapMarkerZoomUpdate(!1, void 0), this.$emit("resource-selected", r);
31
- }
32
- },
33
- /**
34
- * Function used for updating the flatmap markers.
35
- * It will only update the markers if zoom level has changed or
36
- * the force flag is true.
37
- */
38
- flatmapMarkerZoomUpdate(e, r) {
39
- if (!this.flatmapReady)
40
- return;
41
- let t = r;
42
- if (t || (t = this.getFlatmapImp()), t) {
43
- let o = t.getZoom().zoom;
44
- if (e || this.zoomLevel !== o) {
45
- this.zoomLevel = o, t.clearMarkers();
46
- let a = this.settingsStore.markers, s = this.settingsStore.hoveredMarkers;
47
- p(t, a, this.zoomLevel, s), this.entry.type === "MultiFlatmap" && this.restoreFeaturedMarkers(t);
48
- }
49
- }
50
- },
51
- flatmapReadyForMarkerUpdates: function(e) {
52
- if (e) {
53
- e.enablePanZoomEvents(!0), this.flatmapReady = !0;
54
- const r = e.mapImp;
55
- this.flatmapMarkerZoomUpdate(!0, r);
56
- }
57
- }
58
- }
59
- };
60
- export {
61
- k as D
62
- };