@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Usage
2
2
 
3
- https://arenarium.dev
3
+ https://arenarium.dev/docs
4
4
 
5
5
  ## License
6
6
 
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
- api: z.ZodOptional<z.ZodString>;
38
+ url: z.ZodString;
39
+ key: z.ZodString;
39
40
  }, "strip", z.ZodTypeAny, {
40
- api?: string | undefined;
41
+ url: string;
42
+ key: string;
41
43
  }, {
42
- api?: string | undefined;
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
- api?: string | undefined;
64
- } | undefined;
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
- api?: string | undefined;
81
- } | undefined;
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 apiStatesUrl;
510
- private apiLogUrl;
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(apiKey: string, mapProvider: MapProvider, mapConfiguration?: MapConfiguration);
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;