enhanced leaflet support #1446
Replies: 3 comments 4 replies
-
Thanks for sharing @WolfgangFahl. Very interesting. We are also working on a map component because of some requirements from a few of our robot projects. |
Beta Was this translation helpful? Give feedback.
-
@rodja - I'd also need read access - how can i get e.g. the zoomlevel back via javascript? I'd love te get a layout similar to https://cycle.travel/map/journey/466345 with map and 2D/3D display |
Beta Was this translation helpful? Give feedback.
-
The problem is that the code uses javascript functions that modify the zoomlevel. Currently only manual adjusting the slider to the same zoomlevel somewhat helps but that's IMHO only and ugly workaround. Generally methods should of course have return types. Even if the set of possible types would be limited e.g. only string or string/int/float/date that would already be helpful. Would this be a feature request with a new ticket? |
Beta Was this translation helpful? Give feedback.
-
see http://nicesrt.bitplan.com and https://github.com/WolfgangFahl/nicesrt for an enhanced leaflet support https://github.com/WolfgangFahl/nicesrt/blob/main/nicesrt/leaflet.py based on https://github.com/zauberzeug/nicegui/blob/main/examples/map/leaflet.py it add set_zoom_level and draw_path functions for a start.
Beta Was this translation helpful? Give feedback.
All reactions