Other Constants

Posted by the shared MGLOfflineStorage object when an MGLOfflinePack
object’s progress changes. The progress may change due to a resource being
downloaded or because the pack discovers during the download that more
resources are required for offline viewing. This notification is posted
whenever any field in the progress property changes.

Declaration

Posted by the shared MGLOfflineStorage object whenever an MGLOfflinePack
object encounters an error while downloading. The error may be recoverable and
may not warrant the user’s attention. For example, the pack’s implementation
may attempt to re-request failed resources based on an exponential backoff
strategy or upon the restoration of network access.

Once this limit is reached, no instance of MGLOfflinePack can download
additional tiles from Mapbox APIs until already downloaded tiles are removed by
calling the -[MGLOfflineStorage removePack:withCompletionHandler:] method.
Contact your Mapbox sales representative to have the limit raised.

Declaration

The key for an NSNumber object that indicates the maximum number of
Mapbox-hosted tiles that may be downloaded and stored on the current device.
This key is used in the userInfo dictionary of an
MGLOfflinePackMaximumMapboxTilesReachedNotification notification. Call
-unsignedLongLongValue on the object to receive the uint64_t-typed tile
limit.

Declaration

A version number identifying the default version of the suite of default styles
provided by Mapbox. This version number may be passed into one of the
“StyleURLWithVersion” class methods of MGLStyle.

The value of this constant generally corresponds to the latest released version
as of the date on which this SDK was published. You can use this constant to
ascertain the style used by MGLMapView and MGLTilePyramidOfflineRegion when
no style URL is specified. Consult the
Mapbox Styles API documentation
for the most up-to-date style versioning information.

Warning

The value of this constant may change in a future release of the SDK.
If you use any feature that depends on a specific aspect of a default style
– for instance, the minimum zoom level that includes roads – you may use the
current value of this constant or the underlying style URL, but do not use
the constant itself. Such details may change significantly from version to
version.