We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 85cc200 + ddf1453 commit 30edf51Copy full SHA for 30edf51
folium/utilities.py
@@ -449,9 +449,9 @@ def iter_points(x):
449
"""Iterates over a list representing a feature, and returns a list of points,
450
whatever the shape of the array (Point, MultiPolyline, etc).
451
"""
452
- if isinstance(x, list):
+ if isinstance(x, (list, tuple)):
453
if len(x):
454
- if isinstance(x[0], list):
+ if isinstance(x[0], (list, tuple)):
455
out = []
456
for y in x:
457
out += iter_points(y)
@@ -461,4 +461,4 @@ def iter_points(x):
461
else:
462
return []
463
464
- raise ValueError('List type expected. Got {!r}.'.format(x))
+ raise ValueError('List/tuple type expected. Got {!r}.'.format(x))
0 commit comments