MGLStyle
extension MGLStyle
-
Returns the URL to the current version of the Mapbox Navigation Day style.
Declaration
Swift
public class var navigationDayStyleURL: URL { get } -
Returns the URL to the current version of the Mapbox Navigation Night style.
Declaration
Swift
public class var navigationNightStyleURL: URL { get } -
Returns the URL to the given version of the navigation guidance style. Available version are 1, 2, 3, and 4.
We only have one version of navigation guidance style in China, so if you switch your endpoint to .cn, it will return the default day style.
Declaration
Swift
public class func navigationGuidanceDayStyleURL(version: Int) -> URL -
Returns the URL to the given version of the navigation guidance style. Available version are 2, 3, and 4.
We only have one version of navigation guidance style in China, so if you switch your endpoint to .cn, it will return the default night style.
Declaration
Swift
public class func navigationGuidanceNightStyleURL(version: Int) -> URL -
Returns the URL to the given version of the Mapbox Navigation Preview Day style. Available versions are 1, 2, 3, and 4.
We only have one version of Navigation Preview style in China, so if you switch your endpoint to .cn, it will return the default day style.
Declaration
Swift
public class func navigationPreviewDayStyleURL(version: Int) -> URL -
Returns the URL to the given version of the Mapbox Navigation Preview Night style. Available versions are 2, 3, and 4.
We only have one version of Navigation Preview style in China, so if you switch your endpoint to .cn, it will return the default night style.
Declaration
Swift
public class func navigationPreviewNightStyleURL(version: Int) -> URL
Install in Dash
MGLStyle Extension Reference