Class: Downloader

ngeo.offline.module:Downloader.Downloader

new Downloader(ngeoOfflineConfiguration)

Parameters:
Name Type Description
ngeoOfflineConfiguration ngeo.offline.Configuration

A service for customizing offline behaviour.

Methods

queueLayerTiles_(layerMetadata, queue)

Parameters:
Name Type Description
layerMetadata ngeox.OfflineLayerMetadata

Layers metadata.

queue Array

Queue of tiles to download.

save(extent, map)

Parameters:
Name Type Description
extent ol.Extent

The extent to download.

map ol.Map

The map to work on.

Returns:
Promise

A promise resolving when save is finished.