Python Folium Library

Installation of folium

$ pip install folium

Or

How do you use(Install) Folium in Jupyter Notebook or Anaconda?

$ conda install folium -c conda-forge

What are tile styles of Folium maps?

Before getting started let’s understand what is tiles and zooming in map

Getting Started

#Creating simple map

marker=folium.Map(location=[28.704060,77.102493], zoom_start=4)

#saving a map in folium (create a html page)

marker.save(‘index.html’)

marker

Markers and Popup

#creating a simple marker

folium.Marker([28.609140,77.234138], popup=’India Gate’, tooltip=”click me for more”).add_to(marker)

marker

Plotting Geojson/ json and Topojson file on map

#plotting Geojson data on map

marker=folium.Map(location=[28.704060,77.102493],zoom_start=4)

folium.GeoJson(‘india_states.json’).add_to(marker)

marker

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store