Skip to content

Commit 2bfd656

Browse files
committed
Coordinate validation should return floats
If Numpy int32's are returned the `tojson` filter doesn't work.
1 parent d188d5f commit 2bfd656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

folium/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def _iter_tolist(x):
6262
if hasattr(x, '__iter__'):
6363
return list(map(_iter_tolist, x))
6464
else:
65-
return x
65+
return float(x)
6666

6767

6868
def _flatten(container):

0 commit comments

Comments
 (0)