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

This commit is contained in:
Shuhei Tsukamoto
2018-10-08 17:44:18 -07:00
committed by Andy
parent f66411657c
commit 56073ea2ff
+2 -2
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;