Package de.fhpotsdam.unfolding.marker

Examples of de.fhpotsdam.unfolding.marker.SimpleLinesMarker


    // Point Markers
    berlinMarker = new SimplePointMarker(berlinLocation);
    SimplePointMarker mexicoCityMarker = new SimplePointMarker(mexicoCityLocation);
    // Line Marker
    SimpleLinesMarker connectionMarker = new SimpleLinesMarker(berlinLocation, mexicoCityLocation);

    markerManager.addMarker(berlinMarker);
    markerManager.addMarker(mexicoCityMarker);
    markerManager.addMarker(connectionMarker);
  }
View Full Code Here


    // Point Markers
    SimplePointMarker berlinMarker = new SimplePointMarker(berlinLocation);
    SimplePointMarker mexicoCityMarker = new SimplePointMarker(mexicoCityLocation);
    // Line Marker
    SimpleLinesMarker connectionMarker = new SimpleLinesMarker(berlinLocation, mexicoCityLocation);

    // Add Markers to the maps default MarkerManager
    map.addMarkers(berlinMarker, mexicoCityMarker, connectionMarker);
   
    // Adapt style
View Full Code Here

    // Create marker from features, and use LINE property to color the markers.
    List<Marker> transitMarkers = new ArrayList<Marker>();
    for (Feature feature : transitLines) {
      ShapeFeature lineFeature = (ShapeFeature) feature;

      SimpleLinesMarker m = new SimpleLinesMarker(lineFeature.getLocations());
      String lineColor = lineFeature.getStringProperty("LINE");
      int color = 0;
      // Original MBTA colors
      if (lineColor.equals("BLUE")) {
        color = color(44, 91, 167);
      }
      if (lineColor.equals("RED")) {
        color = color(233, 57, 35);
      }
      if (lineColor.equals("GREEN")) {
        color = color(59, 130, 79);
      }
      if (lineColor.equals("SILVER")) {
        color = color(154, 156, 157);
      }
      if (lineColor.equals("ORANGE")) {
        color = color(238, 137, 40);
      }
      m.setColor(color);
      m.setStrokeWeight(5);
      transitMarkers.add(m);
    }

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

TOP

Related Classes of de.fhpotsdam.unfolding.marker.SimpleLinesMarker

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.