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

Unable to bind marker drag with circle

Open rb-prashant opened this issue 5 years ago • 0 comments

Hi, I have a simple map with one marker and a circle drawn around the marker. I have used state to save lat lng, but for some reason I am not able to bind marker drag with circle. i.e when I move marker the circle stays on old position, it doesn't drag with the marker. However I have another field of radius unit (meters) on changing which the circle reposition to correct position (I have used the same state update code for onMarkerDragEnd and input field change). Please see the screenshot below:

image

Thank you

rb-prashant avatar Jul 15 '20 12:07 rb-prashant