When creating a DrawControl in ipyleaflet, I am able to draw a polygon in the map. An example below:
[
Add the units to a
metricoption of your shape:In this case, the values will be in square meters until 1ha (10,000 m2), then in ha, then in km2 for areas bigger than 1km2 (100ha).
If you just put
"metric":"m", it will all be in m2.The unit option is a
polygonoption and not ashapeOption, as detailed here:https://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html#drawoptions