Package org.neshan.mapsdk.model
Class Polygon
- java.lang.Object
 - 
- org.neshan.mapsdk.internal.elements.MapElement
 - 
- org.neshan.mapsdk.model.Polygon
 
 
 
- 
public class Polygon extends org.neshan.mapsdk.internal.elements.MapElementA polygon that can be drawn on aMapView 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.carto.vectorelements.VectorElementgetRealElement()org.neshan.mapsdk.internal.elements.MapElementsetBaseProjection(com.carto.projections.Projection baseProjection) 
 - 
 
- 
- 
Constructor Detail
- 
Polygon
public Polygon(java.util.ArrayList<LatLng> points, com.carto.styles.PolygonStyle polygonStyle)
- Parameters:
 points- list of points that define the outline of the polygonpolygonStyle-
 
- 
Polygon
public Polygon(java.util.ArrayList<LatLng> points, java.util.ArrayList<LatLng> holes, com.carto.styles.PolygonStyle polygonStyle)
- Parameters:
 points- list of points that define the outline of the polygonholes- A hole is a region inside the polygon that is not filled. A hole is specified in exactly the same way as the outline.polygonStyle-
 
 - 
 
- 
Method Detail
- 
setBaseProjection
public org.neshan.mapsdk.internal.elements.MapElement setBaseProjection(com.carto.projections.Projection baseProjection)
- Specified by:
 setBaseProjectionin classorg.neshan.mapsdk.internal.elements.MapElement
 
- 
getRealElement
public com.carto.vectorelements.VectorElement getRealElement() throws NullProjectionException- Specified by:
 getRealElementin classorg.neshan.mapsdk.internal.elements.MapElement- Throws:
 NullProjectionException
 
 - 
 
 -