Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Unfolding Map

$
0
0

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;
    }
}

Viewing all articles
Browse latest Browse all 2896

Trending Articles