StyleURI

Enum representing the latest version of the Mapbox styles (as of publication). In addition, you can provide a custom URL or earlier version of a Mapbox style by using the .custom case.

  • Create a custom StyleURI from a String. The String may be a full HTTP or HTTPS URI, a Mapbox style URI (mapbox://styles/{user}/{style}), or a path to a local file relative to the application’s resource path. Returns nil if the String is invalid.

  • Create a custom StyleURI from a URL. The URL may be a full HTTP or HTTPS URI, a Mapbox style URI (mapbox://styles/{user}/{style}), or a path to a local file relative to the application’s resource path. Returns nil if the URL is invalid.

  • Mapbox Streets is a general-purpose style with detailed road and transit networks.

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

  • Mapbox Light is a subtle, light-colored backdrop for data visualizations.

  • Mapbox Dark is a subtle, dark-colored backdrop for data visualizations.

  • The Mapbox Satellite style is a base-map of high-resolution satellite and aerial imagery.

  • The Mapbox Satellite Streets style combines the high-resolution satellite and aerial imagery of Mapbox Satellite with unobtrusive labels and translucent roads from Mapbox Streets.