setMaxPitch method

MapboxMap setMaxPitch([
  1. num? maxPitch
])

Sets or clears the map's maximum pitch. If the map's current pitch is higher than the new maximum, the map will pitch to the new maximum.

@param {number | null | undefined} maxPitch The maximum pitch to set. If null or undefined is provided, the function removes the current maximum pitch (sets it to 60). @returns {MapboxMap} this

Implementation

MapboxMap setMaxPitch([num? maxPitch]) =>
    MapboxMap.fromJsObject(jsObject.setMaxPitch());