StyleURI
public enum StyleURI : Hashable, RawRepresentable
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.
-
Declaration
Swift
public typealias RawValue = URL
-
Mapbox Streets is a general-purpose style with detailed road and transit networks.
Declaration
Swift
case streets
-
Mapbox Streets is a general-purpose style tailored to outdoor activities.
Declaration
Swift
case outdoors
-
Mapbox Light is a subtle, light-colored backdrop for data visualizations.
Declaration
Swift
case light
-
Mapbox Dark is a subtle, dark-colored backdrop for data visualizations.
Declaration
Swift
case dark
-
The Mapbox Satellite style is a base-map of high-resolution satellite and aerial imagery.
Declaration
Swift
case satellite
-
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.
Declaration
Swift
case satelliteStreets
-
The URL to a custom style. The URL may be a full HTTP or HTTPS URL, a Mapbox style URL (mapbox://styles/{user}/{style}), or a path to a local file relative to the application’s resource path.
Declaration
Swift
case custom(url: URL)
-
Create a StyleURI from a URL. Returns nil if the URI is invalid.
Declaration
Swift
public init?(rawValue: URL)
Parameters
rawValue
URL to create style URI from.