rotateTo method

MapboxMap rotateTo(
  1. num bearing, [
  2. AnimationOptions? options,
  3. dynamic eventData
])

Rotates the map to the specified bearing, with an animated transition. 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# @param bearing The desired bearing. @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 rotateTo(num bearing,
        [AnimationOptions? options, dynamic eventData]) =>
    MapboxMap.fromJsObject(jsObject.rotateTo(bearing));