class DJIPolygonOptions
class DJIPolygonOptions extends BasePointCollection
Package: com.dji.mapkit.core.models.annotations Inherits From: BasePointCollection
Description:
Represents a set of instructions for creating a new DJIPolygon
. This object can be passed to DJIPolygonOptions
to add a new polygon to a map. Each method returns the object itself so that they can be used in a builder pattern.
Class Members:
method DJIPolygonOptions
Package: com.dji.mapkit.core.models.annotations
Description:
Creates a new DJIPolygonOptions
object.
method strokeWidth
DJIPolygonOptions strokeWidth (float width)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the stroke width the new polygon will have when added to the map.
float width The stroke width of the polygon in pixels.
Return:
method zIndex
DJIPolygonOptions zIndex (float zIndex)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the zIndex the new polygon will have when added to the map.
float zIndex The zIndex of the polygon.
Return:
method strokeColor
DJIPolygonOptions strokeColor (@ColorInt int color)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the stroke color the new polygon will have when added to the map.
@ColorInt int color The stroke color of the polygon.
Return:
method fillColor
DJIPolygonOptions fillColor (@ColorInt int color)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the fill color the new polygon will have when added to the map.
@ColorInt int color The fill color of the polygon.
Return:
method add
DJIPolygonOptions add (DJILatLng point)
Package: com.dji.mapkit.core.models.annotations
Description:
Adds the given point to the polygon.
DJILatLng point The coordinates of the point to add.
Return:
method add
DJIPolygonOptions add (DJILatLng... points)
Package: com.dji.mapkit.core.models.annotations
Description:
Adds the given points to the polygon.
DJILatLng ... points The coordinates of the points to add.
Return:
method addAll
DJIPolygonOptions addAll (List<DJILatLng> points)
Package: com.dji.mapkit.core.models.annotations
Description:
Adds the given points to the polygon.
List<DJILatLng > points The coordinates of the points to add.
Return: