Skip to content

Commit 22f3435

Browse files
committed
Change function name
1 parent d17ccfd commit 22f3435

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

folium/map.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
'https://rawgit.com/python-visualization/folium/master/folium/templates/leaflet.awesome.rotate.css'), # noqa
6161
]
6262

63-
def _format_lat_lon(values):
63+
def _validate_location(values):
6464
"""Validates and formats location values before setting"""
6565
if type(values) not in [list, tuple]:
6666
raise TypeError("Location is not a list, expecting ex: location=[45.523, -122.675]")
@@ -74,6 +74,7 @@ def _format_lat_lon(values):
7474
raise ValueError("Location values should be numeric, {} is not a number".format(val))
7575
return values
7676

77+
7778
class LegacyMap(MacroElement):
7879
"""Create a Map with Folium and Leaflet.js
7980

0 commit comments

Comments
 (0)