Skip to content

Commit b80e7e9

Browse files
Change Map lat&lon bound type annotations from int to float (#1954)
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.
1 parent 1e2b38d commit b80e7e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

folium/folium.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ def __init__(
249249
min_zoom: Optional[int] = None,
250250
max_zoom: Optional[int] = None,
251251
zoom_start: int = 10,
252-
min_lat: int = -90,
253-
max_lat: int = 90,
254-
min_lon: int = -180,
255-
max_lon: int = 180,
252+
min_lat: float = -90,
253+
max_lat: float = 90,
254+
min_lon: float = -180,
255+
max_lon: float = 180,
256256
max_bounds: bool = False,
257257
crs: str = "EPSG3857",
258258
control_scale: bool = False,

0 commit comments

Comments
 (0)