UNPKG

@wayz/react-gl

Version:

React Component for DeckGL, Base on AMap, Mapbox GL

23 lines (22 loc) 979 B
import { PropsWithChildren } from 'react'; import { DeckGLProps } from '@deck.gl/react/deckgl'; import { InitialViewStateProps, ViewStateProps } from '@deck.gl/core/lib/deck'; import '@amap/amap-jsapi-types'; export type { DeckGLProps, InitialViewStateProps, ViewStateProps }; declare type LngLatBoundsLike = [number, number, number, number]; export interface AMapGLScaleControlProps { show?: boolean; className?: string; } export interface AMapGLProps extends Omit<DeckGLProps, 'onViewStateChange'> { MAP_ACCESS_TOKEN: string; mapStyle?: 'dark' | 'light' | 'normal' | 'whitesmoke' | 'fresh' | 'grey'; initialViewState?: InitialViewStateProps; mapOptions?: AMap.MapOptions; onViewStateChange?: (viewState: ViewStateProps) => void; debug?: boolean; scaleControl?: AMapGLScaleControlProps; maxBounds?: LngLatBoundsLike; } declare const _default: import("react").NamedExoticComponent<PropsWithChildren<AMapGLProps>>; export default _default;