@vis.gl/react-maplibre
Version:
React components for Maplibre GL JS
41 lines • 2.18 kB
TypeScript
import type { Map, MapOptions, Marker, MarkerOptions, Popup, PopupOptions, AttributionControl, AttributionControlOptions, FullscreenControl, FullscreenControlOptions, GeolocateControl, GeolocateControlOptions, NavigationControl, NavigationControlOptions, ScaleControl, ScaleControlOptions, TerrainControl, TerrainSpecification, LogoControl, LogoControlOptions } from 'maplibre-gl';
export type { ControlPosition, IControl, Map as MapInstance, MapOptions, Marker as MarkerInstance, MarkerOptions, Popup as PopupInstance, PopupOptions, AttributionControl as AttributionControlInstance, AttributionControlOptions, FullscreenControl as FullscreenControlInstance, FullscreenControlOptions, GeolocateControl as GeolocateControlInstance, GeolocateControlOptions, NavigationControl as NavigationControlInstance, NavigationControlOptions, ScaleControl as ScaleControlInstance, ScaleControlOptions, TerrainControl as TerrainControlInstance, LogoControl as LogoControlInstance, LogoControlOptions, CustomLayerInterface } from 'maplibre-gl';
/**
* A user-facing type that represents the minimal intersection between Mapbox and Maplibre
* User provided `mapLib` is supposed to implement this interface
* Only losely typed for compatibility
*/
export interface MapLib {
supported?: (options: any) => boolean;
Map: {
new (options: MapOptions): Map;
};
Marker: {
new (options: MarkerOptions): Marker;
};
Popup: {
new (options: PopupOptions): Popup;
};
AttributionControl: {
new (options: AttributionControlOptions): AttributionControl;
};
FullscreenControl: {
new (options: FullscreenControlOptions): FullscreenControl;
};
GeolocateControl: {
new (options: GeolocateControlOptions): GeolocateControl;
};
NavigationControl: {
new (options: NavigationControlOptions): NavigationControl;
};
ScaleControl: {
new (options: ScaleControlOptions): ScaleControl;
};
TerrainControl: {
new (options: TerrainSpecification): TerrainControl;
};
LogoControl: {
new (options: LogoControlOptions): LogoControl;
};
}
//# sourceMappingURL=lib.d.ts.map