CameraOptions class

Options common to {@link MapboxMap#jumpTo}, {@link MapboxMap#easeTo}, and {@link MapboxMap#flyTo}, controlling the desired location, zoom, bearing, and pitch of the camera. All properties are optional, and when a property is omitted, the current camera value for that property will remain unchanged.

@typedef {Object} CameraOptions @property {LngLatLike} center The desired center. @property {number} zoom The desired zoom level. @property {number} bearing The desired bearing, in degrees. The bearing is the compass direction that is "up"; for example, a bearing of 90° orients the map so that east is up. @property {number} pitch The desired pitch, in degrees. @property {LngLatLike} around If zoom is specified, around determines the point around which the zoom is centered.

Constructors

CameraOptions({LngLat? center, num? zoom, num? bearing, num? pitch, LngLat? around})
factory
CameraOptions.fromJsObject(CameraOptionsJsImpl jsObject)
Creates a new CameraOptions from a jsObject.

Properties

around LngLat
no setter
bearing num
no setter
center LngLat
no setter
hashCode int
The hash code for this object.
no setterinherited
jsObject → CameraOptionsJsImpl
JS object.
finalinherited
pitch num
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zoom num
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited