class DJIPolygon
| Package: | com.dji.mapkit.core.models.annotations |
Description:
A polygon that exists on a map object. To add a new polygon to a map, see DJIPolygonOptions.
Class Members:
method remove
| Package: | com.dji.mapkit.core.models.annotations |
Description:
Removes the polygon from the map it is on.
method setVisible
void setVisible(boolean visible)
|
| Package: | com.dji.mapkit.core.models.annotations |
Description:
Changes the visibility of the polygon.
| boolean visible | true if the polygon is visible, false if it is hidden. |
method isVisible
| Package: | com.dji.mapkit.core.models.annotations |
Description:
Gets the visibility of the polygon.
Return:
| boolean | true if the polygon is visible, false if it is hidden. |
method setPoints
void setPoints(List<DJILatLng> points)
|
| Package: | com.dji.mapkit.core.models.annotations |
Description:
Sets the points of the polygon.
| List<DJILatLng> points | The points of the polygon. |
method getPoints
List<DJILatLng> getPoints()
|
| Package: | com.dji.mapkit.core.models.annotations |
Description:
Gets the points of the polygon.
Return:
method setFillColor
void setFillColor(@ColorInt int color)
|
| Package: | com.dji.mapkit.core.models.annotations |
Description:
Sets the fill color of the polygon.
| @ColorInt int color | The fill color of the polygon. |
method getFillColor
@ColorInt int getFillColor()
|
| Package: | com.dji.mapkit.core.models.annotations |
Description:
The fill color of the polygon.
Return:
| int | The fill color of the polygon. |
method setStrokeColor
void setStrokeColor(@ColorInt int color)
|
| Package: | com.dji.mapkit.core.models.annotations |
Description:
Sets the stroke color of the polygon.
| @ColorInt int color | The stroke color of the polygon. |
method getStrokeColor
@ColorInt int getStrokeColor()
|
| Package: | com.dji.mapkit.core.models.annotations |
Description:
Gets the stroke color of the polygon.
Return:
| int | The stroke color of the polygon. |
method setStrokeWidth
void setStrokeWidth(float strokeWidth)
|
| Package: | com.dji.mapkit.core.models.annotations |
Description:
Sets the stroke width of the polygon.
| float strokeWidth | The stroke width of the polygon. |
method getStrokeWidth
| Package: | com.dji.mapkit.core.models.annotations |
Description:
Gets the stroke width of the polygon.
Return:
| float | The stroke width of the polygon. |