DJI Mobile SDK Documentation

      class MapMarkerOptions

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

      Marker configuration of a map widget element.

      Supported since MSDK 5.20.1

      Class Members:
      method
      method getPoint
      OpenLocation getPoint() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the open location information of the marker.

      Supported since MSDK 5.20.1

      Return:
      OpenLocationOpen location information.
      method
      method setPoint
      void setPoint(OpenLocation point) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets the open location information of the marker.

      Supported since MSDK 5.20.1

      Input Parameters:
      OpenLocation pointOpen location information object.
      method isDraggable
      boolean isDraggable() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Determines whether the marker is draggable.

      Supported since MSDK 5.20.1

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

      Sets whether the marker is draggable.

      Supported since MSDK 5.20.1

      Input Parameters:
      boolean draggabletrue means draggable, false means not draggable.
      method getRotation
      float getRotation() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the rotation angle of the marker.

      Supported since MSDK 5.20.1

      Return:
      floatRotation angle value (in degrees).
      method setRotation
      void setRotation(float rotation) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets the rotation angle of the marker.

      Supported since MSDK 5.20.1

      Input Parameters:
      float rotationRotation angle value (in degrees).
      method
      method getAnchor
      PointF getAnchor() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the anchor position of the marker.

      Supported since MSDK 5.20.1

      Return:
      PointFAnchor coordinates (the position ratio relative to the top-left corner of the icon; the default [0.5, 0.5] indicates the center of the icon).
      method
      method setAnchor
      void setAnchor(PointF anchor) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets the anchor position of the marker.

      Supported since MSDK 5.20.1

      Input Parameters:
      PointF anchorAnchor coordinates (the position ratio relative to the top-left corner of the icon).
      method
      method getTitle
      String getTitle() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the title text of the marker.

      Supported since MSDK 5.20.1

      Return:
      StringTitle text content.
      method
      method setTitle
      void setTitle(String title) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets the title text of the marker.

      Supported since MSDK 5.20.1

      Input Parameters:
      String titleTitle text content.
      method getDescription
      String getDescription() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the description of the marker.

      Supported since MSDK 5.20.1

      Return:
      StringDescription text content.
      method setDescription
      void setDescription(String description) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets the description of the marker.

      Supported since MSDK 5.20.1

      Input Parameters:
      String descriptionDescription text content.
      method isClickable
      boolean isClickable() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Determines whether the marker 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 marker is clickable.

      Supported since MSDK 5.20.1

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

      Determines whether the marker 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 marker is visible.

      Supported since MSDK 5.20.1

      Input Parameters:
      boolean visibletrue means visible, false means hidden.
      method getNormalIConFileName
      String getNormalIConFileName() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the default icon file name of the marker.

      Supported since MSDK 5.20.1

      Return:
      StringDefault icon file name.
      method setNormalIConFileName
      void setNormalIConFileName(String normalIConFileName) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets the default icon file name of the marker.

      Supported since MSDK 5.20.1

      Input Parameters:
      String normalIConFileNameDefault icon file name.
      method getClickedIConFileName
      String getClickedIConFileName() 
      Package:dji.open.pilot.base.manager.map
      Description:

      Gets the clicked-state icon file name of the marker.

      Supported since MSDK 5.20.1

      Return:
      StringClicked-state icon file name.
      method setClickedIConFileName
      void setClickedIConFileName(String clickedIConFileName) 
      Package:dji.open.pilot.base.manager.map
      Description:

      Sets the clicked-state icon file name of the marker.

      Supported since MSDK 5.20.1

      Input Parameters:
      String clickedIConFileNameClicked-state icon file name.