@mapka/react-maplibre-map
Version:
MapLibre react web component
20 lines • 879 B
TypeScript
import * as maplibre from "maplibre-gl";
import type { RequestTransformFunction, MapOptions, StyleSpecification } from "maplibre-gl";
interface MapLibreMapProps<Map extends maplibre.Map = maplibre.Map, O extends MapOptions = MapOptions> {
center?: [number, number];
zoom?: number;
style?: string | StyleSpecification;
width?: string | number;
height?: string | number;
apiKey?: string;
injectMaplibreStyles?: boolean;
transformRequest?: RequestTransformFunction;
BaseMap?: new (options: O) => Map;
onMapLoaded?: (map: Map) => void;
}
export declare function MapLibreMap<M extends maplibre.Map = maplibre.Map, O extends MapOptions = MapOptions>(props: MapLibreMapProps<M, O>): import("react/jsx-runtime").JSX.Element;
export declare namespace MapLibreMap {
var displayName: string;
}
export {};
//# sourceMappingURL=MapLibreMap.d.ts.map