Lesson 5 Overview

This lesson we will focus on learning how to create beautiful maps in Python with different levels of interactivity and modes of presentation.

  1. Static maps
  2. Interactive maps with bokeh
  3. Interactive Leaflet maps with Folium
  4. Exercise 5

5. Exercise 5 hints 5. Examples 2018

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:

In addition to these modules, there are also several good and interesting other modules for making maps that we will NOT cover, but we mention them if you like to investigate by yourself later on:

  • mplleaflet (converts Matplotlib plots easily to interactive Leaflet maps)
  • Basemap (Matplotlib’s own mapping module)
  • Cartopy (The Cartopy project will replace Basemap, but it hasn’t yet implemented all of Basemap’s features.)
  • GeoViews

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 a simple interactive map using Bokeh
  • Create a simple interactive web map using Folium (using the LeafletJS JavaScript web map library).

Sources

Following materials are partly based on documentation of Geopandas, Matplotlib, Bokeh, and Folium.

The lesson reuses materials from Henrikki Tenkanen from the University of Helsinki, under CC-BY-SA from from AutoGIS GitHub repository.