DJI Mobile SDK Documentation

      class MapPolygonOptions

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

      Polygon configuration of a map widget element.

      Supported since MSDK 5.20.1

      Class Members:
      method
      method getPoints
      List<OpenLocation> getPoints() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the vertex geographic location list of the polygon.

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

      Supported since MSDK 5.20.1

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

      Gets the alpha of the polygon.

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

      Supported since MSDK 5.20.1

      Input Parameters:
      float alphaAlpha value (0.0-1.0).
      method
      method getWidth
      float getWidth() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the border width of the polygon.

      Supported since MSDK 5.20.1

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

      Sets the border width of the polygon.

      Supported since MSDK 5.20.1

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

      Gets the border color of the polygon.

      Supported since MSDK 5.20.1

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

      Sets the border color of the polygon.

      Supported since MSDK 5.20.1

      Input Parameters:
      int strokeColorBorder color value (ARGB format).
      method getFillColor
      int getFillColor() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the fill color of the polygon.

      Supported since MSDK 5.20.1

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

      Sets the fill color of the polygon.

      Supported since MSDK 5.20.1

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

      Determines whether the polygon is visible.

      Supported since MSDK 5.20.1

      Return:
      booleantrue means visible, false means hidden.
      method setVisible
      void setVisible(boolean visible) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets whether the polygon is visible.

      Supported since MSDK 5.20.1

      Input Parameters:
      boolean visibletrue means visible, false means hidden.