You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an empty geojson is added with empty features like:
{"type":"FeatureCollection","features":[]}
an error is reach:
566 they are functions returning dictionaries.
567 """
--> 568 test_feature = self.data['features'][0]
569 if not callable(func) or not isinstance(func(test_feature), dict):
570 raise ValueError('{} should be a function that accepts items from '
IndexError: list index out of range
If an empty geojson is added with empty features like:
an error is reach:
A simple check will avoid this issue.
folium/folium/features.py
Line 571 in ab77557
The text was updated successfully, but these errors were encountered: