limitPitch

fun limitPitch(controller: MTMapViewController, minPitch: Double = 0.0, maxPitch: Double = 85.0)

Easily limits the pitch of the map.

Parameters

controller

The map view controller to apply the limits to.

minPitch

The minimum pitch limit (0 to 85 degrees). Defaults to 0.0.

maxPitch

The maximum pitch limit (0 to 180 degrees). Defaults to 85.0.