pg.pushStyle();
@SuppressWarnings("unchecked")
List<Double> speedList = (List<Double>) properties.get("speedList");
MapPosition oldPos = null;
for (int i = 0; i < mapPositions.size(); i++) {
MapPosition pos = mapPositions.get(i);
if (i > 0) {
// Draw a line
pg.strokeWeight(4);
// Map speed to color of line
pg.stroke(255 - PApplet.map(speedList.get(i).floatValue(), 0, 30, 0, 255),