How to use @here/harp-transfer-manager - 2 common examples

To help you get started, we’ve selected a few @here/harp-transfer-manager examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github heremaps / harp.gl / @here / harp-mapview / lib / copyrights / UrlCopyrightProvider.ts View on Github external
getCopyrightCoverageData(): Promise {
        if (this.m_cachedCopyrightResponse !== undefined) {
            return this.m_cachedCopyrightResponse;
        }

        this.m_cachedCopyrightResponse = new TransferManager()
            .downloadJson(this.m_fetchURL)
            .then(json => json[this.m_baseScheme])
            .catch(error => {
                this.logger.error(error);
                return [];
            });

        return this.m_cachedCopyrightResponse;
    }
}
github heremaps / harp.gl / @here / harp-omv-datasource / lib / OmvRestClient.ts View on Github external
constructor(readonly params: OmvRestClientParameters) {
        this.downloadManager =
            params.downloadManager === undefined
                ? TransferManager.instance()
                : params.downloadManager;
        this.urlParams = params.urlParams === undefined ? {} : params.urlParams;
    }

@here/harp-transfer-manager

Provides a manager that orchestrates downloading URLs, particularly static map resources.

Apache-2.0
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Similar packages