DJI Mobile SDK Documentation

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
DJIPolylineOptions()
Package:com.dji.mapkit.core.models.annotations
Description:

Creates a new DJIPolylineOptions object.

method
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.

Input Parameters:
float widthThe width of the polyline in pixels.
Return:
DJIPolylineOptionsThe DJIPolylineOptions object.
method
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.

Input Parameters:
float zIndexThe zIndex of the polyline.
Return:
DJIPolylineOptionsThe DJIPolylineOptions object.
method
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.

Input Parameters:
@ColorInt int colorThe color of the polyline.
Return:
DJIPolylineOptionsThe DJIPolylineOptions object.
method
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.

Input Parameters:
boolean geodesicWhether the polyline will be drawn as geodesic.
Return:
DJIPolylineOptionsThe DJIPolylineOptions object.
method
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.

Input Parameters:
boolean visibleThe visibility of the polyline.
Return:
DJIPolylineOptionsThe DJIPolylineOptions object.
method
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.

Input Parameters:
boolean dashedWhether the polyline is dashed.
Return:
DJIPolylineOptionsThe DJIPolylineOptions object.
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.

Input Parameters:
float lengthThe dash length in pixels of the polyline.
Return:
DJIPolylineOptionsThe DJIPolylineOptions object.
method
method add
DJIPolylineOptions add(DJILatLng point)
Package:com.dji.mapkit.core.models.annotations
Description:

Adds the given point to the polyline.

Input Parameters:
DJILatLng pointThe coordinates of the point to add.
Return:
DJIPolylineOptionsThe DJIPolylineOptions object.
method
method add
DJIPolylineOptions add(DJILatLng... points)
Package:com.dji.mapkit.core.models.annotations
Description:

Adds the given points to the polyline.

Input Parameters:
DJILatLng... pointsThe coordinates of the points to add.
Return:
DJIPolylineOptionsThe DJIPolylineOptions object.
method
method addAll
DJIPolylineOptions addAll(List<DJILatLng> points)
Package:com.dji.mapkit.core.models.annotations
Description:

Adds the given points to the polyline.

Input Parameters:
List<DJILatLng> pointsThe coordinates of the points to add.
Return:
DJIPolylineOptionsThe DJIPolylineOptions object.