@arenarium/maps 1.0.116 → 1.0.117
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 -2
- package/dist/index.js +750 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
+
import { Map as Map$1, MapOptions } from 'maplibre-gl';
|
|
3
4
|
import { z } from 'zod';
|
|
4
5
|
|
|
5
6
|
declare const mapConfigurationSchema: z.ZodObject<{
|
|
@@ -232,8 +233,7 @@ export declare class MapPopupManager {
|
|
|
232
233
|
private mapPopupDataArray;
|
|
233
234
|
private mapPopupDataMap;
|
|
234
235
|
private mapPopupDataUpdating;
|
|
235
|
-
constructor(map:
|
|
236
|
-
private setRestrictions;
|
|
236
|
+
constructor(map: Map$1, 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,6 +251,12 @@ export declare class MapPopupManager {
|
|
|
251
251
|
}
|
|
252
252
|
export declare const MapDarkStyle: maplibregl.StyleSpecification;
|
|
253
253
|
export declare const MapStyleLight: maplibregl.StyleSpecification;
|
|
254
|
+
export interface MapComponent {
|
|
255
|
+
maplibre: () => Map$1;
|
|
256
|
+
manager: () => MapPopupManager;
|
|
257
|
+
}
|
|
258
|
+
export declare function mountMap(container: string, options: MapOptions): MapComponent;
|
|
259
|
+
export declare function unmountMap(map: ReturnType<typeof mountMap>): void;
|
|
254
260
|
|
|
255
261
|
export as namespace arenarium;
|
|
256
262
|
|