MapCamera class Basic

The current camera position on the map.

Annotations

Constructors

MapCamera({required Position center, required double zoom, required double bearing, required double pitch})
Default constructor for a MapCamera.
const

Properties

bearing → double
The bearing of the map.
final
center → Position
The position of the map center.
final
hashCode → int
The hash code for this object.
no setteroverride
pitch → double
The camera pitch of the map.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
zoom → double
The zoom level of the map.
final

Methods

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

Static Methods

maybeOf(BuildContext context) → MapCamera?
Find the MapCamera of the closest MapLibreMap in the widget tree. Returns null if called outside of the MapLibreMap.children.
of(BuildContext context) → MapCamera
Find the MapCamera of the closest MapLibreMap in the widget tree. Throws an StateError if called outside of the MapLibreMap.children.