How to use the @here/harp-transfer-manager.TransferManager function in @here/harp-transfer-manager

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;
    }
}

@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