UNPKG

@goongmaps/goong-map-react

Version:

A fork of react-map-gl. React components for Goong JS

33 lines (31 loc) 764 B
/** * Flowtype definitions for use-map-control * Generated by Flowgen from a Typescript Definition * Flowgen v1.21.0 */ import { RefObject } from "react"; import { MapContextProps } from "./map-context"; export type MapControlProps = $Rest< { captureScroll: boolean, captureDrag: boolean, captureClick: boolean, captureDoubleClick: boolean, capturePointerMove: boolean, children: any, ... }, { ... } >; export type MapControlRef = { props: any, context: MapContextProps, state: any, containerRef: RefObject<any>, ... }; declare export var mapControlDefaultProps: MapControlProps; declare export var mapControlPropTypes: any; declare export default function useMapControl( props: MapControlProps ): MapControlRef;