Class Polyline


  • public class Polyline
    extends org.neshan.mapsdk.internal.elements.MapElement
    A polyline is a list of points, where line segments are drawn between consecutive points.
    • Field Summary

      • Fields inherited from class org.neshan.mapsdk.internal.elements.MapElement

        META_DATA_ID_KEY, META_DATA_MARKER_ID_KEY, META_DATA_TYPE_KEY, uuid
    • Constructor Summary

      Constructors 
      Constructor Description
      Polyline​(java.util.ArrayList<LatLng> points, com.carto.styles.LineStyle lineStyle)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.ArrayList<LatLng> getPoints()  
      com.carto.vectorelements.VectorElement getRealElement()  
      org.neshan.mapsdk.internal.elements.MapElement setBaseProjection​(com.carto.projections.Projection baseProjection)  
      • Methods inherited from class org.neshan.mapsdk.internal.elements.MapElement

        getUuid
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Polyline

        public Polyline​(java.util.ArrayList<LatLng> points,
                        com.carto.styles.LineStyle lineStyle)
        Parameters:
        points - list of points to draw line between them
        lineStyle - line stroke style ( color, thickness , ... )
    • Method Detail

      • setBaseProjection

        public org.neshan.mapsdk.internal.elements.MapElement setBaseProjection​(com.carto.projections.Projection baseProjection)
        Specified by:
        setBaseProjection in class org.neshan.mapsdk.internal.elements.MapElement
      • getRealElement

        public com.carto.vectorelements.VectorElement getRealElement()
                                                              throws NullProjectionException
        Specified by:
        getRealElement in class org.neshan.mapsdk.internal.elements.MapElement
        Throws:
        NullProjectionException
      • getPoints

        public java.util.ArrayList<LatLng> getPoints()