Skip to content

Instantly share code, notes, and snippets.

@abhishek-shrm
Created April 21, 2020 12:04
Show Gist options
  • Save abhishek-shrm/a3425f9df754360c47a0af9aafdef49f to your computer and use it in GitHub Desktop.
Save abhishek-shrm/a3425f9df754360c47a0af9aafdef49f to your computer and use it in GitHub Desktop.
# Creating Basemap
fig3=Figure(width=550,height=350)
m3=folium.Map(location=[28.644800, 77.216721],tiles='cartodbpositron',zoom_start=11)
fig3.add_child(m3)
#Adding markers to the map
folium.Marker(location=[28.695800, 77.244721],popup='Default popup Marker1',tooltip='Click here to see Popup').add_to(m3)
folium.Marker(location=[28.645800, 77.214721],popup='<strong>Marker3</strong>',tooltip='<strong>Click here to see Popup</strong>').add_to(m3)
folium.Marker(location=[28.655800, 77.274721],popup='<h3 style="color:green;">Marker2</h3>',tooltip='<strong>Click here to see Popup</strong>').add_to(m3)
m3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment