Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation should describe the parameters passed to Marker.onDragend #487

Open
nickperkinslondon opened this issue Oct 24, 2020 · 1 comment

Comments

@nickperkinslondon
Copy link

@nickperkinslondon nickperkinslondon commented Oct 24, 2020

Documentation should describe the parameters passed to Marker.onDragend.
The handler gets 3 complex objects, and its not easy to figure-out what they are.

@YaakovHatam
Copy link

@YaakovHatam YaakovHatam commented Nov 2, 2020

Hope it will help you: (it worked for me)

<Marker
    onDragend={this.moveMarker.bind(marker)}
</Marker>
   moveMarker(props, marker, e) {
        console.log(e.latLng.lat(), e.latLng.lng()) // get the new coordinates after drag end
    }
YaakovHatam added a commit to YaakovHatam/google-maps-react that referenced this issue Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.