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

Get Marker position on dragend

Open zellen opened this issue 11 years ago • 5 comments

Hi. Just got a dragend-event to work but I cannot figure out how to get the new position of my marker.

I'm doing onDragend={this.onMarkerPositionChanged} and

onMarkerPositionChanged(e) {

}

But how do I get the new position?

zellen avatar Dec 01 '15 12:12 zellen

Nevermind. Just found the solution... e.latLng.lat()

zellen avatar Dec 01 '15 12:12 zellen

:+1:

tomchentw avatar Dec 01 '15 13:12 tomchentw

do you mind sharing the full solution for this please

graig12 avatar Oct 27 '18 13:10 graig12

never mind figured it out:)

graig12 avatar Oct 27 '18 13:10 graig12

@graig12 Maybe share your full solution for the next commenter to come?

urikphytech avatar Oct 29 '18 07:10 urikphytech