UNPKG

react-bkoi-gl

Version:

React components for Barikoi GL JS

28 lines (27 loc) 1.05 kB
import * as React from "react"; import { MaplibreProps } from "../maplibre/maplibre"; import { MapRef } from "../maplibre/create-ref"; import type { CSSProperties } from "react"; import { GlobalSettings } from "../utils/set-globals"; import type { MapLib, MapOptions } from "../types/lib"; export type MapContextValue = { mapLib: MapLib; map: MapRef; }; export declare const MapContext: React.Context<MapContextValue>; type MapInitOptions = Omit<MapOptions, "style" | "container" | "bounds" | "fitBoundsOptions" | "center">; export type MapProps = MapInitOptions & MaplibreProps & GlobalSettings & { mapLib?: MapLib | Promise<MapLib>; reuseMaps?: boolean; /** Map container id */ id?: string; /** Map container CSS style */ style?: CSSProperties; children?: React.ReactNode; /** Show Barikoi logo (default: true) */ showBarikoiLogo?: boolean; /** Show Attribution (default: true) */ showAttribution?: boolean; } & React.RefAttributes<MapRef>; export declare const Map: React.FC<MapProps>; export {};