DJI Mobile SDK Documentation

      class MapPolylineOptions

      @Keep
      class MapPolylineOptions implements Parcelable
      Package:dji.open.pilot.base.manager.map
      Description:

      Polyline configuration of a map widget element.

      Supported since MSDK 5.20.1

      Class Members:
      method
      method getAlpha
      float getAlpha() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the alpha of the polyline.

      Supported since MSDK 5.20.1

      Return:
      floatAlpha value (0.0-1.0).
      method
      method setAlpha
      void setAlpha(float alpha) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets the alpha of the polyline.

      Supported since MSDK 5.20.1

      Input Parameters:
      float alphaAlpha value (0.0-1.0).
      method
      method getPoints
      List<OpenLocation> getPoints() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the vertex geographic location list of the polyline.

      Supported since MSDK 5.20.1

      Return:
      List<OpenLocation>Open location information list.
      method
      method setPoints
      void setPoints(List<OpenLocation> points) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets the vertex geographic location list of the polyline.

      Supported since MSDK 5.20.1

      Input Parameters:
      List<OpenLocation> pointsOpen location information list.
      method
      method getWidth
      float getWidth() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the width of the polyline.

      Supported since MSDK 5.20.1

      Return:
      floatWidth value (in pixels).
      method
      method setWidth
      void setWidth(float width) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets the width of the polyline.

      Supported since MSDK 5.20.1

      Input Parameters:
      float widthWidth value (in pixels).
      method
      method getColor
      int getColor() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the color of the polyline.

      Supported since MSDK 5.20.1

      Return:
      intColor value (ARGB format).
      method
      method setColor
      void setColor(int color) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets the color of the polyline.

      Supported since MSDK 5.20.1

      Input Parameters:
      int colorColor value (ARGB format).
      method isClickable
      boolean isClickable() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Determines whether the polyline is clickable.

      Supported since MSDK 5.20.1

      Return:
      booleantrue means clickable, false means not clickable.
      method setClickable
      void setClickable(boolean clickable) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets whether the polyline is clickable.

      Supported since MSDK 5.20.1

      Input Parameters:
      boolean clickabletrue means clickable, false means not clickable.
      method getDashLength
      float getDashLength() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the dash segment length of the polyline (valid when it is dashed).

      Supported since MSDK 5.20.1

      Return:
      floatDash segment length value (in pixels).
      method setDashLength
      void setDashLength(float dashLength) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets the dash segment length of the polyline (valid when it is dashed).

      Supported since MSDK 5.20.1

      Input Parameters:
      float dashLengthDash segment length value (in pixels).
      method
      method isDashed
      boolean isDashed() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Determines whether the polyline is dashed.

      Supported since MSDK 5.20.1

      Return:
      booleantrue means dashed, false means solid.
      method
      method setDashed
      void setDashed(boolean dashed) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets whether the polyline is dashed.

      Supported since MSDK 5.20.1

      Input Parameters:
      boolean dashedtrue means dashed, false means solid.