FreeCameraOptions class final
The position and orientation of the camera in 3D space.
Use these options to control the camera directly, for example to follow
a moving object. The mapbox_maps_flutter package adds helpers that
set the options from a geographic location, an altitude in meters, and a
target to look at.
- Available extensions
Constructors
- FreeCameraOptions({FreeCameraPosition? position, FreeCameraOrientation? orientation})
-
Creates free camera options. Both values are optional. The map keeps
its current value for each value that is null.
const
Properties
- altitude → double?
-
Available on FreeCameraOptions, provided by the FreeCameraOptionsGeography extension
The altitude of the camera above sea level in meters, or null if FreeCameraOptions.position is null.no setter - hashCode → int
-
The hash code for this object.
no setteroverride
- location → Point?
-
Available on FreeCameraOptions, provided by the FreeCameraOptionsGeography extension
The geographic location of the camera, or null if FreeCameraOptions.position is null.no setter - orientation → FreeCameraOrientation?
-
The orientation of the camera in a left-handed coordinate space.
final
- position → FreeCameraPosition?
-
The position of the camera in normalized mercator coordinates.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{FreeCameraPosition? position, FreeCameraOrientation? orientation}) → FreeCameraOptions - Returns a copy of these options with the given values replaced.
-
lookingAt(
Point target, {double altitude = 0, FreeCameraPosition up = const FreeCameraPosition(x: 0, y: 0, z: 1)}) → FreeCameraOptions -
Available on FreeCameraOptions, provided by the FreeCameraOptionsGeography extension
Returns options with the camera turned to look attarget. The position does not change. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
withAltitude(
double altitude) → FreeCameraOptions -
Available on FreeCameraOptions, provided by the FreeCameraOptionsGeography extension
Returns options with the camera ataltitudemeters above sea level. The location and the orientation do not change. -
withLocation(
Point location, {double? altitude}) → FreeCameraOptions -
Available on FreeCameraOptions, provided by the FreeCameraOptionsGeography extension
Returns options with the camera at the geographiclocationandaltitudein meters above sea level. -
withPitchBearing(
double pitch, double bearing) → FreeCameraOptions -
Available on FreeCameraOptions, provided by the FreeCameraOptionsGeography extension
Returns options with the camera turned to apitchand abearingin degrees. The position does not change.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override