Package de.fhpotsdam.unfolding

Examples of de.fhpotsdam.unfolding.UnfoldingMap


  public void setup() {
    size(800, 600, OPENGL);
    smooth();

    map = new UnfoldingMap(this, 50, 50, 700, 500);
    map.zoomToLevel(2);
    MapUtils.createDefaultEventDispatcher(this, map);

    loadRSSGeoLocations();
  }
View Full Code Here


  int trailNumber = 10;

  public void setup() {
    size(800, 600, OPENGL);

    map = new UnfoldingMap(this);
    MapUtils.createDefaultEventDispatcher(this, map);
    map.zoomAndPanTo(startLocation, 16);

    trackPoints = GPXUtils.loadGPXTrack(this, "data/bike-tour.gpx");
  }
View Full Code Here

  List<GPXUtils.TrackPoint> trackPoints = new ArrayList<GPXUtils.TrackPoint>();

  public void setup() {
    size(800, 600, OPENGL);

    map = new UnfoldingMap(this);
    MapUtils.createDefaultEventDispatcher(this, map);
    map.zoomAndPanTo(startLocation, 15);

    trackPoints = GPXUtils.loadGPXTrack(this, "data/bike-tour.gpx");
    println("Loaded " + trackPoints.size() + " track points");
View Full Code Here

  List<MapSnapshot> mapSnapshots = new ArrayList<MapSnapshot>();

  public void setup() {
    size(800, 600, OPENGL);

    map = new UnfoldingMap(this);
    map.zoomAndPanTo(new Location(52.5f, 13.4f), 10);
    MapUtils.createDefaultEventDispatcher(this, map);

    addRandomMarkers();
  }
View Full Code Here

  MapSnapshot mapSnapshot;

  public void setup() {
    size(800, 600, OPENGL);

    map = new UnfoldingMap(this);
    map.zoomAndPanTo(new Location(52.5f, 13.4f), 10);

    MapUtils.createDefaultEventDispatcher(this, map);
  }
View Full Code Here

  UnfoldingMap mapOverview;

  public void setup() {
    size(800, 600, OPENGL);

    mapDetail = new UnfoldingMap(this, "detail", 10, 10, 585, 580);
    mapDetail.setTweening(true);
    mapDetail.zoomToLevel(4);
    mapOverview = new UnfoldingMap(this, "overview", 605, 10, 185, 185);
    mapOverview.setTweening(true);

    EventDispatcher eventDispatcher = new EventDispatcher();

    // Add mouse interaction to both maps
View Full Code Here

  public void setup() {
    size(800, 600, OPENGL);

    // Detail map with default mouse and keyboard interactions
    mapDetail = new UnfoldingMap(this, "detail", 10, 10, 585, 580);
    mapDetail.zoomToLevel(4);
    mapDetail.setZoomRange(4, 10);
    mapDetail.setTweening(true);
    EventDispatcher eventDispatcher = MapUtils.createDefaultEventDispatcher(this, mapDetail);

    // Overview map listens to interaction events from the detail map
    mapOverview = new UnfoldingMap(this, "overview", 605, 10, 185, 185);
    mapOverview.zoomToLevel(1);
    mapOverview.setZoomRange(1, 7);
    mapOverview.setTweening(true);
    eventDispatcher.register(mapOverview, "pan", mapDetail.getId());
    eventDispatcher.register(mapOverview, "zoom", mapDetail.getId());

    // Static overview map
    mapOverviewStatic = new UnfoldingMap(this, "overviewStatic", 605, 205, 185, 185);
  }
View Full Code Here

  public void setup() {
    size(800, 600, OPENGL);

    // Detail map with default mouse and keyboard interactions
    mapDetail = new UnfoldingMap(this, "detail", 10, 10, 585, 580);
    //mapDetail.setTweening(true);
    mapDetail.zoomToLevel(4);
    mapDetail.setZoomRange(4, 10);
    MapUtils.createDefaultEventDispatcher(this, mapDetail);

    // Static overview map
    mapOverviewStatic = new UnfoldingMap(this, "overviewStatic", 605, 10, 185, 185);

    viewportRect = new ViewportRect();
  }
View Full Code Here

  PFont font;

  public void setup() {
    size(800, 600, OPENGL);

    map = new UnfoldingMap(this, "map", 50, 50, 700, 500);
    map.zoomToLevel(3);
    map.panTo(berlinLocation);
    MapUtils.createDefaultEventDispatcher(this, map);

    font = loadFont("ui/OpenSans-12.vlw");
View Full Code Here

  public void setup() {
    size(800, 600);
    smooth();

    map = new UnfoldingMap(this);
    map.zoomTo(3);
    MapUtils.createDefaultEventDispatcher(this, map);

    MyPolygonMarker polygonMarker = new MyPolygonMarker();
    // Either add single location with lat, lng
View Full Code Here

TOP

Related Classes of de.fhpotsdam.unfolding.UnfoldingMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.