@arenarium/maps 1.1.2 → 1.2.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.
package/dist/google.es.js DELETED
@@ -1,166 +0,0 @@
1
- var l = Object.defineProperty;
2
- var m = (a, t, e) => t in a ? l(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
- var r = (a, t, e) => m(a, typeof t != "symbol" ? t + "" : t, e);
4
- import { g as p } from "./attribution-BYiDRQF4.js";
5
- class h {
6
- constructor(t, e, s, i) {
7
- r(this, "MapClass");
8
- r(this, "MapMarkerClass");
9
- r(this, "map");
10
- r(this, "options");
11
- r(this, "attributionObserver");
12
- r(this, "attributionElement");
13
- this.MapClass = t, this.MapMarkerClass = e, this.options = i, this.map = new this.MapClass(s, {
14
- ...i
15
- }), (i.attribution || i.attribution == null) && (this.map.addListener("idle", () => {
16
- this.attributionObserver || (this.attributionObserver = new MutationObserver((n, o) => {
17
- this.insertAttributionElement(), this.attributionElement != null && (this.updateAttributionElement(), o.disconnect());
18
- }), this.attributionObserver.observe(s, { childList: !0, subtree: !0 }));
19
- }), this.map.addListener("bounds_changed", () => {
20
- this.updateAttributionElement();
21
- }));
22
- }
23
- insertAttributionElement() {
24
- var n, o;
25
- const t = this.map.getDiv();
26
- if (t == null) return;
27
- const e = t.getElementsByClassName("gmnoprint")[0];
28
- if (e == null || e.parentElement == null) return;
29
- const s = e.cloneNode(!0), i = (o = (n = s.childNodes.item(0)) == null ? void 0 : n.childNodes.item(1)) == null ? void 0 : o.childNodes.item(0);
30
- i != null && (i.title = "", i.innerHTML = p(), e.parentElement.insertBefore(s, e), this.attributionElement = i);
31
- }
32
- updateAttributionElement() {
33
- var s, i;
34
- const t = this.map.getDiv();
35
- if (t == null) return;
36
- const e = (i = (s = this.attributionElement) == null ? void 0 : s.childNodes.item(0)) == null ? void 0 : i.childNodes.item(1);
37
- e != null && (e.style.display = t.clientWidth > 500 ? "initial" : "none");
38
- }
39
- getParameters() {
40
- return {
41
- mapSize: 256,
42
- zoomMin: this.options.minZoom ?? 0,
43
- zoomMax: this.options.maxZoom ?? 24,
44
- zoomScale: 10
45
- };
46
- }
47
- getMap() {
48
- return this.map;
49
- }
50
- getContainer() {
51
- return this.map.getDiv();
52
- }
53
- getZoom() {
54
- return this.map.getZoom() ?? NaN;
55
- }
56
- getBounds() {
57
- const t = this.map.getBounds();
58
- if (t == null) return { sw: { lat: NaN, lng: NaN }, ne: { lat: NaN, lng: NaN } };
59
- const e = t.getSouthWest(), s = t.getNorthEast();
60
- return { sw: { lat: e.lat(), lng: e.lng() }, ne: { lat: s.lat(), lng: s.lng() } };
61
- }
62
- panBy(t, e) {
63
- this.map.panBy(t, e);
64
- }
65
- createMarker(t, e, s, i) {
66
- const n = new this.MapMarkerClass({ position: { lat: e, lng: s }, content: t, zIndex: i });
67
- return {
68
- instance: n,
69
- inserted: () => n.map != null && n.map == this.map,
70
- insert: () => n.map = this.map,
71
- remove: () => n.map = void 0,
72
- update: (o) => n.zIndex = o
73
- };
74
- }
75
- }
76
- const g = [
77
- {
78
- elementType: "labels.icon",
79
- stylers: [
80
- {
81
- visibility: "off"
82
- }
83
- ]
84
- },
85
- {
86
- stylers: [
87
- {
88
- saturation: -100
89
- },
90
- {
91
- lightness: -10
92
- }
93
- ]
94
- },
95
- {
96
- featureType: "landscape",
97
- stylers: [
98
- {
99
- lightness: 30
100
- }
101
- ]
102
- },
103
- {
104
- featureType: "road",
105
- elementType: "geometry",
106
- stylers: [
107
- {
108
- saturation: -100
109
- }
110
- ]
111
- }
112
- ], b = [
113
- {
114
- elementType: "labels.icon",
115
- stylers: [
116
- {
117
- visibility: "off"
118
- }
119
- ]
120
- },
121
- {
122
- stylers: [
123
- {
124
- saturation: -100
125
- }
126
- ]
127
- },
128
- {
129
- elementType: "geometry",
130
- stylers: [
131
- {
132
- lightness: -45
133
- }
134
- ]
135
- },
136
- {
137
- elementType: "labels.text.fill",
138
- stylers: [
139
- {
140
- lightness: -100
141
- }
142
- ]
143
- },
144
- {
145
- elementType: "labels.text.stroke",
146
- stylers: [
147
- {
148
- lightness: -15
149
- }
150
- ]
151
- },
152
- {
153
- featureType: "water",
154
- elementType: "geometry",
155
- stylers: [
156
- {
157
- lightness: -50
158
- }
159
- ]
160
- }
161
- ];
162
- export {
163
- b as GoogleMapDarkStyle,
164
- g as GoogleMapLightStyle,
165
- h as GoogleMapsProvider
166
- };
package/dist/index.css DELETED
@@ -1 +0,0 @@
1
- .pin.svelte-zz3jrb{position:absolute;background-color:var(--arenarium-maps-pin-border, white);padding:2px;box-sizing:border-box;box-shadow:var(--arenarium-maps-pin-shadow, 0px 2px 2px rgba(0, 0, 0, .5));transform-origin:0% 0%;transform-style:preserve-3d;transform:translate(-50%,-50%);backface-visibility:hidden;will-change:scale}.pin.svelte-zz3jrb .body:where(.svelte-zz3jrb){background-color:var(--arenarium-maps-pin-background, darkgreen);overflow:hidden;will-change:opacity}.pin.svelte-zz3jrb{scale:0;filter:brightness(0)}.pin.svelte-zz3jrb{display:none;content-visibility:hidden}.pin.displayed.svelte-zz3jrb{display:initial;content-visibility:initial}.anchor.svelte-11extwn{display:block;position:absolute;width:0px;height:0px;filter:drop-shadow(var(--arenarium-maps-tooltip-shadow, 0px 2px 2px rgba(0, 0, 0, .5)));transition:filter ease-in-out 125ms}.anchor.svelte-11extwn .bubble:where(.svelte-11extwn){position:absolute;left:0;top:0}.anchor.svelte-11extwn .bubble:where(.svelte-11extwn) .body:where(.svelte-11extwn){position:relative;background-color:var(--arenarium-maps-tooltip-background, white);cursor:pointer}.anchor.svelte-11extwn .pointer:where(.svelte-11extwn){position:absolute;left:0;top:0;background-color:var(--arenarium-maps-tooltip-background, white);transform-origin:0% 0%}.anchor.svelte-11extwn:hover{transform-style:preserve-3d;backface-visibility:hidden;filter:drop-shadow(var(--arenarium-maps-tooltip-shadow-hover, 0px 2px 4px rgba(0, 0, 0, .5)))}.anchor.svelte-11extwn:hover .bubble:where(.svelte-11extwn){transform-style:preserve-3d;backface-visibility:hidden}.anchor.svelte-11extwn{opacity:0;will-change:opacity}.anchor.svelte-11extwn .bubble:where(.svelte-11extwn){scale:0;transform-origin:0% 0%;will-change:transform,scale}.anchor.svelte-11extwn .pointer:where(.svelte-11extwn){scale:0;transform-origin:0% 0%;will-change:transform,scale}.anchor.svelte-11extwn{display:none;content-visibility:hidden}.anchor.displayed.svelte-11extwn{display:initial;content-visibility:initial}