class DJIPolylineOptions
class DJIPolylineOptions extends BasePointCollection
Package: com.dji.mapkit.core.models.annotations Inherits From: BasePointCollection
Description:
Represents a set of instructions for creating a new DJIPolyline
. This object can be passed to DJIPolylineOptions
to add a new polyline to a map. Each method returns the object itself so that they can be used in a builder pattern.
Class Members:
method DJIPolylineOptions
Package: com.dji.mapkit.core.models.annotations
Description:
Creates a new DJIPolylineOptions
object.
method width
DJIPolylineOptions width (float width)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the width the new polyline will have when added to the map.
float width The width of the polyline in pixels.
Return:
method zIndex
DJIPolylineOptions zIndex (float zIndex)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the zIndex the new polyline will have when added to the map.
float zIndex The zIndex of the polyline.
Return:
method color
DJIPolylineOptions color (@ColorInt int color)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the color the new polyline will have when added to the map.
@ColorInt int color The color of the polyline.
Return:
method geodesic
DJIPolylineOptions geodesic (boolean geodesic)
Package: com.dji.mapkit.core.models.annotations
Description:
Indicates whether the polyline will be drawn as geodesic when added to the map. Supported by AMaps and Google Maps.
boolean geodesic Whether the polyline will be drawn as geodesic.
Return:
method visible
DJIPolylineOptions visible (boolean visible)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the visibility the new polyline will have when added to the map.
boolean visible The visibility of the polyline.
Return:
method setDashed
DJIPolylineOptions setDashed (boolean dashed)
Package: com.dji.mapkit.core.models.annotations
Description:
Indicates whether the new polyline will be dashed when added to the map.
boolean dashed Whether the polyline is dashed.
Return:
method setDashLength
DJIPolylineOptions setDashLength (float length)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the dash length in pixels the new polyline will have when added to the map. Not supported by AMaps.
float length The dash length in pixels of the polyline.
Return:
method add
DJIPolylineOptions add (DJILatLng point)
Package: com.dji.mapkit.core.models.annotations
Description:
Adds the given point to the polyline.
DJILatLng point The coordinates of the point to add.
Return:
method add
DJIPolylineOptions add (DJILatLng... points)
Package: com.dji.mapkit.core.models.annotations
Description:
Adds the given points to the polyline.
DJILatLng ... points The coordinates of the points to add.
Return:
method addAll
DJIPolylineOptions addAll (List<DJILatLng> points)
Package: com.dji.mapkit.core.models.annotations
Description:
Adds the given points to the polyline.
List<DJILatLng > points The coordinates of the points to add.
Return: