class DJIMap
Package: | com.dji.mapkit.core.maps |
Description:
The public interface of map object.
Class Members:
method addMarker
@NonNull DJIMarker addMarker(DJIMarkerOptions markerOptions)
|
Package: | com.dji.mapkit.core.maps |
Description:
Adds a marker to this map.
Return:
DJIMarker | The marker that was added to the map. |
method getMap
Package: | com.dji.mapkit.core.maps |
Description:
Gets the base Map Object. This will enable all the features available by default in each Map Provider
Return:
method animateCamera
void animateCamera(DJICameraUpdate cameraUpdate)
|
Package: | com.dji.mapkit.core.maps |
Description:
Moves the camera position with default animation.
DJICameraUpdate cameraUpdate | The change to apply to the camera. |
method setOnCameraChangeListener
void setOnCameraChangeListener(final OnCameraChangeListener listener)
|
Package: | com.dji.mapkit.core.maps |
Description:
Sets the OnCameraChangeListener
which can listen to camera changes.
method setOnMarkerClickListener
void setOnMarkerClickListener(OnMarkerClickListener listener)
|
Package: | com.dji.mapkit.core.maps |
Description:
Sets the
which can listen to click events on the map's markers.
OnMarkerClickListener listener | The listener that is added to this map. |
method setOnMapClickListener
void setOnMapClickListener(OnMapClickListener listener)
|
Package: | com.dji.mapkit.core.maps |
Description:
Sets the
.
OnMapClickListener listener | The listener that is added to this map. |
method setOnMarkerDragListener
void setOnMarkerDragListener(OnMarkerDragListener listener)
|
Package: | com.dji.mapkit.core.maps |
Description:
Sets the map's
.
OnMarkerDragListener listener | The listener that is added to this map. |
method removeAllOnCameraChangeListeners
void removeAllOnCameraChangeListeners()
|
Package: | com.dji.mapkit.core.maps |
Description:
Removes all instances of OnCameraChangeListener
from the map.
method removeOnMarkerClickListener
void removeOnMarkerClickListener(OnMarkerClickListener listener)
|
Package: | com.dji.mapkit.core.maps |
Description:
Removes the
from the map.
OnMarkerClickListener listener | The listener to remove. |
method removeOnMapClickListener
void removeOnMapClickListener(OnMapClickListener listener)
|
Package: | com.dji.mapkit.core.maps |
Description:
Removes the
from the map.
OnMapClickListener listener | The listener to remove. |
method removeOnMarkerDragListener
void removeOnMarkerDragListener(OnMarkerDragListener listener)
|
Package: | com.dji.mapkit.core.maps |
Description:
Removes the
from the map.
OnMarkerDragListener listener | The listener to remove. |
method removeAllOnMarkerDragListener
void removeAllOnMarkerDragListener()
|
Package: | com.dji.mapkit.core.maps |
Description:
Removes all instances of
from the map.
Get Camera Position
method
method getCameraPosition
DJICameraPosition getCameraPosition()
|
Package: | com.dji.mapkit.core.maps |
Description:
Gets the camera position.
Return:
method moveCamera
void moveCamera(DJICameraUpdate cameraUpdate)
|
Package: | com.dji.mapkit.core.maps |
Description:
Moves the camera position.
DJICameraUpdate cameraUpdate | The camera position. |
method setMapType
void setMapType(MapType type)
|
Package: | com.dji.mapkit.core.maps |
Description:
Sets the map type of this map.
MapType type | The map type that the map will be set to. |
method setMapType
void setMapType(MapType type, OnMapTypeLoadedListener listener)
|
Package: | com.dji.mapkit.core.maps |
Description:
Sets the map type of this map with an OnMapTypeLoadedListener
which can listen to the event when the map type is finished loading.
MapType type | The map type that the map will be set to. |
OnMapTypeLoadedListener listener | The listener that is added to this map. |
method addPolyline
@NonNull DJIPolyline addPolyline(DJIPolylineOptions options)
|
Package: | com.dji.mapkit.core.maps |
Description:
Adds a polyline.
Return:
method addPolygon
@Nullable DJIPolygon addPolygon(DJIPolygonOptions options)
|
Package: | com.dji.mapkit.core.maps |
Description:
Adds a polygon.
Return:
method addSingleCircle
@Nullable DJICircle addSingleCircle(DJICircleOptions options)
|
Package: | com.dji.mapkit.core.maps |
Description:
Adds a circle.
Return:
method getUiSettings
DJIUiSettings getUiSettings()
|
Package: | com.dji.mapkit.core.maps |
Description:
Gets the UI Settings.
Return:
unknown
Package: | com.dji.mapkit.core.maps |
Description:
The overall representation of the map.
unknown
interface OnMarkerClickListener
|
Package: | com.dji.mapkit.core.maps |
Description:
Listener on the marker click event.
unknown
interface OnMapClickListener
|
Package: | com.dji.mapkit.core.maps |
Description:
Listener on the map click event.
unknown
interface OnMarkerDragListener
|
Package: | com.dji.mapkit.core.maps |
Description:
Listener on the marker drag event.