DJI Mobile SDK Documentation

      class MapElement

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

      Map element.

      Supported since MSDK 5.20.1

      Class Members:
      method
      method getId
      UUID getId() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the unique identifier of the map element.

      Supported since MSDK 5.20.1

      Return:
      UUIDElement ID of UUID type.
      method
      method getPoints
      List<OpenLocation> getPoints() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the coordinate point collection of the map element.

      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 coordinate point collection of the map element.

      Supported since MSDK 5.20.1

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

      Gets the drawer type of the map element.

      Supported since MSDK 5.20.1

      Return:
      MapDrawerTypeMap drawer type enumeration value.
      method setDrawerType
      void setDrawerType(MapDrawerType drawerType) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets the drawer type of the map element.

      Supported since MSDK 5.20.1

      Input Parameters:
      MapDrawerType drawerTypeMap drawer type enumeration value.
      method
      method getColor
      MapElementColor getColor() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the color of the map element.

      Supported since MSDK 5.20.1

      Return:
      MapElementColorMap element color enumeration value.
      method
      method setColor
      void setColor(MapElementColor color) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets the color of the map element.

      Supported since MSDK 5.20.1

      Input Parameters:
      MapElementColor colorMap element color enumeration value.
      method
      method getName
      String getName() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the name of the map element.

      Supported since MSDK 5.20.1

      Return:
      StringElement name string.
      method
      method setName
      void setName(String name) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets the name of the map element.

      Supported since MSDK 5.20.1

      Input Parameters:
      String nameElement name string.
      method
      method isArShow
      boolean isArShow() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Determines whether the map element is displayed in AR mode.

      Supported since MSDK 5.20.1

      Return:
      booleantrue means displayed in AR mode, false means not displayed.
      method
      method setArShow
      void setArShow(boolean arShow) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets whether the map element is displayed in AR mode.

      Supported since MSDK 5.20.1

      Input Parameters:
      boolean arShowtrue means displayed in AR mode, false means not displayed.