React-google-maps: Get Marker position on dragend

Created on 1 Dec 2015  路  5Comments  路  Source: tomchentw/react-google-maps

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?

Most helpful comment

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

All 5 comments

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

:+1:

do you mind sharing the full solution for this please

never mind figured it out:)

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

Was this page helpful?
0 / 5 - 0 ratings