@arenarium/maps 1.0.164 → 1.0.167
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/README.md +1 -1
- package/dist/index.d.ts +13 -23
- package/dist/index.js +2 -2
- package/dist/main.cjs.js +2 -2
- package/dist/main.d.ts +13 -23
- package/dist/main.es.js +3019 -2339
- package/package.json +8 -4
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -35,18 +35,14 @@ declare const mapConfigurationSchema: z.ZodObject<{
|
|
|
35
35
|
} | undefined;
|
|
36
36
|
}>>;
|
|
37
37
|
states: z.ZodOptional<z.ZodObject<{
|
|
38
|
-
|
|
38
|
+
url: z.ZodString;
|
|
39
|
+
key: z.ZodString;
|
|
39
40
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
|
|
41
|
+
url: string;
|
|
42
|
+
key: string;
|
|
41
43
|
}, {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
log: z.ZodOptional<z.ZodObject<{
|
|
45
|
-
api: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
api?: string | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
api?: string | undefined;
|
|
44
|
+
url: string;
|
|
45
|
+
key: string;
|
|
50
46
|
}>>;
|
|
51
47
|
}, "strip", z.ZodTypeAny, {
|
|
52
48
|
pin?: {
|
|
@@ -60,10 +56,8 @@ declare const mapConfigurationSchema: z.ZodObject<{
|
|
|
60
56
|
} | undefined;
|
|
61
57
|
} | undefined;
|
|
62
58
|
states?: {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
log?: {
|
|
66
|
-
api?: string | undefined;
|
|
59
|
+
url: string;
|
|
60
|
+
key: string;
|
|
67
61
|
} | undefined;
|
|
68
62
|
}, {
|
|
69
63
|
pin?: {
|
|
@@ -77,10 +71,8 @@ declare const mapConfigurationSchema: z.ZodObject<{
|
|
|
77
71
|
} | undefined;
|
|
78
72
|
} | undefined;
|
|
79
73
|
states?: {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
log?: {
|
|
83
|
-
api?: string | undefined;
|
|
74
|
+
url: string;
|
|
75
|
+
key: string;
|
|
84
76
|
} | undefined;
|
|
85
77
|
}>;
|
|
86
78
|
export type MapConfiguration = z.infer<typeof mapConfigurationSchema>;
|
|
@@ -504,17 +496,16 @@ declare const mapMarkerSchema: z.ZodObject<{
|
|
|
504
496
|
}>;
|
|
505
497
|
export type MapMarker = z.infer<typeof mapMarkerSchema>;
|
|
506
498
|
export declare class MapManager {
|
|
507
|
-
private key;
|
|
508
499
|
private provider;
|
|
509
|
-
private
|
|
510
|
-
private
|
|
500
|
+
private statesApiUrl;
|
|
501
|
+
private statesApiKey;
|
|
511
502
|
private markerDataArray;
|
|
512
503
|
private markerDataMap;
|
|
513
504
|
private markerDataUpdating;
|
|
514
505
|
private markerPinProcessor;
|
|
515
506
|
private markerTooltipProcessor;
|
|
516
507
|
private markerPopupProcessor;
|
|
517
|
-
constructor(
|
|
508
|
+
constructor(mapProvider: MapProvider, mapConfiguration?: MapConfiguration);
|
|
518
509
|
set configuration(configuration: MapConfiguration | undefined);
|
|
519
510
|
updateMarkers(markers: MapMarker[]): Promise<void>;
|
|
520
511
|
removeMarkers(): void;
|
|
@@ -524,7 +515,6 @@ export declare class MapManager {
|
|
|
524
515
|
private removeMarkerData;
|
|
525
516
|
private processMarkerDataCallback;
|
|
526
517
|
private processMarkerData;
|
|
527
|
-
private log;
|
|
528
518
|
}
|
|
529
519
|
export interface MaplibreMapClass {
|
|
530
520
|
new (options: maplibregl.MapOptions): maplibregl.Map;
|