Skip to content

Commit ea74c59

Browse files
committed
fixes #104 zoom issue
1 parent 570b64c commit ea74c59

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

gnss_lib_py/utils/visualizations.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,8 @@ def _zoom_center(lats, lons, width_to_height = 1.25):
808808
lon_zoom = np.interp(width , lon_zoom_range, range(20, 0, -1))
809809
lat_zoom = np.interp(height, lon_zoom_range, range(20, 0, -1))
810810
zoom = floor(min(lon_zoom, lat_zoom))
811+
# zoom level higher than 18 won't load load properly as of June 2023
812+
zoom = min(zoom, 18)
811813

812814
return zoom, center
813815

0 commit comments

Comments
 (0)