@arenarium/maps 1.0.119 → 1.0.121
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/index.d.ts +8 -9
- package/dist/index.js +7 -7
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { MapOptions } from 'maplibre-gl';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
6
6
|
declare const mapConfigurationSchema: z.ZodObject<{
|
|
@@ -226,14 +226,14 @@ export type MapPopupContentCallback = z.infer<typeof mapPopupContentCallbackSche
|
|
|
226
226
|
export type MapPopup = z.infer<typeof mapPopupSchema>;
|
|
227
227
|
export type MapPopupStatesRequest = z.infer<typeof mapPopupStatesRequestSchema>;
|
|
228
228
|
export type LibreMarkerCallback = (markerOptions: maplibregl.MarkerOptions) => maplibregl.Marker;
|
|
229
|
-
export declare class
|
|
229
|
+
export declare class MapManager {
|
|
230
230
|
private mapMarkerCallback;
|
|
231
231
|
private map;
|
|
232
232
|
private mapConfiguration;
|
|
233
233
|
private mapPopupDataArray;
|
|
234
234
|
private mapPopupDataMap;
|
|
235
235
|
private mapPopupDataUpdating;
|
|
236
|
-
constructor(map: Map
|
|
236
|
+
constructor(map: maplibregl.Map, mapMarkerCallback: LibreMarkerCallback);
|
|
237
237
|
setConfiguration(configuration: MapConfiguration | null): void;
|
|
238
238
|
setColors(primary: string, background: string, text: string): void;
|
|
239
239
|
updatePopups(popups: MapPopup[]): Promise<void>;
|
|
@@ -251,12 +251,11 @@ export declare class MapPopupManager {
|
|
|
251
251
|
}
|
|
252
252
|
export declare const MapDarkStyle: maplibregl.StyleSpecification;
|
|
253
253
|
export declare const MapStyleLight: maplibregl.StyleSpecification;
|
|
254
|
-
export
|
|
255
|
-
|
|
256
|
-
manager:
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
export declare function unmountMap(map: ReturnType<typeof mountMap>): void;
|
|
254
|
+
export declare function mountMap(options: MapOptions): {
|
|
255
|
+
maplibregl: maplibregl.Map;
|
|
256
|
+
manager: MapManager;
|
|
257
|
+
unmount: () => Promise<void>;
|
|
258
|
+
};
|
|
260
259
|
|
|
261
260
|
export as namespace arenarium;
|
|
262
261
|
|