OfflineStyleURLProvider

public class OfflineStyleURLProvider

Provider of offline style and assets for map display.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Dark mapbox style for browsing mode.

    Declaration

    Swift

    public static var browsingDarkStyleURL: URL { get }
  • Light mapbox style for browsing mode.

    Declaration

    Swift

    public static var browsingLightStyleURL: URL { get }
  • Dark mapbox style for driving mode.

    Declaration

    Swift

    public static var drivingDarkStyleURL: URL { get }
  • Light mapbox style for driving mode.

    Declaration

    Swift

    public static var drivingLightStyleURL: URL { get }
  • Provides URL for a offline style, containing light layers required for a vehicle restriction feature. Example shows how to create offline style container:

    let mainStyle = StyleDefinition.custom(
        style: OfflineStyleURLProvider.vehicleRestrictionsLightStyleURL,
        layerMapping: OfflineStyleURLProvider.layerMappingURL)
    
    let darkStyle = StyleDefinition.custom(
        style: OfflineStyleURLProvider.vehicleRestrictionsDarkStyleURL,
        layerMapping: OfflineStyleURLProvider.layerMappingURL)
    
    return StyleContainer(
           mainStyle: mainStyle,
           darkStyle: darkStyle,
           bundle: resourceBundle)
    

    Declaration

    Swift

    public static var vehicleRestrictionsLightStyleURL: URL { get }
  • Provides URL for a offline style, containing dark layers required for a vehicle restriction feature. Example shows how to create offline style container:

    let mainStyle = StyleDefinition.custom(
        style: OfflineStyleURLProvider.vehicleRestrictionsLightStyleURL,
        layerMapping: OfflineStyleURLProvider.layerMappingURL)
    
    let darkStyle = StyleDefinition.custom(
        style: OfflineStyleURLProvider.vehicleRestrictionsDarkStyleURL,
        layerMapping: OfflineStyleURLProvider.layerMappingURL)
    
    return StyleContainer(
           mainStyle: mainStyle,
           darkStyle: darkStyle,
           bundle: resourceBundle)
    

    Declaration

    Swift

    public static var vehicleRestrictionsDarkStyleURL: URL { get }
  • Defines the order of renderer-specific layers and mapbox layers.

    Declaration

    Swift

    public static var layerMappingURL: URL { get }