Interactive Mapping

Interactive Mapping#

plotly supports two different types of maps.

  • Mapbox maps are tile-based maps that are rendered using tiles that join together to form the map plot.

  • Geo maps are outline-based maps that are rendered using the layout.geo object that contains map configuration information.

Both of those map types support point and polygon data.

Point DataPolygon Data
Outline Map (or Geo Map)Draw a base map / base layer
Point data is similar to a scatter plot
px.scatter_geo()
Draw base map / base layer with polygons
Join attribute data to the polygons
px.choropleth()
Tile (or mapbox) mapUse mapbox tiles for base map / base layer
Point data is similar to a scatter plot
px.scatter_mapbox()
Use mapbox tiles for base map / base layer
Join attribute data to the polygons
px.choropleth_mapbox()

Section Table of Contents#