@arenarium/maps 1.0.40 → 1.0.42
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 +3 -17
- package/dist/index.js +61 -61
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -258,20 +258,6 @@ declare namespace Types {
|
|
|
258
258
|
number
|
|
259
259
|
][];
|
|
260
260
|
}
|
|
261
|
-
export interface Block {
|
|
262
|
-
id: string;
|
|
263
|
-
sw: {
|
|
264
|
-
lat: number;
|
|
265
|
-
lng: number;
|
|
266
|
-
};
|
|
267
|
-
ne: {
|
|
268
|
-
lat: number;
|
|
269
|
-
lng: number;
|
|
270
|
-
};
|
|
271
|
-
zs: number;
|
|
272
|
-
ze: number;
|
|
273
|
-
markers: Marker[];
|
|
274
|
-
}
|
|
275
261
|
}
|
|
276
262
|
export declare namespace MapComponent {
|
|
277
263
|
interface Position {
|
|
@@ -289,7 +275,7 @@ export declare namespace MapComponent {
|
|
|
289
275
|
lng: number;
|
|
290
276
|
};
|
|
291
277
|
}
|
|
292
|
-
type PopupContentCallback = (ids: string
|
|
278
|
+
type PopupContentCallback = (ids: string) => Promise<string>;
|
|
293
279
|
type SetPopupsContentCallbackFunction = (callback: PopupContentCallback) => void;
|
|
294
280
|
type SetPopupsFunction = (popups: Types.Popup[]) => void;
|
|
295
281
|
}
|
|
@@ -306,8 +292,8 @@ export interface MapComponent {
|
|
|
306
292
|
zoomOut: () => void;
|
|
307
293
|
getStyle: () => MapStyle;
|
|
308
294
|
setStyle: (style: MapStyle) => void;
|
|
309
|
-
|
|
310
|
-
|
|
295
|
+
insertPopups: (popups: Types.Popup[], callback: MapComponent.PopupContentCallback) => Promise<void>;
|
|
296
|
+
removePopups: () => void;
|
|
311
297
|
}
|
|
312
298
|
export declare function mountMap(options: MapOptions): MapComponent;
|
|
313
299
|
export declare function unmountMap(map: ReturnType<typeof mountMap>): void;
|