emilhe / dash-leaflet

MIT License
214 stars 40 forks source link

Getting vertices of a rectangle on map #251

Open Rashmi-PP opened 3 months ago

Rashmi-PP commented 3 months ago

Hello,

I am using rectangle on dash leaflet to draw a bounding box. My goal is to get the diagonally opposite coordinates (if not all coordinates) using this rectangle and send it to backend. Is there a way to achieve this upon drawing rectangle? I have used marker and it works fine but I couldn't find a way to do this with rectangle.