SimpleCameraDataModel

open class SimpleCameraDataModel : Camera.CameraModel

Functions

addModeChangedListener
Link copied to clipboard
fun addModeChangedListener(listener: Camera.ModeChangedListener)
addPositionChangedListener
Link copied to clipboard
fun addPositionChangedListener(listener: Camera.PositionChangedListener)
Adds listener for Camera.PositionChangedListener methods.
drag
Link copied to clipboard
fun drag(xFrom: Float, yFrom: Float, xTo: Float, yTo: Float): Boolean
open fun drag(xFrom: Float, yFrom: Float, xTo: Float, yTo: Float, animation: MapAnimation): Boolean
dragBy
Link copied to clipboard
fun dragBy(x: Float, y: Float): Boolean
open fun dragBy(x: Float, y: Float, animation: MapAnimation): Boolean
getLocalRotation
Link copied to clipboard
open fun getLocalRotation(): Point3F
Retrieves orientation of a camera on each axis
getLocalTranslation
Link copied to clipboard
open fun getLocalTranslation(): Point3F
Retrieves position offset of a camera on each axis
getMapCenter
Link copied to clipboard
open fun getMapCenter(): MapCenter
Return the point of map on the screen which will be recognized as map center for rotation and vehicle position
getMapCenterSettings
Link copied to clipboard
open fun getMapCenterSettings(): MapCenterSettings
Returns the map center (point for rotation axis and vehicle position) for locked and unlocked map state.
getMapPadding
Link copied to clipboard
open fun getMapPadding(): RectF
getMapRectangle
Link copied to clipboard
open fun getMapRectangle(): MapRectangle
getMovementMode
Link copied to clipboard
open fun getMovementMode(): Int
Returns mode how camera should move when the vehicle is moving - if it is following the vehicle or not.
getPosition
Link copied to clipboard
open fun getPosition(): GeoCoordinates
Returns camera GeoCoordinates on the map.
getRotation
Link copied to clipboard
open fun getRotation(): Float
Returns the rotation of map in degrees.
getRotationMode
Link copied to clipboard
open fun getRotationMode(): Int
Returns mode how the camera rotation should behave when the vehicle is moving.
getTilt
Link copied to clipboard
open fun getTilt(): Float
Returns the tilt of map in degrees.
getZoomLevel
Link copied to clipboard
open fun getZoomLevel(): Float
Returns the zoom value from range (0 - 20.0)The zoom level determines how "close" the map view is to the surface of the Earth.
onMovementModeChanged
Link copied to clipboard
open fun onMovementModeChanged(mode: Int)
abstract fun onMovementModeChanged(mode: Int)
onPositionChangeCompleted
Link copied to clipboard
open fun onPositionChangeCompleted()
onPositionChanged
Link copied to clipboard
open fun onPositionChanged(geoCenter: GeoCoordinates, zoom: Float, rotation: Float, tilt: Float)
abstract fun onPositionChanged(geoCenter: GeoCoordinates, zoom: Float, rotation: Float, tilt: Float)
onRestoreInstance
Link copied to clipboard
open fun onRestoreInstance(@Nullable() inState: Bundle)
onRotationModeChanged
Link copied to clipboard
open fun onRotationModeChanged(mode: Int)
abstract fun onRotationModeChanged(mode: Int)
onSaveInstance
Link copied to clipboard
open fun onSaveInstance(@Nullable() camera: Camera, @NonNull() outState: Bundle)
removeModeChangedListener
Link copied to clipboard
fun removeModeChangedListener(listener: Camera.ModeChangedListener)
removePositionChangedListener
Link copied to clipboard
fun removePositionChangedListener(listener: Camera.PositionChangedListener)
Removes listener for Camera.PositionChangedListener methods.
rotateBy
Link copied to clipboard
fun rotateBy(angle: Float, @NonNull() focus: PointF): Boolean
open fun rotateBy(angle: Float, @NonNull() focus: PointF, @NonNull() animation: MapAnimation): Boolean
setCameraState
Link copied to clipboard
open fun setCameraState(cameraState: CameraState)
setLocalRotation
Link copied to clipboard
open fun setLocalRotation(@NonNull() angles: Point3F, @NonNull() animation: MapAnimation)
Rotates orientation of a camera on each axis
setLocalTranslation
Link copied to clipboard
open fun setLocalTranslation(@NonNull() offset: Point3F, @NonNull() animation: MapAnimation)
Offsets position of a camera on each axis
setMapCenterSettings
Link copied to clipboard
fun setMapCenterSettings(settings: MapCenterSettings)
open fun setMapCenterSettings(settings: MapCenterSettings, @NonNull() animation: MapAnimation)
Sets the map center (point for rotation axis and vehicle position) for locked and unlocked map state.
setMapPadding
Link copied to clipboard
fun setMapPadding(rect: RectF)
open fun setMapPadding(rect: RectF, @NonNull() animation: MapAnimation)
fun setMapPadding(left: Float, top: Float, right: Float, bottom: Float)
open fun setMapPadding(left: Float, top: Float, right: Float, bottom: Float, @NonNull() animation: MapAnimation)
setMapRectangle
Link copied to clipboard
fun setMapRectangle(@NonNull() mapRectangle: MapRectangle)
open fun setMapRectangle(@NonNull() mapRectangle: MapRectangle, @NonNull() animation: MapAnimation)
fun setMapRectangle(@NonNull() boundingBox: GeoBoundingBox, leftMarginPerc: Float, topMarginPerc: Float, rightMarginPerc: Float, bottomMarginPerc: Float)
fun setMapRectangle(@NonNull() boundingBox: GeoBoundingBox, leftMarginPx: Int, topMarginPx: Int, rightMarginPx: Int, bottomMarginPx: Int)
open fun setMapRectangle(@NonNull() boundingBox: GeoBoundingBox, leftMarginPerc: Float, topMarginPerc: Float, rightMarginPerc: Float, bottomMarginPerc: Float, @NonNull() animation: MapAnimation)
open fun setMapRectangle(@NonNull() boundingBox: GeoBoundingBox, leftMarginPx: Int, topMarginPx: Int, rightMarginPx: Int, bottomMarginPx: Int, @NonNull() animation: MapAnimation)
abstract fun setMapRectangle(@NonNull() boundingBox: GeoBoundingBox, leftMarginPerc: Float, topMarginPerc: Float, rightMarginPerc: Float, bottomMarginPerc: Float, @NonNull() animation: MapAnimation)
abstract fun setMapRectangle(@NonNull() boundingBox: GeoBoundingBox, leftMarginPx: Int, topMarginPx: Int, rightMarginPx: Int, bottomMarginPx: Int, @NonNull() animation: MapAnimation)
open fun setMapRectangle(@NonNull() boundingBox: GeoBoundingBox, leftMarginPerc: Float, topMarginPerc: Float, rightMarginPerc: Float, bottomMarginPerc: Float, maxZoom: Float, @NonNull() animation: MapAnimation)
open fun setMapRectangle(@NonNull() boundingBox: GeoBoundingBox, leftMarginPx: Int, topMarginPx: Int, rightMarginPx: Int, bottomMarginPx: Int, maxZoom: Float, @NonNull() animation: MapAnimation)
abstract fun setMapRectangle(@NonNull() boundingBox: GeoBoundingBox, leftMarginPerc: Float, topMarginPerc: Float, rightMarginPerc: Float, bottomMarginPerc: Float, maxZoom: Float, @NonNull() animation: MapAnimation)
abstract fun setMapRectangle(@NonNull() boundingBox: GeoBoundingBox, leftMarginPx: Int, topMarginPx: Int, rightMarginPx: Int, bottomMarginPx: Int, maxZoom: Float, @NonNull() animation: MapAnimation)
setMovementMode
Link copied to clipboard
open fun setMovementMode(movementMode: Int)
Sets how camera should move when the vehicle is moving - ff is following vehicle or not.
setPosition
Link copied to clipboard
fun setPosition(@NonNull() position: GeoCoordinates)
Move camera to given GeoCoordinates on the map.
open fun setPosition(@NonNull() position: GeoCoordinates, @NonNull() animation: MapAnimation)
Move camera to given position GeoCoordinates on the map with an animation.
setRotation
Link copied to clipboard
fun setRotation(rotation: Float)
Sets the rotation of map in degrees
open fun setRotation(rotation: Float, @NonNull() animation: MapAnimation)
Sets the rotation of map in degrees.
setRotationMode
Link copied to clipboard
open fun setRotationMode(rotationMode: Int)
Sets how the camera rotation should behave when the vehicle is moving.
setTilt
Link copied to clipboard
fun setTilt(tilt: Float)
open fun setTilt(tilt: Float, @NonNull() animation: MapAnimation)
Sets the tilt of map in degrees with an animation.
setZoomLevel
Link copied to clipboard
fun setZoomLevel(zoom: Float)
Sets the zoom value from range (0 - 20.0).The zoom level determines how "close" the map view is to the surface of the Earth.
open fun setZoomLevel(zoom: Float, @NonNull() animation: MapAnimation)
Sets the zoom value from range (0 - 20.0).The zoom level determines how "close" the map view is to the surface of the Earth.
tiltBy
Link copied to clipboard
fun tiltBy(angle: Float): Boolean
open fun tiltBy(angle: Float, @NonNull() animation: MapAnimation): Boolean
zoomBy
Link copied to clipboard
fun zoomBy(scale: Float, @NonNull() focus: PointF): Boolean
open fun zoomBy(scale: Float, @NonNull() focus: PointF, @NonNull() animation: MapAnimation): Boolean