Package de.fhpotsdam.unfolding

Examples of de.fhpotsdam.unfolding.UnfoldingMap


  UnfoldingMap map;

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

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


  BarScaleUI barScale;

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

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

    // add a bar scale to your map
    barScale = new BarScaleUI(this, map, 700, 20);
View Full Code Here

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

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

    List<Feature> features = GeoRSSReader.loadDataGeoRSS(this, earthquakesURL);
    MarkerFactory markerFactory = new MarkerFactory();
View Full Code Here

  float rectSizeDiff;

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

    map = new UnfoldingMap(this);
    map.setTweening(true);
    MapUtils.createDefaultEventDispatcher(this, map);
  }
View Full Code Here

      size(800, 600, OPENGL);
    } else {
      size(800, 600);
    }

    map = new UnfoldingMap(this, "map1", 50, 50, 700, 500);
    map.setTweening(false);
    map.zoomToLevel(3);
    MapUtils.createDefaultEventDispatcher(this, map);
  }
View Full Code Here

    } else {
      size(800, 600, OPENGL);
    }

    // Init the map
    map = new UnfoldingMap(this);

    EventDispatcher eventDispatcher = new EventDispatcher();
    // Create multitouch input handler, and register map to listen to pan and zoom events.
    tuioCursorHandler = new TuioCursorHandler(this, map);
    eventDispatcher.addBroadcaster(tuioCursorHandler);
View Full Code Here

  Location indonesiaLocation = new Location(-6.175, 106.82);

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

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

    List<Feature> countries = GeoJSONReader.loadData(this, "data/countries.geo.json");
    List<Marker> countryMarkers = MapUtils.createSimpleMarkers(countries);
View Full Code Here

      println("This only works for Applications!");
    }
    size(800, 600, OPENGL);
    frame.setResizable(true);

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

    oldWidth = width;
    oldHeight = height;
View Full Code Here

  DebugDisplay debugDisplay2;

  public void setup() {
    size(1024, 768, OPENGL);

    map1 = new UnfoldingMap(this, "map1", 0, 0, 512, height);
    map1.zoomAndPanTo(new Location(52.5f, 13.4f), 10);
    map2 = new UnfoldingMap(this, "map2", 512, 0, 512, height, true, false, new Microsoft.AerialProvider());
    EventDispatcher eventDispatcher = MapUtils.createDefaultEventDispatcher(this, map1, map2);

    // Create debug displays
    debugDisplay1 = new DebugDisplay(this, map1, eventDispatcher, 10, 10);
    debugDisplay2 = new DebugDisplay(this, map2, eventDispatcher, 522, 10);
View Full Code Here

  UnfoldingMap map3;

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

    map1 = new UnfoldingMap(this, new Google.GoogleMapProvider());
    map2 = new UnfoldingMap(this, new Microsoft.AerialProvider());
    map3 = new UnfoldingMap(this, new OpenStreetMap.CloudmadeProvider(MapDisplayFactory.OSM_API_KEY, 23058));

    MapUtils.createDefaultEventDispatcher(this, map1, map2, map3);

    currentMap = map1;
  }
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.