@arenarium/maps 1.0.130 → 1.0.131
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.cjs.js +1 -0
- package/dist/google.d.ts +195 -0
- package/dist/google.es.js +136 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +9 -103
- package/dist/index.js +2 -2
- package/dist/main.cjs.js +2 -2
- package/dist/main.d.ts +5 -80
- package/dist/main.es.js +258 -243
- package/dist/maplibre.cjs.js +1 -1
- package/dist/maplibre.d.ts +8 -8
- package/dist/maplibre.es.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +11 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var p=Object.defineProperty;var m=(a,e,t)=>e in a?p(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var s=(a,e,t)=>m(a,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=class i{constructor(e,t,l,n){s(this,"parameters",i.Parameters);s(this,"MapClass");s(this,"MapMarkerClass");s(this,"map");this.MapClass=e,this.MapMarkerClass=t,this.map=new this.MapClass(l,{...n})}getMap(){return this.map}getContainer(){return this.map.getDiv()}getZoom(){return this.map.getZoom()??NaN}getWidth(){return this.map.getDiv().clientWidth}getHeight(){return this.map.getDiv().clientHeight}createMarker(e,t,l,n){const r=new this.MapMarkerClass({position:{lat:t,lng:l},content:e,zIndex:n});return{instance:r,inserted:()=>r.map!=null&&r.map==this.map,insert:()=>r.map=this.map,remove:()=>r.map=void 0}}};s(i,"Parameters",{mapSize:256,zoomMin:0,zoomMax:22,zoomScale:10});let o=i;const y=[{elementType:"labels.icon",stylers:[{visibility:"off"}]},{stylers:[{saturation:-100},{lightness:-10}]},{featureType:"landscape",stylers:[{lightness:30}]},{featureType:"road",elementType:"geometry",stylers:[{saturation:-100}]}],g=[{elementType:"labels.icon",stylers:[{visibility:"off"}]},{stylers:[{saturation:-100}]},{elementType:"geometry",stylers:[{lightness:-45}]},{elementType:"labels.text.fill",stylers:[{lightness:-100}]},{elementType:"labels.text.stroke",stylers:[{lightness:-15}]},{featureType:"water",elementType:"geometry",stylers:[{lightness:-50}]}];exports.GoogleMapDarkStyle=g;exports.GoogleMapLightStyle=y;exports.GoogleMapsProvider=o;
|
package/dist/google.d.ts
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export declare const GoogleMapDarkStyle: ({
|
|
4
|
+
elementType: string;
|
|
5
|
+
stylers: {
|
|
6
|
+
visibility: string;
|
|
7
|
+
}[];
|
|
8
|
+
featureType?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
stylers: {
|
|
11
|
+
saturation: number;
|
|
12
|
+
}[];
|
|
13
|
+
elementType?: undefined;
|
|
14
|
+
featureType?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
elementType: string;
|
|
17
|
+
stylers: {
|
|
18
|
+
lightness: number;
|
|
19
|
+
}[];
|
|
20
|
+
featureType?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
featureType: string;
|
|
23
|
+
elementType: string;
|
|
24
|
+
stylers: {
|
|
25
|
+
lightness: number;
|
|
26
|
+
}[];
|
|
27
|
+
})[];
|
|
28
|
+
|
|
29
|
+
export declare const GoogleMapLightStyle: ({
|
|
30
|
+
elementType: string;
|
|
31
|
+
stylers: {
|
|
32
|
+
visibility: string;
|
|
33
|
+
}[];
|
|
34
|
+
featureType?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
stylers: ({
|
|
37
|
+
saturation: number;
|
|
38
|
+
lightness?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
lightness: number;
|
|
41
|
+
saturation?: undefined;
|
|
42
|
+
})[];
|
|
43
|
+
elementType?: undefined;
|
|
44
|
+
featureType?: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
featureType: string;
|
|
47
|
+
stylers: {
|
|
48
|
+
lightness: number;
|
|
49
|
+
}[];
|
|
50
|
+
elementType?: undefined;
|
|
51
|
+
} | {
|
|
52
|
+
featureType: string;
|
|
53
|
+
elementType: string;
|
|
54
|
+
stylers: {
|
|
55
|
+
saturation: number;
|
|
56
|
+
}[];
|
|
57
|
+
})[];
|
|
58
|
+
|
|
59
|
+
declare interface GoogleMapsClass {
|
|
60
|
+
new (container: HTMLElement, options: google.maps.MapOptions): google.maps.Map;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare interface GoogleMapsMarkerClass {
|
|
64
|
+
new (options: google.maps.marker.AdvancedMarkerElementOptions): google.maps.marker.AdvancedMarkerElement;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export declare class GoogleMapsProvider implements MapProvider {
|
|
68
|
+
static Parameters: MapProviderParameters;
|
|
69
|
+
parameters: MapProviderParameters;
|
|
70
|
+
private MapClass;
|
|
71
|
+
private MapMarkerClass;
|
|
72
|
+
private map;
|
|
73
|
+
constructor(mapClass: GoogleMapsClass, mapMarkerClass: GoogleMapsMarkerClass, container: HTMLElement, options: google.maps.MapOptions);
|
|
74
|
+
getMap(): google.maps.Map;
|
|
75
|
+
getContainer(): HTMLElement;
|
|
76
|
+
getZoom(): number;
|
|
77
|
+
getWidth(): number;
|
|
78
|
+
getHeight(): number;
|
|
79
|
+
createMarker(element: HTMLElement, lat: number, lng: number, zIndex: number): MapProviderMarker;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare type MapProvider = z.infer<typeof mapProviderSchema>;
|
|
83
|
+
|
|
84
|
+
declare type MapProviderMarker = z.infer<typeof mapProviderMarkerSchema>;
|
|
85
|
+
|
|
86
|
+
declare const mapProviderMarkerSchema: z.ZodObject<{
|
|
87
|
+
instance: z.ZodAny;
|
|
88
|
+
inserted: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodBoolean>;
|
|
89
|
+
insert: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodVoid>;
|
|
90
|
+
remove: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodVoid>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
inserted: (...args: unknown[]) => boolean;
|
|
93
|
+
insert: (...args: unknown[]) => void;
|
|
94
|
+
remove: (...args: unknown[]) => void;
|
|
95
|
+
instance?: any;
|
|
96
|
+
}, {
|
|
97
|
+
inserted: (...args: unknown[]) => boolean;
|
|
98
|
+
insert: (...args: unknown[]) => void;
|
|
99
|
+
remove: (...args: unknown[]) => void;
|
|
100
|
+
instance?: any;
|
|
101
|
+
}>;
|
|
102
|
+
|
|
103
|
+
declare type MapProviderParameters = z.infer<typeof mapProviderParametersSchema>;
|
|
104
|
+
|
|
105
|
+
declare const mapProviderParametersSchema: z.ZodObject<{
|
|
106
|
+
mapSize: z.ZodNumber;
|
|
107
|
+
zoomMin: z.ZodNumber;
|
|
108
|
+
zoomMax: z.ZodNumber;
|
|
109
|
+
zoomScale: z.ZodNumber;
|
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
mapSize: number;
|
|
112
|
+
zoomMin: number;
|
|
113
|
+
zoomMax: number;
|
|
114
|
+
zoomScale: number;
|
|
115
|
+
}, {
|
|
116
|
+
mapSize: number;
|
|
117
|
+
zoomMin: number;
|
|
118
|
+
zoomMax: number;
|
|
119
|
+
zoomScale: number;
|
|
120
|
+
}>;
|
|
121
|
+
|
|
122
|
+
declare const mapProviderSchema: z.ZodObject<{
|
|
123
|
+
parameters: z.ZodObject<{
|
|
124
|
+
mapSize: z.ZodNumber;
|
|
125
|
+
zoomMin: z.ZodNumber;
|
|
126
|
+
zoomMax: z.ZodNumber;
|
|
127
|
+
zoomScale: z.ZodNumber;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
mapSize: number;
|
|
130
|
+
zoomMin: number;
|
|
131
|
+
zoomMax: number;
|
|
132
|
+
zoomScale: number;
|
|
133
|
+
}, {
|
|
134
|
+
mapSize: number;
|
|
135
|
+
zoomMin: number;
|
|
136
|
+
zoomMax: number;
|
|
137
|
+
zoomScale: number;
|
|
138
|
+
}>;
|
|
139
|
+
getContainer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodEffects<z.ZodAny, HTMLElement, any>>;
|
|
140
|
+
getZoom: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodNumber>;
|
|
141
|
+
getWidth: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodNumber>;
|
|
142
|
+
getHeight: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodNumber>;
|
|
143
|
+
createMarker: z.ZodFunction<z.ZodTuple<[z.ZodEffects<z.ZodAny, HTMLElement, any>, z.ZodNumber, z.ZodNumber, z.ZodNumber], z.ZodUnknown>, z.ZodObject<{
|
|
144
|
+
instance: z.ZodAny;
|
|
145
|
+
inserted: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodBoolean>;
|
|
146
|
+
insert: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodVoid>;
|
|
147
|
+
remove: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodVoid>;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
inserted: (...args: unknown[]) => boolean;
|
|
150
|
+
insert: (...args: unknown[]) => void;
|
|
151
|
+
remove: (...args: unknown[]) => void;
|
|
152
|
+
instance?: any;
|
|
153
|
+
}, {
|
|
154
|
+
inserted: (...args: unknown[]) => boolean;
|
|
155
|
+
insert: (...args: unknown[]) => void;
|
|
156
|
+
remove: (...args: unknown[]) => void;
|
|
157
|
+
instance?: any;
|
|
158
|
+
}>>;
|
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
parameters: {
|
|
161
|
+
mapSize: number;
|
|
162
|
+
zoomMin: number;
|
|
163
|
+
zoomMax: number;
|
|
164
|
+
zoomScale: number;
|
|
165
|
+
};
|
|
166
|
+
getContainer: (...args: unknown[]) => HTMLElement;
|
|
167
|
+
getZoom: (...args: unknown[]) => number;
|
|
168
|
+
getWidth: (...args: unknown[]) => number;
|
|
169
|
+
getHeight: (...args: unknown[]) => number;
|
|
170
|
+
createMarker: (args_0: any, args_1: number, args_2: number, args_3: number, ...args: unknown[]) => {
|
|
171
|
+
inserted: (...args: unknown[]) => boolean;
|
|
172
|
+
insert: (...args: unknown[]) => void;
|
|
173
|
+
remove: (...args: unknown[]) => void;
|
|
174
|
+
instance?: any;
|
|
175
|
+
};
|
|
176
|
+
}, {
|
|
177
|
+
parameters: {
|
|
178
|
+
mapSize: number;
|
|
179
|
+
zoomMin: number;
|
|
180
|
+
zoomMax: number;
|
|
181
|
+
zoomScale: number;
|
|
182
|
+
};
|
|
183
|
+
getContainer: (...args: unknown[]) => any;
|
|
184
|
+
getZoom: (...args: unknown[]) => number;
|
|
185
|
+
getWidth: (...args: unknown[]) => number;
|
|
186
|
+
getHeight: (...args: unknown[]) => number;
|
|
187
|
+
createMarker: (args_0: HTMLElement, args_1: number, args_2: number, args_3: number, ...args: unknown[]) => {
|
|
188
|
+
inserted: (...args: unknown[]) => boolean;
|
|
189
|
+
insert: (...args: unknown[]) => void;
|
|
190
|
+
remove: (...args: unknown[]) => void;
|
|
191
|
+
instance?: any;
|
|
192
|
+
};
|
|
193
|
+
}>;
|
|
194
|
+
|
|
195
|
+
export { }
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var o = (a, e, t) => e in a ? m(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
|
+
var s = (a, e, t) => o(a, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
const i = class i {
|
|
5
|
+
constructor(e, t, l, n) {
|
|
6
|
+
s(this, "parameters", i.Parameters);
|
|
7
|
+
s(this, "MapClass");
|
|
8
|
+
s(this, "MapMarkerClass");
|
|
9
|
+
s(this, "map");
|
|
10
|
+
this.MapClass = e, this.MapMarkerClass = t, this.map = new this.MapClass(l, {
|
|
11
|
+
...n
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
getMap() {
|
|
15
|
+
return this.map;
|
|
16
|
+
}
|
|
17
|
+
getContainer() {
|
|
18
|
+
return this.map.getDiv();
|
|
19
|
+
}
|
|
20
|
+
getZoom() {
|
|
21
|
+
return this.map.getZoom() ?? NaN;
|
|
22
|
+
}
|
|
23
|
+
getWidth() {
|
|
24
|
+
return this.map.getDiv().clientWidth;
|
|
25
|
+
}
|
|
26
|
+
getHeight() {
|
|
27
|
+
return this.map.getDiv().clientHeight;
|
|
28
|
+
}
|
|
29
|
+
createMarker(e, t, l, n) {
|
|
30
|
+
const r = new this.MapMarkerClass({ position: { lat: t, lng: l }, content: e, zIndex: n });
|
|
31
|
+
return {
|
|
32
|
+
instance: r,
|
|
33
|
+
inserted: () => r.map != null && r.map == this.map,
|
|
34
|
+
insert: () => r.map = this.map,
|
|
35
|
+
remove: () => r.map = void 0
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
s(i, "Parameters", {
|
|
40
|
+
mapSize: 256,
|
|
41
|
+
zoomMin: 0,
|
|
42
|
+
zoomMax: 22,
|
|
43
|
+
zoomScale: 10
|
|
44
|
+
});
|
|
45
|
+
let p = i;
|
|
46
|
+
const h = [
|
|
47
|
+
{
|
|
48
|
+
elementType: "labels.icon",
|
|
49
|
+
stylers: [
|
|
50
|
+
{
|
|
51
|
+
visibility: "off"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
stylers: [
|
|
57
|
+
{
|
|
58
|
+
saturation: -100
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
lightness: -10
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
featureType: "landscape",
|
|
67
|
+
stylers: [
|
|
68
|
+
{
|
|
69
|
+
lightness: 30
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
featureType: "road",
|
|
75
|
+
elementType: "geometry",
|
|
76
|
+
stylers: [
|
|
77
|
+
{
|
|
78
|
+
saturation: -100
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
], g = [
|
|
83
|
+
{
|
|
84
|
+
elementType: "labels.icon",
|
|
85
|
+
stylers: [
|
|
86
|
+
{
|
|
87
|
+
visibility: "off"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
stylers: [
|
|
93
|
+
{
|
|
94
|
+
saturation: -100
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
elementType: "geometry",
|
|
100
|
+
stylers: [
|
|
101
|
+
{
|
|
102
|
+
lightness: -45
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
elementType: "labels.text.fill",
|
|
108
|
+
stylers: [
|
|
109
|
+
{
|
|
110
|
+
lightness: -100
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
elementType: "labels.text.stroke",
|
|
116
|
+
stylers: [
|
|
117
|
+
{
|
|
118
|
+
lightness: -15
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
featureType: "water",
|
|
124
|
+
elementType: "geometry",
|
|
125
|
+
stylers: [
|
|
126
|
+
{
|
|
127
|
+
lightness: -50
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
];
|
|
132
|
+
export {
|
|
133
|
+
g as GoogleMapDarkStyle,
|
|
134
|
+
h as GoogleMapLightStyle,
|
|
135
|
+
p as GoogleMapsProvider
|
|
136
|
+
};
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.anchor.svelte-
|
|
1
|
+
.anchor.svelte-1d2w496{display:block;position:absolute;width:0px;height:0px;filter:drop-shadow(0px 2px 2px rgba(0,0,0,.5))}.anchor.svelte-1d2w496 .marker:where(.svelte-1d2w496){position:absolute;left:0;top:0}.anchor.svelte-1d2w496 .marker:where(.svelte-1d2w496) .body:where(.svelte-1d2w496){position:relative;border-radius:12px;background-color:var(--map-style-background);overflow:hidden;cursor:pointer}.anchor.svelte-1d2w496 .pin:where(.svelte-1d2w496){position:absolute;left:0;top:0;border-radius:2px;background-color:var(--map-style-background);transform-origin:0% 0%}.anchor.svelte-1d2w496:hover{transform-style:preserve-3d;backface-visibility:hidden}.anchor.svelte-1d2w496:hover .marker:where(.svelte-1d2w496){transform-style:preserve-3d;backface-visibility:hidden}.anchor.svelte-1d2w496{opacity:0;will-change:opacity}.anchor.svelte-1d2w496 .marker:where(.svelte-1d2w496){scale:0;transform-origin:0% 0%;will-change:transform,scale}.anchor.svelte-1d2w496 .pin:where(.svelte-1d2w496){scale:0;transform-origin:0% 0%;will-change:transform,scale}.anchor.svelte-1d2w496{display:none;content-visibility:hidden}.anchor.displayed.svelte-1d2w496{display:initial;content-visibility:initial}.circle.svelte-piqgmq{max-width:64px;max-height:64px;position:absolute;background-color:var(--map-style-background);padding:2px;border-radius:64px;box-sizing:border-box;box-shadow:0 2px 2px #00000080;transform-origin:0% 0%;transform-style:preserve-3d;transform:translate(-50%,-50%);backface-visibility:hidden;will-change:scale}.circle.svelte-piqgmq .body:where(.svelte-piqgmq){min-width:12px;min-height:12px;border-radius:64px;background-color:var(--map-style-primary);overflow:hidden;will-change:opacity}.circle.svelte-piqgmq{scale:0;filter:brightness(0)}.circle.svelte-piqgmq{display:none;content-visibility:hidden}.circle.displayed.svelte-piqgmq{display:initial;content-visibility:initial}
|
package/dist/index.d.ts
CHANGED
|
@@ -118,9 +118,10 @@ declare const mapProviderSchema: z.ZodObject<{
|
|
|
118
118
|
getHeight: z.ZodFunction<z.ZodTuple<[
|
|
119
119
|
], z.ZodUnknown>, z.ZodNumber>;
|
|
120
120
|
createMarker: z.ZodFunction<z.ZodTuple<[
|
|
121
|
+
z.ZodEffects<z.ZodAny, HTMLElement, any>,
|
|
121
122
|
z.ZodNumber,
|
|
122
123
|
z.ZodNumber,
|
|
123
|
-
z.
|
|
124
|
+
z.ZodNumber
|
|
124
125
|
], z.ZodUnknown>, z.ZodObject<{
|
|
125
126
|
instance: z.ZodAny;
|
|
126
127
|
inserted: z.ZodFunction<z.ZodTuple<[
|
|
@@ -151,7 +152,7 @@ declare const mapProviderSchema: z.ZodObject<{
|
|
|
151
152
|
getZoom: (...args: unknown[]) => number;
|
|
152
153
|
getWidth: (...args: unknown[]) => number;
|
|
153
154
|
getHeight: (...args: unknown[]) => number;
|
|
154
|
-
createMarker: (args_0:
|
|
155
|
+
createMarker: (args_0: any, args_1: number, args_2: number, args_3: number, ...args: unknown[]) => {
|
|
155
156
|
inserted: (...args: unknown[]) => boolean;
|
|
156
157
|
insert: (...args: unknown[]) => void;
|
|
157
158
|
remove: (...args: unknown[]) => void;
|
|
@@ -168,7 +169,7 @@ declare const mapProviderSchema: z.ZodObject<{
|
|
|
168
169
|
getZoom: (...args: unknown[]) => number;
|
|
169
170
|
getWidth: (...args: unknown[]) => number;
|
|
170
171
|
getHeight: (...args: unknown[]) => number;
|
|
171
|
-
createMarker: (args_0:
|
|
172
|
+
createMarker: (args_0: HTMLElement, args_1: number, args_2: number, args_3: number, ...args: unknown[]) => {
|
|
172
173
|
inserted: (...args: unknown[]) => boolean;
|
|
173
174
|
insert: (...args: unknown[]) => void;
|
|
174
175
|
remove: (...args: unknown[]) => void;
|
|
@@ -219,13 +220,6 @@ declare const mapPopupDataSchema: z.ZodEffects<z.ZodObject<{
|
|
|
219
220
|
height: number;
|
|
220
221
|
padding: number;
|
|
221
222
|
}>;
|
|
222
|
-
declare const mapPopupStateSchema: z.ZodTuple<[
|
|
223
|
-
z.ZodNumber,
|
|
224
|
-
z.ZodArray<z.ZodTuple<[
|
|
225
|
-
z.ZodNumber,
|
|
226
|
-
z.ZodNumber
|
|
227
|
-
], null>, "many">
|
|
228
|
-
], null>;
|
|
229
223
|
declare const mapPopupContentCallbackSchema: z.ZodFunction<z.ZodTuple<[
|
|
230
224
|
z.ZodString
|
|
231
225
|
], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>;
|
|
@@ -271,13 +265,6 @@ declare const mapPopupSchema: z.ZodObject<{
|
|
|
271
265
|
height: number;
|
|
272
266
|
padding: number;
|
|
273
267
|
}>;
|
|
274
|
-
state: z.ZodTuple<[
|
|
275
|
-
z.ZodNumber,
|
|
276
|
-
z.ZodArray<z.ZodTuple<[
|
|
277
|
-
z.ZodNumber,
|
|
278
|
-
z.ZodNumber
|
|
279
|
-
], null>, "many">
|
|
280
|
-
], null>;
|
|
281
268
|
callbacks: z.ZodObject<{
|
|
282
269
|
body: z.ZodFunction<z.ZodTuple<[
|
|
283
270
|
z.ZodString
|
|
@@ -302,13 +289,6 @@ declare const mapPopupSchema: z.ZodObject<{
|
|
|
302
289
|
height: number;
|
|
303
290
|
padding: number;
|
|
304
291
|
};
|
|
305
|
-
state: [
|
|
306
|
-
number,
|
|
307
|
-
[
|
|
308
|
-
number,
|
|
309
|
-
number
|
|
310
|
-
][]
|
|
311
|
-
];
|
|
312
292
|
callbacks: {
|
|
313
293
|
body: (args_0: string, ...args: unknown[]) => Promise<any>;
|
|
314
294
|
pin?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
|
|
@@ -323,90 +303,16 @@ declare const mapPopupSchema: z.ZodObject<{
|
|
|
323
303
|
height: number;
|
|
324
304
|
padding: number;
|
|
325
305
|
};
|
|
326
|
-
state: [
|
|
327
|
-
number,
|
|
328
|
-
[
|
|
329
|
-
number,
|
|
330
|
-
number
|
|
331
|
-
][]
|
|
332
|
-
];
|
|
333
306
|
callbacks: {
|
|
334
307
|
body: (args_0: string, ...args: unknown[]) => Promise<any>;
|
|
335
308
|
pin?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
|
|
336
309
|
};
|
|
337
310
|
}>;
|
|
338
|
-
declare const mapPopupStatesRequestSchema: z.ZodObject<{
|
|
339
|
-
key: z.ZodString;
|
|
340
|
-
data: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
341
|
-
id: z.ZodString;
|
|
342
|
-
rank: z.ZodNumber;
|
|
343
|
-
lat: z.ZodNumber;
|
|
344
|
-
lng: z.ZodNumber;
|
|
345
|
-
width: z.ZodNumber;
|
|
346
|
-
height: z.ZodNumber;
|
|
347
|
-
padding: z.ZodNumber;
|
|
348
|
-
}, "strip", z.ZodTypeAny, {
|
|
349
|
-
id: string;
|
|
350
|
-
rank: number;
|
|
351
|
-
lat: number;
|
|
352
|
-
lng: number;
|
|
353
|
-
width: number;
|
|
354
|
-
height: number;
|
|
355
|
-
padding: number;
|
|
356
|
-
}, {
|
|
357
|
-
id: string;
|
|
358
|
-
rank: number;
|
|
359
|
-
lat: number;
|
|
360
|
-
lng: number;
|
|
361
|
-
width: number;
|
|
362
|
-
height: number;
|
|
363
|
-
padding: number;
|
|
364
|
-
}>, {
|
|
365
|
-
id: string;
|
|
366
|
-
rank: number;
|
|
367
|
-
lat: number;
|
|
368
|
-
lng: number;
|
|
369
|
-
width: number;
|
|
370
|
-
height: number;
|
|
371
|
-
padding: number;
|
|
372
|
-
}, {
|
|
373
|
-
id: string;
|
|
374
|
-
rank: number;
|
|
375
|
-
lat: number;
|
|
376
|
-
lng: number;
|
|
377
|
-
width: number;
|
|
378
|
-
height: number;
|
|
379
|
-
padding: number;
|
|
380
|
-
}>, "many">;
|
|
381
|
-
}, "strip", z.ZodTypeAny, {
|
|
382
|
-
data: {
|
|
383
|
-
id: string;
|
|
384
|
-
rank: number;
|
|
385
|
-
lat: number;
|
|
386
|
-
lng: number;
|
|
387
|
-
width: number;
|
|
388
|
-
height: number;
|
|
389
|
-
padding: number;
|
|
390
|
-
}[];
|
|
391
|
-
key: string;
|
|
392
|
-
}, {
|
|
393
|
-
data: {
|
|
394
|
-
id: string;
|
|
395
|
-
rank: number;
|
|
396
|
-
lat: number;
|
|
397
|
-
lng: number;
|
|
398
|
-
width: number;
|
|
399
|
-
height: number;
|
|
400
|
-
padding: number;
|
|
401
|
-
}[];
|
|
402
|
-
key: string;
|
|
403
|
-
}>;
|
|
404
311
|
export type MapPopupData = z.infer<typeof mapPopupDataSchema>;
|
|
405
|
-
export type MapPopupState = z.infer<typeof mapPopupStateSchema>;
|
|
406
312
|
export type MapPopupContentCallback = z.infer<typeof mapPopupContentCallbackSchema>;
|
|
407
313
|
export type MapPopup = z.infer<typeof mapPopupSchema>;
|
|
408
|
-
export type MapPopupStatesRequest = z.infer<typeof mapPopupStatesRequestSchema>;
|
|
409
314
|
export declare class MapManager {
|
|
315
|
+
private key;
|
|
410
316
|
private provider;
|
|
411
317
|
private popupDataArray;
|
|
412
318
|
private popupDataMap;
|
|
@@ -416,7 +322,7 @@ export declare class MapManager {
|
|
|
416
322
|
private configurationPinFade;
|
|
417
323
|
private configurationPinMaxCount;
|
|
418
324
|
private configurationPinMaxZoomDelta;
|
|
419
|
-
constructor(mapProvider: MapProvider, mapConfiguration?: MapConfiguration);
|
|
325
|
+
constructor(apiKey: string, mapProvider: MapProvider, mapConfiguration?: MapConfiguration);
|
|
420
326
|
set configuration(configuration: MapConfiguration | undefined);
|
|
421
327
|
setColors(primary: string, background: string, text: string): void;
|
|
422
328
|
updatePopups(popups: MapPopup[]): Promise<void>;
|
|
@@ -449,10 +355,10 @@ export declare class MapLibreProvider implements MapProvider {
|
|
|
449
355
|
getZoom(): number;
|
|
450
356
|
getWidth(): number;
|
|
451
357
|
getHeight(): number;
|
|
452
|
-
createMarker(
|
|
358
|
+
createMarker(element: HTMLElement, lat: number, lng: number): MapProviderMarker;
|
|
453
359
|
}
|
|
454
|
-
export declare const
|
|
455
|
-
export declare const
|
|
360
|
+
export declare const MapLibreDarkStyle: maplibregl.StyleSpecification;
|
|
361
|
+
export declare const MapLibreStyleLight: maplibregl.StyleSpecification;
|
|
456
362
|
|
|
457
363
|
export as namespace arenarium;
|
|
458
364
|
|