setMinPitch method

MapboxMap setMinPitch([
  1. num? minPitch
])

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

@param {number | null | undefined} minPitch The minimum pitch to set (0-60). If null or undefined is provided, the function removes the current minimum pitch (i.e. sets it to 0). @returns {MapboxMap} this

Implementation

MapboxMap setMinPitch([num? minPitch]) =>
    MapboxMap.fromJsObject(jsObject.setMinPitch());