Class: SyncDataSourcesMap service:ngeoSyncDataSourcesMap

ngeo.SyncDataSourcesMap

new SyncDataSourcesMap(ngeoDataSources)

This service is responsible of the synchronization between the ngeo collection of data sources and a specific map. It listens to events that come directly or indirectly from the map and update the inner properties of the data sources.

The following data sources properties are synchronized here:

  • inRange: The map view 'change:resolution' event is listened and the property is updated depending on the current resolution.
Parameters:
Name Type Description
ngeoDataSources ngeo.DataSources

Ngeo collection of data sources objects.

Members

map

Set a map to this service. Null can be given to unset the map.