FreeCameraOptions

Various options for accessing physical properties of the underlying camera entity. A direct access to these properties allows more flexible and precise controlling of the camera while also being fully compatible and interchangeable with CameraOptions. All fields are optional.

Functions

Link copied to clipboard
Helper function for getting current altitude in meters
Link copied to clipboard
open fun getLocation(): Point
Helper function for getting current mercator position as Lat&Lng coordinate.
Link copied to clipboard
Get the orientation of the camera represented as a unit quaternion [x, y, z, w].
Link copied to clipboard
Get the position of the camera in slightly modified web mercator coordinates - The size of 1 unit is the width of the projected world instead of the "mercator meter".
Link copied to clipboard
open fun lookAtPoint(@NonNull location: Point)
open fun lookAtPoint(@NonNull location: Point, altitude: Double)
open fun lookAtPoint(@NonNull location: Point, altitude: Double, @NonNull upVector: Vec3)
Helper function for setting orientation of the camera by defining a focus point.
Link copied to clipboard
open fun setAltitude(altitude: Double)
Helper function for setting the altitude in meters.
Link copied to clipboard
open fun setLocation(@NonNull location: Point)
Helper function for setting the mercator position as Lat&Lng coordinate.
open fun setLocation(@NonNull location: Point, altitude: Double)
Helper function for setting the mercator position as Lat&Lng and altitude in meters.
Link copied to clipboard
open fun setOrientation(@Nullable orientation: Vec4)
Set the orientation of the camera represented as a unit quaternion [x, y, z, w].
Link copied to clipboard
open fun setPitchBearing(pitch: Double, bearing: Double)
Helper function for setting the orientation of the camera as a pitch and a bearing.
Link copied to clipboard
open fun setPosition(@Nullable position: Vec3)
Set the position of the camera in slightly modified web mercator coordinates - The size of 1 unit is the width of the projected world instead of the "mercator meter".