Lesson 6 Overview
This lesson we will focus on learning how to create beautiful maps in Python with different levels of interactivity and modes of presentation.
- Examples
- Static maps
- Interactive Leaflet maps with Folium
- Fair Data, Github Pages, and version control
- More Interactive mapping and dashboard approaches
There are many different Python modules that can be used for making visualizations. And many of them allows you to create also different kinds of maps. During this lesson we will focus on few of them, namely:
- Matplotlib (static maps, integrated into Geopandas and Matplotlib)
- EarthPy (additional support for better raster data maps, based on Matplotlib)
- Python HoloVis ecosystem and GeoViews (interactive maps based on Bokeh, can also make static maps with support of Matplotlib)
- Folium (interactive Web maps on Leaflet)
In addition to these modules, there are also several good and interesting other modules for making maps or that support making in maps under the hood. We mention them if you like to investigate more by yourself later on:
- Cartopy
- Contextily
- Geoplot (static maps for specific use cases, based on Matplotlib)
- Bokeh and Python Panel (interactive maps and dashboards)
Learning goals
After this lessons lesson you should be able to (at least):
- Create a static map using Geopandas (using the integrated matplotlib module)
- Create customised static maps integrating raster data and/or specific cartographic methods
- Create simple interactive maps using Folium
- Create interactive web maps and Dashboards using the Panel library and understanding the provided components
Sources
Following materials are partly based on documentation of Geopandas, Matplotlib, Geoplot, - EarthPy, Folium. Panel, Holoviz, PyViz, GeoViews and Bokeh,
The lesson reuses materials from Henrikki Tenkanen from the University of Helsinki, under CC-BY-SA from from AutoGIS GitHub repository.