Subsurface Syntax

Subsurface Syntax

3 Easy Ways to Include Interactive Maps in a Streamlit App

Visualising Geospatial Data Within Streamlit

Andy McDonald's avatar
Andy McDonald
Feb 19, 2023
∙ Paid

Visualising Geospatial Data Within Streamlit

Photo by Andrew Stutesman on Unsplash

Streamlit provides a quick and easy way to build interactive applications and dashboards for data analysis and machine learning. If we are looking to build a data analysis app within Streamlit that uses data containing location information, one of the first visualisations we may want to consider adding is a map. Having an interactive map within our app allows us to visualise where the data points are located, and in turn, we can identify patterns or dig into the data in more depth.

Within this short article, we will look at three easy ways to create interactive maps directly within a Streamlit app.

Importing Libraries and Data

Before we start, we need to import the libraries and the data we will be working with. For this article, we will be using two libraries to start with: Streamlit and Pandas.

import streamlit as st
import pandas as pd

The data we are using for this article comes from the Norwegian Petroleu…

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