FreeCameraPosition class final

A position in normalized web mercator coordinates.

One unit is the width of the projected world. (0, 0, 0) is the north-west corner and (1, 1, 0) is the south-east corner of the world.

The components are not limited to the range 0 to 1. The map repeats the world to the east and the west, so x = 1.2 is the same place as x = 0.2, one world to the east. A camera that looks across the antimeridian or toward a pole can be outside the range.

Constructors

FreeCameraPosition({required double x, required double y, required double z})
Creates a position from its mercator components.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x → double
The east-west component. It increases to the east.
final
y → double
The north-south component. It increases to the south.
final
z → double
The altitude above sea level, in the same units as x and y, so a cube stays a cube. One unit of altitude at a latitude is the circumference of the earth at that latitude.
final

Methods

copyWith({double? x, double? y, double? z}) → FreeCameraPosition
Returns a copy of this position with the given components replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override