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

How to get the edge of a polygon drawn on map within map? #85

Open
silvermind20 opened this issue Mar 3, 2020 · 0 comments
Open

How to get the edge of a polygon drawn on map within map? #85

silvermind20 opened this issue Mar 3, 2020 · 0 comments

Comments

@silvermind20
Copy link

How can I implement a listener when the user clicks exactly on the edge of the drawn polygons and get the lat and lng of that edge? I know a similar situation can be implemented with Google Map API like the code below, but I can not find any source to help me implement the same thing in Leaflet Draw.
google.maps.event.addListener(polygon, 'click', function (event) { console.log(event.edge) }
Google Map Documentation: https://developers.google.com/maps/documentation/javascript/reference/polygon#PolyMouseEvent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant