Classes

The following classes are available globally.

OfflineStyleURLProvider

  • OfflineStyleURLProvider is a class that provides URLs for offline styles and assets required for map display. Example shows how to create offline style container:

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

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public class OfflineStyleURLProvider