Camera
open class Camera
Content copied to clipboard
Represents a composite class comprised of tilt, orientation, zoom level and center point for a Map.
Types
Camera Model
Link copied to clipboard
abstract class CameraModel : Camera.PositionChangedListener, Camera.ModeChangedListener
Content copied to clipboard
Mode Changed Listener
Link copied to clipboard
Movement Mode
Link copied to clipboard
Available camera movement modes.
Position Changed Listener
Link copied to clipboard
Rotation Mode
Link copied to clipboard
Available camera rotation modes.
Functions
calculate From Map Rectangle
Link copied to clipboard
open fun calculateFromMapRectangle(@NonNull mapRectangle: MapRectangle, @NonNull mapCenter: MapCenter, @FloatRange(from = "-180.0", to = 180.0 ) rotation: Float, tilt: Float, @FloatRange(from = 0.0, to = Float.MAX_VALUE ) maxZoomLevel: Float): CameraState.PositionOrientation
Content copied to clipboard
Calculates CameraState.
drag By
Link copied to clipboard
get Camera 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 Camera Rotation Mode
Link copied to clipboard
Returns mode how the camera rotation should behave when the vehicle is moving.
get Local Rotation
Link copied to clipboard
get Local Translation
Link copied to clipboard
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
Return the point of map on the screen which will be recognized as map center for rotation and vehicle position
get Map Padding
Link copied to clipboard
Return current map padding
get Map Rectangle
Link copied to clipboard
get Min Max Zoom Level
Link copied to clipboard
Returns the minimum a maximum value of zoom levels
get Position
Link copied to clipboard
Return camera GeoCoordinates on the map.
get Rotation
Link copied to clipboard
Return the rotation of map in degrees.
get Zoom Level
Link copied to clipboard
Returns the zoom value from range (0 - 20.0) with an animation.
set Camera Movement Mode
Link copied to clipboard
Sets how camera should move when the vehicle is moving - ff is following vehicle or not.
set Camera Rotation Mode
Link copied to clipboard
Sets how the camera rotation should behave when the vehicle is moving.
set Local Rotation
Link copied to clipboard
open fun setLocalRotation(@NonNull point: Point3F, @NonNull anim: MapAnimation)
Content copied to clipboard
set Local Translation
Link copied to clipboard
open fun setLocalTranslation(@NonNull point: Point3F, @NonNull anim: MapAnimation)
Content copied to clipboard
set Map Center Settings
Link copied to clipboard
open fun setMapCenterSettings(@NonNull settings: MapCenterSettings, @NonNull initialAnim: 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(@NonNull padding: RectF, @NonNull anim: MapAnimation)
Content copied to clipboard
Sets the padding of the map from left, top, right and bottom.
set Map Rectangle
Link copied to clipboard
open fun setMapRectangle(@NonNull rectangle: MapRectangle, @NonNull animation: MapAnimation)
Content copied to clipboard
Sets the position to rectangle on map specified by MapRectangle rectangle with margin.
set Position
Link copied to clipboard
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
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 Tilt
Link copied to clipboard
Sets the tilt of map in degrees with an animation.
set Zoom Level
Link copied to clipboard
open fun setZoomLevel(@FloatRange(from = 0.0, to = Float.MAX_VALUE ) zoomLevel: Float, @NonNull animation: MapAnimation)
Content copied to clipboard
Sets the zoom value from range (0 - 20.0).
tilt By
Link copied to clipboard