onClick() and onHover() only receive single argument. (#29392)

This commit is contained in:
Shuhei Tsukamoto 2018-10-09 09:44:18 +09:00 committed by Andy
parent f66411657c
commit 56073ea2ff

View File

@ -143,8 +143,8 @@ export interface InteractiveMapProps extends StaticMapProps {
touchRotate?: boolean;
keyboard?: boolean;
onHover?: (event: MapEvent, lngLat: number[], features: any) => void;
onClick?: (event: MapEvent, lngLat: number[], features: any) => void;
onHover?: (event: MapEvent) => void;
onClick?: (event: MapEvent) => void;
onContextMenu?: (event: MapEvent) => void;