MGLStyle

extension MGLStyle
  • 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
  • Returns the URL to the current version of the Mapbox Navigation Preview Day style.

    Declaration

    Swift

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

    Declaration

    Swift

    @objc
    public class var navigationPreviewNightStyleURL: URL { get }
  • 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

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

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