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
{{ message }}
Repository navigation
Problem with Folium search plugin (loading Geojosn Data) #1125
I'm facing with below error when running above code.
AssertionError: Search can only index FeatureGroup, MarkerCluster, GeoJson, and TopoJson layers at this time.
Activity
Conengmo commentedon Apr 7, 2019
You pass a dictionary to
Search, but it needs aFeatureGroup,MarkerCluster,GeoJsonorTopoJsonobject instead. Check out the example notebook:https://nbviewer.jupyter.org/github/python-visualization/folium/blob/master/examples/plugin-Search.ipynb
In the last cell you can see first a
folium.GeoJsonobject is created, which is passed tofolium.plugins.Search.morteza3000 commentedon Apr 7, 2019
Thanks a lot @Conengmo, my issue solved with below modification.
morteza3000 commentedon Apr 23, 2020
@Conengmo , can you please let me know that how can I use custom marker with this folium.GeoJson?
style_one = lambda x: {'fillColor': '#ffdc30'} doesn't change the color of markers.