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

    List<Feature> countries = GeoJSONReader.loadData(this, "data/countries.geo.json");
    List<Marker> countryMarkers = MapUtils.createSimpleMarkers(countries);
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);
    List<Marker> markers = MapUtils.createSimpleMarkers(features);
View Full Code Here

  public void setup() {
    size(800, 600, OPENGL);
    smooth();
    font = createFont("sans-serif", 14);

    map = new UnfoldingMap(this, "map", 0, 0, 600, 600);
    map.setTweening(true);
    map.zoomToLevel(3);
    MapUtils.createDefaultEventDispatcher(this, map);
  }
View Full Code Here

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

    map = new UnfoldingMap(this, new StamenMapProvider.TonerBackground());
    map.zoomToLevel(11);
    map.panTo(bostonLocation);
    map.setZoomRange(9, 17); // prevent zooming too far out
    map.setPanningRestriction(bostonLocation, 50);
    MapUtils.createDefaultEventDispatcher(this, map);
View Full Code Here

  Location boundBottomRight = new Location(52.0, 14.5);

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

    map = new UnfoldingMap(this);
    map.zoomAndPanTo(new Location(52.5, 13.4f), 10);
    map.setZoomRange(10, 12);
    MapUtils.createDefaultEventDispatcher(this, map);
  }
View Full Code Here

  public void setup() {
    size(800, 600, OPENGL);
    smooth();
    font = createFont("sans-serif", 14);

    mapDetail = new UnfoldingMap(this, "detail", 10, 10, 585, 580);
    mapDetail.setTweening(true);
    mapDetail.zoomToLevel(4);
    mapOverview = new UnfoldingMap(this, "overview", 605, 10, 185, 185);
   
    eventDispatcher = MapUtils.createDefaultEventDispatcher(this, mapDetail);
    eventDispatcher.register(mapOverview, "pan", mapDetail.getId(), mapOverview.getId());
    eventDispatcher.register(mapOverview, "zoom", mapDetail.getId(), mapOverview.getId());
  }
View Full Code Here

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

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

    // Load country polygons and adds them as markers
View Full Code Here

    smooth();

    eventDispatcher = new EventDispatcher();

    // OSM --------------------------------------------
    mapOSM = new UnfoldingMap(this, "mapOSM", 10, 10, 400, 335);

    // OSM to Satellite
    mapOSMSmall = new UnfoldingMap(this, "mapOSMSmall", 420, 10, 260, 335);

    mapOSMSmallSatBlend = new UnfoldingMap(this, "mapOSMSmallSatBlend", 690, 10, 260, 335, true, false,
        new Microsoft.AerialProvider());
    mapOSMSmallOSMBlend = new UnfoldingMap(this, "mapOSMSmallOSMBlend", 690, 10, 260, 335);

    // FIXME MS Satellite maps may not be smaller than tile-size. Why? (This is new!)
    mapOSMSmallSat = new UnfoldingMap(this, "mapOSMSmallSat", 960, 10, 260, 335, true, false,
        new Microsoft.AerialProvider());

    // Google -----------------------------------------
    mapGoogle = new UnfoldingMap(this, "maoGoogle", 10, 355, 400, 335, true, false,
        new Google.GoogleMapProvider());

    // Google to Satellite
    mapGoogleSmall = new UnfoldingMap(this, "mapGoogleSmall", 420, 355, 260, 335, true, false,
        new Google.GoogleMapProvider());

    mapGoogleSmallSatBlend = new UnfoldingMap(this, "mapGoogleSmallSatBlend", 690, 355, 260, 335, true,
        false, new Microsoft.AerialProvider());
    mapGoogleSmallGoogleBlend = new UnfoldingMap(this, "mapGoogleSmallGoogleBlend", 690, 355, 260, 335,
        true, false, new Google.GoogleMapProvider());

    mapGoogleSmallSat = new UnfoldingMap(this, "mapGoogleSmallSat", 960, 355, 260, 335, true, false,
        new Microsoft.AerialProvider());

    // First OSM and first google map are broadcasters
    MouseHandler mouseHandler = new MouseHandler(this, mapOSM, mapGoogle);
    eventDispatcher.addBroadcaster(mouseHandler);
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.OSMGrayProvider());
    MapUtils.createDefaultEventDispatcher(this, map1, map2);
  }
View Full Code Here

  OverviewPlusDetailConnection kiteConnection;

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

    mapStatic = new UnfoldingMap(this, "static", 0, 0, 800, 600);
    // MapUtils.createDefaultEventDispatcher(this, mapStatic);

    mapZoom = new UnfoldingMap(this, "zoom", 400, 300, 150, 150);
    mapZoom.setTweening(false);
    mapZoom.zoomToLevel(6);

    kiteConnection = new KiteConnection(this);
  }
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.