Interface MapLibreGlModule

The shape of the maplibre-gl module HonuaMap needs when it owns the map. Pass your imported maplibre-gl namespace as HonuaMapProps.mapLibre, or let HonuaMap dynamically import("maplibre-gl").

interface MapLibreGlModule {
    Map: (new (options: MapLibreMapOptions) => MaplibreMap & {
        remove(): void;
    });
    Popup: (new (options?: Record<string, unknown>) => unknown);
}

Properties

Properties

Map: (new (options: MapLibreMapOptions) => MaplibreMap & {
    remove(): void;
})
Popup: (new (options?: Record<string, unknown>) => unknown)