MGLStyle

class MGLStyle : NSObject
  • Returns the URL to the current version of the Mapbox Navigation Guidance Day style.

    Declaration

    Swift

    @objc
    public class var navigationGuidanceDayStyleURL: URL { get }
  • Returns the URL to the current version of the Mapbox Navigation Guidance Night style.

    Declaration

    Swift

    @objc
    public class var navigationGuidanceNightStyleURL: 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

    @objc
    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

    @objc
    public class func navigationGuidanceNightStyleURL(version: Int) -> URL