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 Mapbox Navigation Day style. Available versions are 1, 2, 3, 4 and 5.

    We only have one version of Mapbox Navigation Day style in China, so if you switch your endpoint to .cn, it will return the default day style.

    Declaration

    Swift

    public class func navigationDayStyleURL(version: Int) -> URL
  • Returns the URL to the given version of the Mapbox Navigation Night style. Available versions are 2, 3, 4 and 5.

    We only have one version of Mapbox Navigation Night style in China, so if you switch your endpoint to .cn, it will return the default night style.

    Declaration

    Swift

    public class func navigationNightStyleURL(version: Int) -> URL