@wayz/react-gl
Version:
React Component for DeckGL, Base on AMap, Mapbox GL
22 lines (21 loc) • 1.02 kB
TypeScript
import { PropsWithChildren, FC } from 'react';
import { ScaleControlProps } from 'react-map-gl';
import { DeckGLProps } from '@deck.gl/react/deckgl';
import { InitialViewStateProps, ViewStateProps } from '@deck.gl/core/lib/deck';
export type { DeckGLProps, InitialViewStateProps, ViewStateProps };
declare type LngLatBoundsLike = [number, number, number, number];
export interface MapGLScaleControlProps extends ScaleControlProps {
show?: boolean;
}
export interface MapGLProps extends Omit<DeckGLProps, 'onViewStateChange'> {
MAP_ACCESS_TOKEN?: string;
mapStyle?: 'light' | 'dark' | 'grey' | 'cyan' | 'blue' | object;
initialViewState?: InitialViewStateProps;
debug?: boolean;
onViewStateChange?: (viewState: ViewStateProps) => void;
scaleControl?: MapGLScaleControlProps;
maxBounds?: LngLatBoundsLike;
}
export declare const MapGL: FC<PropsWithChildren<MapGLProps>>;
declare const _default: import("react").NamedExoticComponent<PropsWithChildren<MapGLProps>>;
export default _default;