altitude property

double? get altitude

The altitude of the camera above sea level in meters, or null if FreeCameraOptions.position is null.

Implementation

double? get altitude {
  final position = this.position;
  if (position == null) {
    return null;
  }
  return position.z * _circumferenceAtLatitude(_latFromMercatorY(position.y));
}