public final class Polygon extends MultiPoint<Polygon,PolygonStyle>
Polygon feature. The Polygon draws filled polygon with three or more coordinates, the first and last coordinate can't be the same.
Usage example:
Polygon polygon = new Polygon(context, "My Polygon").setCoordinates(coordinates)
MapController.putFeature(polygon);
Copyright (c) 2017 Nexusgeographics All rights reserved.
MapController
,
PolygonStyle
,
Feature
,
Geometry
,
MultiPoint
Constructor and Description |
---|
Polygon(android.content.Context context)
Instantiates a new Line.
|
Polygon(android.content.Context context,
java.lang.String name)
Instantiates a new Line.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
equals, getCoordinates, hashCode, setCoordinates
getStyle, setStyle
compareTo, getContext, getId, getInfo, getName, isCreated, remove, setInfo
addObserver, removeObserver
public Polygon(@NonNull android.content.Context context)
context
- the contextpublic Polygon(@NonNull android.content.Context context, @NonNull java.lang.String name)
context
- the contextname
- the feature namepublic java.lang.String toString()
toString
in class Geometry<Polygon,PolygonStyle>