class DJIMarkerOptions
Package: com.dji.mapkit.core.models.annotations
Description:
Represents a set of instructions for creating a new DJIMarker
. This object can be passed to DJIMarkerOptions
to add a new marker to a map. Each method returns the object itself so that they can be used in a builder pattern.
Class Members:
method DJIMarkerOptions
Package: com.dji.mapkit.core.models.annotations
Description:
Creates a new DJIMarkerOptions
object.
method draggable
DJIMarkerOptions draggable (boolean draggable)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the draggability the new marker will have when added to the map.
boolean draggable The draggability of the marker.
Return:
method position
DJIMarkerOptions position (DJILatLng position)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the position the new marker will have when added to the map.
DJILatLng position The coordinates of the marker.
Return:
method anchor
DJIMarkerOptions anchor (@FloatRange(from = 0 , to = 1 ) float u, @FloatRange (from = 0 , to = 1 ) float v)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the anchor point the marker image will have when added to the map. The default is (0.5, 0.5).
@FloatRange(from = 0, to = 1) float u Horizontal distance, normalized to [0, 1], of the anchor from the left edge. @FloatRange(from = 0, to = 1) float v Vertical distance, normalized to [0, 1], of the anchor from the top edge.
Return:
method icon
DJIMarkerOptions icon (DJIBitmapDescriptor bitmap)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the icon the new marker will have when added to the map.
DJIBitmapDescriptor bitmap The icon of the marker.
Return:
method rotation
DJIMarkerOptions rotation (float rotation)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the rotation the new marker will have when added to the map.
float rotation The rotation of the marker.
Return:
method zIndex
DJIMarkerOptions zIndex (int zIndex)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the zIndex the new marker will have when added to the map.
int zIndex The zIndex of the marker.
Return:
method visible
DJIMarkerOptions visible (boolean visible)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the visibility the new marker will have when added to the map.
boolean visible The visibility of the marker.
Return:
method title
DJIMarkerOptions title (String title)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets the title the new marker will have when added to the map.
String title The title of the marker.
Return:
method flat
DJIMarkerOptions flat (boolean flat)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets whether the marker should be flat against the map when added to the map. Only supported by AMaps and Google Maps.
boolean flat true
if the marker should be flat against the map, false
if the marker should be a billboard facing the camera.
Return:
method setInfoWindowEnable
DJIMarkerOptions setInfoWindowEnable (boolean infoWindowEnable)
Package: com.dji.mapkit.core.models.annotations
Description:
Sets whether the info window is enabled for the new marker when added to the map. Only supported by AMaps.
boolean infoWindowEnable Whether the info window is enabled for the marker.
Return: