Is there anyone who can help me with unfolding map. i want to create markers on map and want to save them too in .csv file so that if i want my device to follow that path . it will follow that without any error.
import de.fhpotsdam.unfolding.providers.Microsoft;
import de.fhpotsdam.unfolding.*;
import de.fhpotsdam.unfolding.utils.*;
import de.fhpotsdam.unfolding.marker.*;
import de.fhpotsdam.unfolding.geo.*;
UnfoldingMap map ;
SimpleLinesMarker connectionMarker;
UnfoldingMap currentMap;
void setup() {
size(800, 600);
map = new UnfoldingMap(this, new Microsoft.AerialProvider());
MapUtils.createDefaultEventDispatcher(this, map);
currentMap = map;
map = new UnfoldingMap(this);
Location startLocation = new Location(32.2, 76.3);
Location endLocation = new Location(53.35, -6.26);
SimpleLinesMarker connectionMarker = new SimpleLinesMarker(startLocation, endLocation);
MapUtils.createDefaultEventDispatcher(this, map);
}
void draw() {
currentMap.draw();
}
void keyPressed() {
if (key == '1') {
currentMap = map;
}
}