Package de.fhpotsdam.unfolding

Examples of de.fhpotsdam.unfolding.UnfoldingMap


  UnfoldingMap map;

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

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

    // Load from GeoRSS file
    List<Feature> features = GeoRSSReader.loadData(this, "data/bbc-georss-test.xml");
View Full Code Here


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

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

    MyLinesMarker lineMarker = new MyLinesMarker(new Location(10, 10), new Location(12, 20));
    map.addMarkers(lineMarker);
View Full Code Here

  SimplePointMarker berlinMarker;

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

    map = new UnfoldingMap(this);

    map.zoomToLevel(3);
    map.panTo(new Location(40f, -42f));
    MapUtils.createDefaultEventDispatcher(this, map);
View Full Code Here

  UnfoldingMap map;

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

    map = new UnfoldingMap(this);
    map.zoomToLevel(11);
    map.panTo(new Location(52.53f, 13.4f));
    MapUtils.createDefaultEventDispatcher(this, map);

    initMarkers();
View Full Code Here

  List<Marker> countryMarkers = new ArrayList<Marker>();

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

    map = new UnfoldingMap(this);
    map.zoomToLevel(2);
    map.panTo(new Location(58.631217f, -101.601562f));
    MapUtils.createDefaultEventDispatcher(this, map);

    initPolygons();
View Full Code Here

  public void setup() {
    size(800, 600, P2D);
    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

  UnfoldingMap map;

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

    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");
View Full Code Here

  float oldZoomLevel = 0;

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

    map = new UnfoldingMap(this);
    map.zoomAndPanTo(new Location(41.50, -72.38), 5);
   
    MapUtils.createDefaultEventDispatcher(this, map);

    markerManager = populateMarkerManager();
View Full Code Here

  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

    List<ScopedListeners> scopedListenersList = eventDispatcher.typedScopedListeners.get(mapEvent.getType());
    for (ScopedListeners scopedListeners : scopedListenersList) {
      if (scopedListeners.isInScope(mapEvent)) {
        for (MapEventListener listener : scopedListeners.listeners) {
          if (listener instanceof UnfoldingMap) {
            UnfoldingMap listeningMap = (UnfoldingMap) listener;
            if (map.getId().equals(listeningMap.getId())) {

              if (mapEvent.getSubType().equals(PanMapEvent.PAN_BY)) {
                panByListened = 1;
              }
              if (mapEvent.getSubType().equals(PanMapEvent.PAN_TO)) {
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.