-
Couldn't load subscription status.
- Fork 2.3k
Closed
Description
Please add a code sample or a nbviewer link, copy-pastable if possible
import folium
from folium import plugins
points = {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name": "one"
},
"geometry": {
"type": "Point",
"coordinates": [-71.0636, 42.3581]
}
},
{
"type": "Feature",
"properties": {
"name": "two"
},
"geometry": {
"type": "Point",
"coordinates": [-74.78991444, 42.82995815]
}
},
{
"type": "Feature",
"properties": {
"name": "three"
},
"geometry": {
"type": "Point",
"coordinates": [-78.56603306, 39.17929819]
}
}
]
}
m = folium.Map(
location=[42.82995815, -74.78991444],
tiles = 'cartodbpositron',
zoom_start=4
)
plugins.Search(points, search_zoom=20, ).add_to(m)
m.save('example.html')Problem description
I'm facing with below error when running above code.
AssertionError: Search can only index FeatureGroup, MarkerCluster, GeoJson, and TopoJson layers at this time.
Expected Output
Output of folium.__version__
0.8.3
Metadata
Metadata
Assignees
Labels
No labels