Closed giswqs closed 2 weeks ago
Do you want to get this values on the mouse clicked event or by calling a separate function that triggers the values to be returned?
Can we make them as the map attributes, similar to ipyleaflet?
Yes, this is how I will make it available. The question just was, when to update these values, but I think it will be on_zoom and on_map_move :-)
It would be great to add support for getting the map center, zoom level, and bounds programmatically. For now, we can only get the mouse clicked location. Getting map center and bounds would be very useful for some computing workflows.
Ideally, we want to use the draw control to draw some shapes and return the drawn geometries programmatically.