class DJIMarker
Package: | com.dji.mapkit.core.models.annotations |
Description:
A marker that exists on a map object. To add a new marker to a map, see DJIMarkerOptions
.
Class Members:
method setPosition
void setPosition(DJILatLng latLng)
|
Package: | com.dji.mapkit.core.models.annotations |
Description:
Sets the coordinates of the marker.
method setRotation
void setRotation(float rotation)
|
Package: | com.dji.mapkit.core.models.annotations |
Description:
Changes the rotation of the marker.
float rotation | The new rotation. |
method setIcon
void setIcon(DJIBitmapDescriptor bitmap)
|
Package: | com.dji.mapkit.core.models.annotations |
Description:
Changes the icon of the marker.
DJIBitmapDescriptor bitmap | The new icon. |
method setAnchor
void setAnchor(float u, float v)
|
Package: | com.dji.mapkit.core.models.annotations |
Description:
Sets the anchor point of the marker image.
float u | Horizontal distance, normalized to [0, 1], of the anchor from the left edge. |
float v | Vertical distance, normalized to [0, 1], of the anchor from the top edge. |
method getPosition
Package: | com.dji.mapkit.core.models.annotations |
Description:
Gets the position of the marker.
Return:
method setTitle
void setTitle(String title)
|
Package: | com.dji.mapkit.core.models.annotations |
Description:
Changes the title of the marker.
String title | The new title. |
method getTitle
Package: | com.dji.mapkit.core.models.annotations |
Description:
Gets the title of the marker.
Return:
String | The title of the marker. |
method setVisible
void setVisible(boolean visible)
|
Package: | com.dji.mapkit.core.models.annotations |
Description:
Changes the visibility of the marker.
boolean visible | true if the marker is visible, false if it is hidden. |
method isVisible
Package: | com.dji.mapkit.core.models.annotations |
Description:
Gets the visibility of the marker.
Return:
boolean | true if the marker is visible, false if it is hidden. |
method remove
Package: | com.dji.mapkit.core.models.annotations |
Description:
Removes the marker from the map it is on.
method setTag
Package: | com.dji.mapkit.core.models.annotations |
Description:
Sets the tag which is an object associated with the marker.
Object o | An object associated with the marker. |
method getTag
Package: | com.dji.mapkit.core.models.annotations |
Description:
Gets the tag.
Return:
Object | An object associated with the marker. |
method setDraggable
void setDraggable(boolean draggable)
|
Package: | com.dji.mapkit.core.models.annotations |
Description:
Sets the draggability of the marker.
boolean draggable | The draggability of the marker. |
method isDraggable
Package: | com.dji.mapkit.core.models.annotations |
Description:
Gets the draggability of the marker.
Return:
boolean | The draggability of the marker. |