Open motormouthvis opened 1 year ago
@TomSchimansky Having the same issue with map.set_position(lat, long).
@motormouthvis Were you able to find a solution?
@TomSchimansky, @motormouthvis Found the issue... when you scroll using mouse, the zoom is stored as float.
In the utility_functions.py: def decimal_to_osm(lat_deg: float, lon_deg: float, zoom: int) <-- int is rounding the float value and thus changing the calculations in the following lines...
I believe zoom:int should be changed to zoom:float alternative solution could be forcing mouse scroll to int?
simple solution: map_widget.set_zoom(int(map_widget.zoom))
Hi, I'm having a problem with a moving map for aircraft. If I just let it run it works great, but if I move the map display with the mouse or change the zoom with the mouse, the next time this code is run, it intermittently centers in Brazil. Once that happens, it never centers in the correct place again. Can you help?
This code runs on a timer: