diff --git a/src/components/static-map.d.ts b/src/components/static-map.d.ts index 0211c342..2c859aca 100644 --- a/src/components/static-map.d.ts +++ b/src/components/static-map.d.ts @@ -1,6 +1,12 @@ +import * as React from 'react'; import {ReactElement} from 'react'; import type {MapboxProps} from '../mapbox/mapbox'; +export interface MapRef { + getMap(): any; + queryRenderedFeatures(geometry: [number,number] | [[number,number],[number,number]], options?: any): Array; +} + export type StaticMapProps = MapboxProps & Partial<{ className: string, style: any, @@ -15,11 +21,7 @@ export type StaticMapProps = MapboxProps & Partial<{ children: any, onResize: (dimensions: { width: number; height: number }) => void; + + ref: React.Ref }>; - -export interface MapRef { - getMap(): any; - queryRenderedFeatures(geometry: [number,number] | [[number,number],[number,number]], options?: any): Array; -} - export default function StaticMap(props: StaticMapProps) : ReactElement; diff --git a/src/components/use-map-control.d.ts b/src/components/use-map-control.d.ts index 243ae956..0ae9940e 100644 --- a/src/components/use-map-control.d.ts +++ b/src/components/use-map-control.d.ts @@ -7,6 +7,14 @@ export type MapControlProps = Partial<{ captureClick: boolean, captureDoubleClick: boolean, capturePointerMove: boolean, + + onScroll: Function, + onDragStart: Function, + onClick: Function, + onNativeClick: Function, + onDoubleClick: Function, + onPointerMove: Function, + children: any }>;