Skip to content

Instantly share code, notes, and snippets.

@sergiolucero
Created November 7, 2019 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergiolucero/09688a903138bddf7cd56c3aefe0b9b0 to your computer and use it in GitHub Desktop.
Save sergiolucero/09688a903138bddf7cd56c3aefe0b9b0 to your computer and use it in GitHub Desktop.
Folium ClusterMap
import folium
from folium.plugins import MarkerCluster
mc = MarkerCluster()
fm = folium.Map(location=[40.72,-73.98],zoom_start=5)
for _,row in ndf.iterrows():
mc.add_child(folium.Marker(location=[row['lat'],row['lon']]))
mc.add_to(fm)
fm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment