HybridTileDataProviderFactory

public enum HybridTileDataProviderFactory

Responsible for creating instances of MapDisplayDataProvider that is a composition of online and offline MapDisplayDataProvider for handling hybrid map tile requests. The provision is based on the tile availability in the NDSStore.

When in offline mode the request is first checked against an in-memory cache before propagating to offline data provider. When in online mode the request is first checked against an in-memory cache before proceeding with the request. There is also a persistent cache to reduce the network calls.

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

  • Creates an instance of MapDisplayDataProvider that handles both offline and online map tile requests.

    Declaration

    Swift

    public static func create(
        store: NDSStore,
        cachePolicy: OnlineCachePolicy = .default
    )
        -> MapDisplayDataProvider?

    Parameters

    store

    An instance of NDSStore for handling offline map tiles and for checking offline tile availability.

    cachePolicy

    An instance of OnlineCachePolicy used for online requests.

    Return Value

    Returns an instance of MapDisplayDataProvider.