MGLMapView

An extension on MGLMapView that allows for toggling traffic on a map style that contains a Mapbox Traffic source.

  • A Boolean value indicating whether traffic congestion lines are visible in the map view’s style.

  • A Boolean value indicating whether incidents, such as road closures and detours, are visible in the map view’s style.