@wayz/react-gl
Version:
React Component for DeckGL, Base on AMap, Mapbox GL
17 lines (16 loc) • 701 B
TypeScript
import { PropsWithChildren, FC } from 'react';
import { DeckGLProps } from '@deck.gl/react/deckgl';
import { InitialViewStateProps, ViewStateProps } from '@deck.gl/core/lib/deck';
declare type LngLatBoundsLike = [number, number, number, number];
export interface BMapGLProps extends Omit<DeckGLProps, 'onViewStateChange'> {
MAP_ACCESS_TOKEN?: string;
mapStyle?: 'normal' | 'dark' | object;
initialViewState?: InitialViewStateProps;
mapOptions?: AMap.MapOptions;
onViewStateChange?: (viewState: ViewStateProps) => void;
debug?: boolean;
scriptUrl?: string;
maxBounds?: LngLatBoundsLike;
}
declare const BMapGL: FC<PropsWithChildren<BMapGLProps>>;
export default BMapGL;