setPitch method
Sets the map's pitch (tilt). Equivalent to jumpTo({pitch: pitch})
.
@memberof MapboxMap#
@param pitch The pitch to set, measured in degrees away from the plane of the screen (0-60).
@param eventData Additional properties to be added to event objects of events triggered by this method.
@fires pitchstart
@fires movestart
@fires moveend
@returns {MapboxMap} this
Implementation
MapboxMap setPitch(num pitch, [dynamic eventData]) =>
MapboxMap.fromJsObject(jsObject.setPitch(pitch));