@goongmaps/goong-map-react
Version:
A fork of react-map-gl. React components for Goong JS
21 lines (15 loc) • 515 B
TypeScript
import {ReactElement} from 'react';
import type {MapboxProps} from '../goong/goong';
export type StaticMapProps = MapboxProps & Partial<{
className: string,
style: any,
disableTokenWarning: boolean,
visibilityConstraints: any,
children: any,
onResize: Function
}>;
export interface MapRef {
getMap(): any;
queryRenderedFeatures(geometry: [number,number] | [[number,number],[number,number]], options?: any): Array<any>;
}
export default function StaticMap(props: StaticMapProps) : ReactElement;