Simple Camera Data Model
Functions
add Mode Changed Listener
Link copied to clipboard
add Position Changed Listener
Link copied to clipboard
Adds listener for Camera.PositionChangedListener methods.
get Local Rotation
Link copied to clipboard
Retrieves orientation of a camera on each axis
get Local Translation
Link copied to clipboard
Retrieves position offset of a camera on each axis
get Map Center
Link copied to clipboard
Return the point of map on the screen which will be recognized as map center for rotation and vehicle position
get Map Center Settings
Link copied to clipboard
Returns the map center (point for rotation axis and vehicle position) for locked and unlocked map state.
get Map Padding
Link copied to clipboard
get Map Rectangle
Link copied to clipboard
get Movement Mode
Link copied to clipboard
Returns mode how camera should move when the vehicle is moving - if it is following the vehicle or not.
get Position
Link copied to clipboard
Returns camera GeoCoordinates on the map.
get Rotation
Link copied to clipboard
Returns the rotation of map in degrees.
get Rotation Mode
Link copied to clipboard
Returns mode how the camera rotation should behave when the vehicle is moving.
get Tilt
Link copied to clipboard
Returns the tilt of map in degrees.
get Zoom Level
Link copied to clipboard
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.
on Movement Mode Changed
Link copied to clipboard
on Position Change Completed
Link copied to clipboard
on Position Changed
Link copied to clipboard
open fun onPositionChanged(geoCenter: GeoCoordinates, zoom: Float, rotation: Float, tilt: Float)
Content copied to clipboard
abstract fun onPositionChanged(geoCenter: GeoCoordinates, zoom: Float, rotation: Float, tilt: Float)
Content copied to clipboard
on Restore Instance
Link copied to clipboard
on Rotation Mode Changed
Link copied to clipboard
on Save Instance
Link copied to clipboard
remove Mode Changed Listener
Link copied to clipboard
remove Position Changed Listener
Link copied to clipboard
fun removePositionChangedListener(listener: Camera.PositionChangedListener)
Content copied to clipboard
Removes listener for Camera.PositionChangedListener methods.
set Camera State
Link copied to clipboard
set Local Rotation
Link copied to clipboard
open fun setLocalRotation(@NonNull angles: Point3F, @NonNull animation: MapAnimation)
Content copied to clipboard
Rotates orientation of a camera on each axis
set Local Translation
Link copied to clipboard
open fun setLocalTranslation(@NonNull offset: Point3F, @NonNull animation: MapAnimation)
Content copied to clipboard
Offsets position of a camera on each axis
set Map Center Settings
Link copied to clipboard
open fun setMapCenterSettings(settings: MapCenterSettings, @NonNull animation: MapAnimation)
Content copied to clipboard
Sets the map center (point for rotation axis and vehicle position) for locked and unlocked map state.
set Map Padding
Link copied to clipboard
open fun setMapPadding(left: Float, top: Float, right: Float, bottom: Float, @NonNull animation: MapAnimation)
Content copied to clipboard
set Map Rectangle
Link copied to clipboard
open fun setMapRectangle(@NonNull mapRectangle: MapRectangle, @NonNull animation: MapAnimation)
Content copied to clipboard
fun setMapRectangle(@NonNull boundingBox: GeoBoundingBox, @FloatRange(from = 0.0, to = 1.0 ) leftMarginPerc: Float, @FloatRange(from = 0.0, to = 1.0 ) topMarginPerc: Float, @FloatRange(from = 0.0, to = 1.0 ) rightMarginPerc: Float, @FloatRange(from = 0.0, to = 1.0 ) bottomMarginPerc: Float)
Content copied to clipboard
fun setMapRectangle(@NonNull boundingBox: GeoBoundingBox, leftMarginPx: Int, topMarginPx: Int, rightMarginPx: Int, bottomMarginPx: Int)
Content copied to clipboard
open fun setMapRectangle(@NonNull boundingBox: GeoBoundingBox, @FloatRange(from = 0.0, to = 1.0 ) leftMarginPerc: Float, @FloatRange(from = 0.0, to = 1.0 ) topMarginPerc: Float, @FloatRange(from = 0.0, to = 1.0 ) rightMarginPerc: Float, @FloatRange(from = 0.0, to = 1.0 ) bottomMarginPerc: Float, @NonNull animation: MapAnimation)
Content copied to clipboard
open fun setMapRectangle(@NonNull boundingBox: GeoBoundingBox, leftMarginPx: Int, topMarginPx: Int, rightMarginPx: Int, bottomMarginPx: Int, @NonNull animation: MapAnimation)
Content copied to clipboard
open fun setMapRectangle(@NonNull boundingBox: GeoBoundingBox, @FloatRange(from = 0.0, to = 1.0 ) leftMarginPerc: Float, @FloatRange(from = 0.0, to = 1.0 ) topMarginPerc: Float, @FloatRange(from = 0.0, to = 1.0 ) rightMarginPerc: Float, @FloatRange(from = 0.0, to = 1.0 ) bottomMarginPerc: Float, @FloatRange(from = 0.0, to = 20.0 ) maxZoom: Float, @NonNull animation: MapAnimation)
Content copied to clipboard
open fun setMapRectangle(@NonNull boundingBox: GeoBoundingBox, leftMarginPx: Int, topMarginPx: Int, rightMarginPx: Int, bottomMarginPx: Int, @FloatRange(from = 0.0, to = 20.0 ) maxZoom: Float, @NonNull animation: MapAnimation)
Content copied to clipboard
set Movement Mode
Link copied to clipboard
Sets how camera should move when the vehicle is moving - ff is following vehicle or not.
set Position
Link copied to clipboard
Move camera to given GeoCoordinates on the map.
open fun setPosition(@NonNull position: GeoCoordinates, @NonNull animation: MapAnimation)
Content copied to clipboard
Move camera to given position GeoCoordinates on the map with an animation.
set Rotation
Link copied to clipboard
fun setRotation(@FloatRange(from = "-180.0", to = 180.0 ) rotation: Float)
Content copied to clipboard
Sets the rotation of map in degrees
open fun setRotation(@FloatRange(from = "-180.0", to = 180.0 ) rotation: Float, @NonNull animation: MapAnimation)
Content copied to clipboard
Sets the rotation of map in degrees.
set Rotation Mode
Link copied to clipboard
Sets how the camera rotation should behave when the vehicle is moving.
set Tilt
Link copied to clipboard
open fun setTilt(@FloatRange(from = 0, to = 90 ) tilt: Float, @NonNull animation: MapAnimation)
Content copied to clipboard
Sets the tilt of map in degrees with an animation.
set Zoom Level
Link copied to clipboard
fun setZoomLevel(@FloatRange(from = 0, to = Float.MAX_VALUE ) zoom: Float)
Content copied to clipboard
open fun setZoomLevel(@FloatRange(from = 0, to = Float.MAX_VALUE ) zoom: Float, @NonNull animation: MapAnimation)
Content copied to clipboard
Sets the zoom value from range (0 - 20.0).