DJI Mobile SDK Documentation

class DJIPolyline

interface DJIPolyline
Package:com.dji.mapkit.core.models.annotations
Description:

A polyline that exists on a map object. To add a new polyline to a map, see DJIPolylineOptions.

Class Members:
method
method remove
void remove()
Package:com.dji.mapkit.core.models.annotations
Description:

Removes the polyline from the map it is on.

method
method setWidth
void setWidth(float width)
Package:com.dji.mapkit.core.models.annotations
Description:

Sets the width of the polyline.

Input Parameters:
float widthThe width of the polyline.
method
method getWidth
float getWidth()
Package:com.dji.mapkit.core.models.annotations
Description:

Gets the width of the polyline.

Return:
floatThe width of the polyline.
method
method setPoints
void setPoints(List<DJILatLng> points)
Package:com.dji.mapkit.core.models.annotations
Description:

Sets the points of the polyline.

Input Parameters:
List<DJILatLng> pointsThe points of the polyline.
method
method getPoints
List<DJILatLng> getPoints()
Package:com.dji.mapkit.core.models.annotations
Description:

Gets the points of the polyline.

Return:
List<DJILatLng>The points of the polyline.
method
method setColor
void setColor(@ColorInt int color)
Package:com.dji.mapkit.core.models.annotations
Description:

Sets the color of the polyline.

Input Parameters:
@ColorInt int colorThe color of the polyline.
method
method getColor
@ColorInt
int getColor()
Package:com.dji.mapkit.core.models.annotations
Description:

Gets the color of the polyline.

Return:
intThe color of the polyline.
method
method setZIndex
void setZIndex(float zIndex)
Package:com.dji.mapkit.core.models.annotations
Description:

Sets the zIndex of the polyline.

Input Parameters:
float zIndexThe zIndex of the polyline.
method
method getZIndex
float getZIndex()
Package:com.dji.mapkit.core.models.annotations
Description:

Gets the zIndex of the polyline.

Return:
floatThe zIndex of the polyline.