Subsurface Syntax

Subsurface Syntax

Folium Mapping: Displaying Markers on a Map

A Short Guide on Adding Markers to a Folium Map in Python

Andy McDonald's avatar
Andy McDonald
Oct 19, 2022
∙ Paid

A Short Guide on Adding Markers to a Folium Map in Python

Displaying markers on a folium map within Python. Abstract representation of pushpins and a map
Photo by GeoJango Maps on Unsplash

Folium is a powerful Python library that makes it easy to visualise geospatial data. It utilises the power of Leaflet.js, which is popular and leading JavaScript library that can be used to create interactive maps that can be used across both desktop and mobile platforms.

The library has been designed in a way that makes it easy and simple to use whilst maintaining good performance.

There are many ways data can be displayed on a Folium map, including:

  • Markers (points and circles)

  • Heatmaps

  • Clusters

  • Chloropeth

In this short tutorial we are going to see how we can display both single and multiple markers on a Folium map.

Displaying Markers in Folium Python Tutorial

Installing Folium

If you don’t already have folium installed you can install it via pip:

pip install folium

or Anaconda:

conda install folium

Importing Folium

The first step is to import the libraries we are going to use.

For this tutorial we will be us…

Keep reading with a 7-day free trial

Subscribe to Subsurface Syntax to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2026 Andy McDonald · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture