new Restorer(ngeoOfflineConfiguration, ngeoBackgroundLayerMgr)
Parameters:
Name | Type | Description |
---|---|---|
ngeoOfflineConfiguration |
ngeo.offline.Configuration | A service for customizing offline behaviour. |
ngeoBackgroundLayerMgr |
ngeo.map.BackgroundLayerMgr | The background layer manager. |
Methods
(protected) doRestore(map, offlineContent)
Parameters:
Name | Type | Description |
---|---|---|
map |
ol.Map | A map |
offlineContent |
ngeox.OfflinePersistentContent | The offline content |
Returns:
ol.Extent
The extent of the restored area
restore(map)
Parameters:
Name | Type | Description |
---|---|---|
map |
ol.Map | The map to work on. |
Returns:
Promise
A promise to the extent of the restored area.