Package de.fhpotsdam.unfolding.data

Examples of de.fhpotsdam.unfolding.data.MarkerFactory


    MapUtils.createDefaultEventDispatcher(this, map);

    // Load from GeoRSS file
    List<Feature> features = GeoRSSReader.loadData(this, "data/bbc-georss-test.xml");
    // Create (display) markers from (data) features
    MarkerFactory markerFactory = new MarkerFactory();
    markerFactory.setPointClass(LabeledMarker.class);
    List<Marker> markers = markerFactory.createMarkers(features);
    // Add markers to map
    map.addMarkers(markers);

    // Use property 'title' as label
    populateMarkerLabels(markers);
View Full Code Here


   *            The features to get markers for.
   * @return A list of markers.
   */
  public static List<Marker> createSimpleMarkers(List<Feature> features) {
    if (markerFactory == null) {
      markerFactory = new MarkerFactory();
    }
    return markerFactory.createMarkers(features);
  }
View Full Code Here

    for (Feature feature : countries) {
      if (feature.getId().equalsIgnoreCase("CAN") || feature.getId().equalsIgnoreCase("USA")) {
        selectedCountries.add(feature);
      }
    }
    MarkerFactory markerFactory = new MarkerFactory();
    markerFactory.setPolygonClass(DistancePerLocationPolygonMarker.class);
    countryMarkers = markerFactory.createMarkers(selectedCountries);
    map.addMarkers(countryMarkers);
  }
View Full Code Here

    map.zoomToLevel(2);
    MapUtils.createDefaultEventDispatcher(this, map);

    List<Feature> countries = GeoJSONReader.loadData(this, "data/countries.geo.json");

    MarkerFactory markerFactory = new MarkerFactory();
    markerFactory.setPolygonClass(CentroidLabelMarker.class);
    List<Marker> countryMarkers = markerFactory.createMarkers(countries);

    map.addMarkers(countryMarkers);
  }
View Full Code Here

    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();
    markerFactory.setLineClass(ColoredLinesMarker.class);
    List<Marker> markers = markerFactory.createMarkers(features);
    map.addMarkers(markers);
  }
View Full Code Here

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

    List<Feature> features = GeoRSSReader.loadDataGeoRSS(this, earthquakesURL);
    MarkerFactory markerFactory = new MarkerFactory();
    markerFactory.setPointClass(EarthquakeMarker.class);
    List<Marker> markers = markerFactory.createMarkers(features);
    map.addMarkers(markers);
  }
View Full Code Here

TOP

Related Classes of de.fhpotsdam.unfolding.data.MarkerFactory

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.