Get lat-long coordinates of EditControl elements in dash_leaflet

I am working on an app, where a user can draw a rectangle on a dash_leaflet map, and I would like to get the lat-long coordinates of the corners of the rectangle.

Presumably this can be done using the arguments of EditControl, but the explanations on Dash are somewhat fragmentary…

Several further questions here (see the screenshot below):

  1. Is it possible to change the alt text “Draw a rectangle” when mouse over the Rectangle control? Apparently this can be done by manually changing async-EditControl.ts.js in dash_leaflet package folder, but I am interested in changing it via python.
  2. How to remove the Edit/Delete control elements?

Thanks :slight_smile: