DJI Mobile SDK Documentation

class DJICameraPosition

class DJICameraPosition
Package:com.dji.mapkit.core.models
Description:

The position of the camera.

Class Members:
method DJICameraPosition
DJICameraPosition(DJILatLng target, float zoom, float tilt, float bearing)
Package:com.dji.mapkit.core.models
Description:

Creates a new camera position with the given coordinates, zoom level, tilt, and bearing.

Input Parameters:
DJILatLng targetThe position of the center point.
float zoomThe zoom level between 0 and 20. 0 is the lowest zoom level which will show the entire map, and 20 is the highest zoom level.
float tiltThe tilt of the camera.
float bearingThe orientation of the camera.
method DJICameraPosition
DJICameraPosition(DJILatLng position, float zoom)
Package:com.dji.mapkit.core.models
Description:

Creates a new camera position with the given coordinates and zoom level.

Input Parameters:
DJILatLng positionThe position of the center point.
float zoomThe zoom level between 0 and 20. 0 is the lowest zoom level which will show the entire map, and 20 is the highest zoom level.
method getPosition
DJILatLng getPosition()
Package:com.dji.mapkit.core.models
Description:

Gets the position of the center point of the camera.

Return:
DJILatLngThe position of the center point of the camera.
method
method getZoom
float getZoom()
Package:com.dji.mapkit.core.models
Description:

Gets the zoom level of the camera.

Return:
floatThe zoom level of the camera.
method
method getTilt
float getTilt()
Package:com.dji.mapkit.core.models
Description:

Gets the tilt of the camera.

Return:
floatThe tilt of the camera.
method getBearing
float getBearing()
Package:com.dji.mapkit.core.models
Description:

Gets the orientation of the camera.

Return:
floatThe orientation of the camera.