Package de.fhpotsdam.unfolding

Examples of de.fhpotsdam.unfolding.UnfoldingMap


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

    map = new UnfoldingMap(this);
    map.zoomToLevel(3);
    map.panTo(new Location(40f, -98f));
    MapUtils.createDefaultEventDispatcher(this, map);

    Location berlinLocation = new Location(40f, -98f);
View Full Code Here


  UnfoldingMap map;

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

    map = new UnfoldingMap(this);
    Location location = new Location(52.52, 13.38);

    Coordinate coord = map.mapDisplay.getMapProvider().locationCoordinate(location).zoomTo(14);
    String quadKey = Microsoft.toQuadKey(coord);
    println("QuadKey: " + quadKey + " for location: " + location);
View Full Code Here

  UnfoldingMap map2;

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

    map1 = new UnfoldingMap(this, "map1", 10, 10, 385, 580, true, false, new Microsoft.AerialProvider());
    map2 = new UnfoldingMap(this, "map2", 405, 10, 385, 580, true, false, new OpenStreetMap.CloudmadeProvider(
        "1a1b06b230af4efdbb989ea99e9841af", 999));
    MapUtils.createDefaultEventDispatcher(this, map1, map2);
  }
View Full Code Here

  float animationSpeed = 0.05f;

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

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

    // Calculate distance and bearing between the two locations.
    totalDist = (float) GeoUtils.getDistance(startLocation, endLocation);
View Full Code Here

  float tolerance = 1;

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

    map = new UnfoldingMap(this, new StamenMapProvider.Toner());
    MapUtils.createDefaultEventDispatcher(this, map);

    List<Feature> countries = GeoJSONReader.loadData(this, "data/countries.geo.json");
    for (Feature country : countries) {
      if ("Germany".equals(country.getStringProperty("name"))) {
View Full Code Here

  float tolerance = 4;

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

    map = new UnfoldingMap(this, new StamenMapProvider.Toner());
    // MapUtils.createDefaultEventDispatcher(this, map);

    EventDispatcher eventDispatcher = new EventDispatcher();
    MouseHandler mouseHandler = new MouseHandler(this, map);
    eventDispatcher.addBroadcaster(mouseHandler);
View Full Code Here

  MapDisplayShader shader;

  public void setup() {
    size(600, 600, OPENGL);
    map = new UnfoldingMap(this, 100, 100, 400, 400);
    MapUtils.createDefaultEventDispatcher(this, map);

    List<Feature> features = GeoRSSReader.loadDataGeoRSS(this, earthquakesURL);
    List<Marker> markers = MapUtils.createSimpleMarkers(features);
    for (Marker m : markers) {
View Full Code Here

  PGraphics mask;
  MaskedMapDisplayShader mapDisplayShader;

  public void setup() {
    size(830, 420, OPENGL);
    map = new UnfoldingMap(this, "map1", 10, 10, 400, 400, true, false, null);
    MapUtils.createDefaultEventDispatcher(this, map);

    mapDisplayShader = new MaskedMapDisplayShader(this, 400, 400);
    ((OpenGLMapDisplay) map.mapDisplay).setMapDisplayShader(mapDisplayShader);
View Full Code Here

  MaskedMapDisplayShader mapDisplayShader;

  public void setup() {
    size(400, 400, OPENGL);
    map = new UnfoldingMap(this);
    MapUtils.createDefaultEventDispatcher(this, map);

    PImage maskImage = loadImage("test/mask-circular.png");
    mapDisplayShader = new MaskedMapDisplayShader(this, 400, 400, maskImage);
    ((OpenGLMapDisplay) map.mapDisplay).setMapDisplayShader(mapDisplayShader);
View Full Code Here

  BlurredMapDisplayShader mapDisplayShader;

  public void setup() {
    size(800, 600, OPENGL);
    map = new UnfoldingMap(this, 100, 100, 600, 400);
    MapUtils.createDefaultEventDispatcher(this, map);

    mapDisplayShader = new BlurredMapDisplayShader(this);
    ((OpenGLMapDisplay) map.mapDisplay).setMapDisplayShader(mapDisplayShader);
  }
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.