The return value 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 – use the
-streetsStyleURLWithVersion: method instead. Such details may change
significantly from version to version.

Declaration

Returns the URL to the current version of the
Mapbox Outdoors style as of
publication.

Outdoors is a general-purpose style tailored to outdoor activities.

Warning

The return value 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 – use the
-outdoorsStyleURLWithVersion: method instead. Such details may change
significantly from version to version.

The return value 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 – use the
-lightStyleURLWithVersion: method instead. Such details may change
significantly from version to version.

The return value 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 – use the
-darkStyleURLWithVersion: method instead. Such details may change
significantly from version to version.

The return value 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 raster tile sets included in the style – use the
-satelliteStyleURLWithVersion: method instead. Such details may change
significantly from version to version.

The return value 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 – use the
-satelliteStreetsStyleURLWithVersion: method instead. Such details may
change significantly from version to version.

Source identifiers are not guaranteed to exist across styles or different
versions of the same style. Applications that use this API must first set the
style URL to an explicitly versioned style using a convenience method like
+[MGLStyle outdoorsStyleURLWithVersion:], MGLMapView’s “Style URL”
inspectable in Interface Builder, or a manually constructed NSURL. This
approach also avoids source identifer name changes that will occur in the default
style’s sources over time.

Adding the same source instance more than once will result in a
MGLRedundantSourceException. Reusing the same source identifier, even with
different source instances, will result in a
MGLRedundantSourceIdentifierException.

Parameters

Source identifiers are not guaranteed to exist across styles or different
versions of the same style. Applications that use this API must first set the
style URL to an explicitly versioned style using a convenience method like
+[MGLStyle outdoorsStyleURLWithVersion:], MGLMapView’s “Style URL”
inspectable in Interface Builder, or a manually constructed NSURL. This
approach also avoids source identifer name changes that will occur in the default
style’s sources over time.

Layer identifiers are not guaranteed to exist across styles or different
versions of the same style. Applications that use this API must first set
the style URL to an explicitly versioned style using a convenience method like
+[MGLStyle outdoorsStyleURLWithVersion:], MGLMapView’s “Style URL”
inspectable in Interface Builder, or a manually constructed NSURL. This
approach also avoids layer identifer name changes that will occur in the default
style’s layers over time.

Layer identifiers are not guaranteed to exist across styles or different
versions of the same style. Applications that use this API must first set
the style URL to an explicitly versioned style using a convenience method like
+[MGLStyle outdoorsStyleURLWithVersion:], MGLMapView’s “Style URL”
inspectable in Interface Builder, or a manually constructed NSURL. This
approach also avoids layer identifer name changes that will occur in the default
style’s layers over time.

Inserting the same layer instance more than once will result in a
MGLRedundantLayerException. Reusing the same layer identifer, even with
different layer instances, will also result in an exception.

Parameters

Layer identifiers are not guaranteed to exist across styles or different
versions of the same style. Applications that use this API must first set
the style URL to an explicitly versioned style using a convenience method like
+[MGLStyle outdoorsStyleURLWithVersion:], MGLMapView’s “Style URL”
inspectable in Interface Builder, or a manually constructed NSURL. This
approach also avoids layer identifer name changes that will occur in the default
style’s layers over time.

Inserting the same layer instance more than once will result in a
MGLRedundantLayerException. Reusing the same layer identifer, even with
different layer instances, will also result in an exception.

Parameters

Layer identifiers are not guaranteed to exist across styles or different
versions of the same style. Applications that use this API must first set
the style URL to an explicitly versioned style using a convenience method like
+[MGLStyle outdoorsStyleURLWithVersion:], MGLMapView’s “Style URL”
inspectable in Interface Builder, or a manually constructed NSURL. This
approach also avoids layer identifer name changes that will occur in the default
style’s layers over time.

Names and their associated images are not guaranteed to exist across
styles or different versions of the same style. Applications that use this
API must first set the style URL to an explicitly versioned style using a
convenience method like +[MGLStyle outdoorsStyleURLWithVersion:],
MGLMapView’s “Style URL” inspectable in Interface Builder, or a manually
constructed NSURL. This approach also avoids image name changes that will
occur in the default style over time.

Declaration

Objective-C

-(nullableUIImage*)imageForName:(nonnullNSString*)name;

Swift

funcimage(forNamename:String)->UIImage?

Parameters

name

The name associated with the image you want to obtain.

Return Value

The image associated with the given name, or nil if no image is
associated with that name.

Parameters

Names and their associated images are not guaranteed to exist across
styles or different versions of the same style. Applications that use this
API must first set the style URL to an explicitly versioned style using a
convenience method like +[MGLStyle outdoorsStyleURLWithVersion:],
MGLMapView’s “Style URL” inspectable in Interface Builder, or a manually
constructed NSURL. This approach also avoids image name changes that will
occur in the default style over time.

Declaration

A Boolean value that determines whether the style attempts to localize labels in
the style into the system’s preferred language.

When this property is enabled, the style automatically modifies the text property
of any symbol style layer whose source is the
Mapbox
Streets source. On iOS, the user can set the system’s preferred language in
Settings, General Settings, Language & Region. On macOS, the user can set the
system’s preferred language in the Language & Region pane of System Preferences.