getBearing method

num getBearing()

Returns the map's current bearing. The bearing is the compass direction that is "up"; for example, a bearing of 90° orients the map so that east is up.

@memberof MapboxMap# @returns The map's current bearing. @see Navigate the map with game-like controls

Implementation

num getBearing() => jsObject.getBearing();