tutorial 4.3:

Mapping with the Unfolding Maps library

The Unfolding Maps library is a powerful mapping library for Processing that allows you to plot data on a background map. Built-in features include zooming, panning, multiple map windows, markers, and labels. The library also makes it quite easy to read in geometry stored as a GeoJSON or GeoRSS file. You can read in data from the usual range of dataformats for Processing. The library comes with a collection of great examples that include live data and static data sources.

As with other Processing libraries that we've seen (controlP5) installation simply involves copying the downloaded zip file to the 'libraries' folder in your sketchfolder and unzipping it.

One great feature of Unfolding Maps is the range of map styles that you can use in your Processing sketches. You can customize most aspects of the appearance and functionality of the maps, including the graphics used to mark locations.

1) Code Examples


The following code examples using Unfolding Maps will be discussed in class:

SimpleMapApp: Unfolding Maps example that provides the basic code needed to create a map. Located in the 'Examples' list in Processing under 'Contributed Libraries'.

SimpleMarkerApp: Unfolding Maps example that provides the basic code needed to create a map with markers. Located in the 'Examples' list in Processing under 'Contributed Libraries'.

BikeObjectsMap: Unfolding Maps example that loads live data about bikes in London and displays the data on the map. Creates a custom Class (BikeStation) to store the information about each bike station. Located in the 'Examples' list in Processing under 'Contributed Libraries'.

unfoldingCSVsheffield: example based on BikeObjectsMap that loads myTracks data from a CSV and displays it on the map (download)