I combined all 17 lines of code and, while the map appears, the mouse does not generate the lat/lon coordinates as shown in the tutorial. The code is as follows:
import de.fhpotsdam.unfolding.*; import de.fhpotsdam.unfolding.geo.*; import de.fhpotsdam.unfolding.utils.*;
UnfoldingMap map; //Initialize a new map object and add the default event function for basic interaction (double-click to zoom and drag to pan the map).
void setup() { size(800, 600); map = new UnfoldingMap(this); MapUtils.createDefaultEventDispatcher(this, map); }
void draw() { map.draw(); Location location = map.getLocation(mouseX, mouseY); fill(0); text(location.getLat() + ", " + location.getLon(), mouseX, mouseY); }