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
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