DJI Mobile SDK Documentation

class DJIMarkerOptions

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
DJIMarkerOptions()
Package:com.dji.mapkit.core.models.annotations
Description:

Creates a new DJIMarkerOptions object.

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

Input Parameters:
DJILatLng positionThe coordinates of the Marker
Return:
DJIMarkerOptionsThe DJIMarkerOptions object.
method
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.

Input Parameters:
DJIBitmapDescriptor bitmapThe icon of the Marker.
Return:
DJIMarkerOptionsThe DJIMarkerOptions object.
method
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.

Input Parameters:
float rotationThe rotation of the Marker.
Return:
DJIMarkerOptionsThe DJIMarkerOptions object.
method
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.

Input Parameters:
boolean visibleThe visibility of the Marker.
Return:
DJIMarkerOptionsThe DJIMarkerOptions object.
method
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.

Input Parameters:
String titleThe title of the Marker.
Return:
DJIMarkerOptionsThe DJIMarkerOptions object.