snapToNorth method

MapboxMap snapToNorth([
  1. AnimationOptions? options,
  2. dynamic eventData
])

Snaps the map so that north is up (0° bearing), if the current bearing is close enough to it (i.e. within the bearingSnap threshold).

@memberof MapboxMap# @param options @param eventData Additional properties to be added to event objects of events triggered by this method. @fires movestart @fires moveend @returns {MapboxMap} this

Implementation

MapboxMap snapToNorth([AnimationOptions? options, dynamic eventData]) =>
    MapboxMap.fromJsObject(jsObject.snapToNorth());