Package de.fhpotsdam.unfolding

Examples of de.fhpotsdam.unfolding.UnfoldingMap


  public void setup() {

    size(650, 440, OPENGL);

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

    // INIT GEONAMES
    WebService.setUserName("username"); // add your username here
View Full Code Here


  UnfoldingMap map;

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

    map = new UnfoldingMap(this, "map");
    map.zoomToLevel(4);
    map.panTo(new Location(50f, 12f));
    MapUtils.createDefaultEventDispatcher(this, map);

    SimplePolygonMarker franceMarker = new SimplePolygonMarker(getFranceShapeLocations());
View Full Code Here

  UnfoldingMap map2;

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

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

    map2 = new UnfoldingMap(this, "map", 575, 50, 150, 150);
    MapUtils.createDefaultEventDispatcher(this, map2);

    List<Feature> features = GeoRSSReader.loadData(this, "data/bbc-georss-test.xml");
    List<Marker> markers = createLabeledMarkers(features);
    map1.addMarkers(markers);
View Full Code Here

  List<String> specialIDs = new ArrayList<String>(Arrays.asList(ids));

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

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

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

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

    map = new UnfoldingMap(this, 0, 0, 400, 400, new StamenMapProvider.WaterColor());
    map.zoomAndPanTo(new Location(51.507222, -0.1275), 10);

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

  UnfoldingMap map;

  public void setup() {
    size(800, 600, OPENGL);
    map = new UnfoldingMap(this, new Microsoft.AerialProvider());
    map.zoomToLevel(3);
    MapUtils.createDefaultEventDispatcher(this, map);
  }
View Full Code Here

  UnfoldingMap map;
  CompassUI compass;

  public void setup() {
    size(800, 600, OPENGL);
    map = new UnfoldingMap(this);
    map.zoomAndPanTo(new Location(52.5f, 13.4f), 10);
//    MapUtils.createDefaultEventDispatcher(this, map);

    compass = new CompassUI(this, map);
  }
View Full Code Here

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

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

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

  UnfoldingMap map;

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

    map = new UnfoldingMap(this, new MBTilesMapProvider(mbTilesString));
    MapUtils.createDefaultEventDispatcher(this, map);
    map.setZoomRange(1, 3);
  }
View Full Code Here

  Location startLocation = new Location(52.49f, 13.44f);

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

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

    List<Feature> features = GPXSpeedReader.loadData(this, "data/bike-tour.gpx");
    MarkerFactory markerFactory = new MarkerFactory();
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.