google-maps-react icon indicating copy to clipboard operation
google-maps-react copied to clipboard

Marker onDragend undefined

Open nuthinking opened this issue 5 years ago • 3 comments

I upgraded from 2.0.2 and now it looks like the Marker doesn't expose anymore such event. What's the latest way to listen to Marked drag events? Thanks!

nuthinking avatar Jul 02 '20 12:07 nuthinking

I think based on this code, all event listeners still can be passed as props. However, the typescript definition doesn't include the complete props.

https://github.com/fullstackreact/google-maps-react/blob/5038ac47b22682b12adfe18443ec617b2309f3c6/src/components/Marker.js#L97-L104

yonasadiel avatar Jul 04 '20 15:07 yonasadiel

Yeah, I'm using typescript.

nuthinking avatar Jul 05 '20 17:07 nuthinking

so what is the solution if you're using typescript?

cordial avatar Jan 09 '22 17:01 cordial