Skip to content

Commit

Permalink
Change Map lat&lon bound type annotations from int to float (#1954)
Browse files Browse the repository at this point in the history
There is no technical reason for why the lat&lon bounds would have to be int.
In fact, it makes a lot of sense to use floats in order to allow for much more precise map bounds.
  • Loading branch information
JonasVerbickas authored May 23, 2024
1 parent 1e2b38d commit b80e7e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions folium/folium.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ def __init__(
min_zoom: Optional[int] = None,
max_zoom: Optional[int] = None,
zoom_start: int = 10,
min_lat: int = -90,
max_lat: int = 90,
min_lon: int = -180,
max_lon: int = 180,
min_lat: float = -90,
max_lat: float = 90,
min_lon: float = -180,
max_lon: float = 180,
max_bounds: bool = False,
crs: str = "EPSG3857",
control_scale: bool = False,
Expand Down

0 comments on commit b80e7e9

Please sign in to comment.