Package org.neshan.mapsdk.model
Class Polyline
- java.lang.Object
-
- org.neshan.mapsdk.internal.elements.MapElement
-
- org.neshan.mapsdk.model.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.
-
-
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)
-
-
-
Constructor Detail
-
Polyline
public Polyline(java.util.ArrayList<LatLng> points, com.carto.styles.LineStyle lineStyle)
- Parameters:
points
- list of points to draw line between themlineStyle
- 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 classorg.neshan.mapsdk.internal.elements.MapElement
-
getRealElement
public com.carto.vectorelements.VectorElement getRealElement() throws NullProjectionException
- Specified by:
getRealElement
in classorg.neshan.mapsdk.internal.elements.MapElement
- Throws:
NullProjectionException
-
getPoints
public java.util.ArrayList<LatLng> getPoints()
-
-