Class: DataSourcesManager service:gmfDataSourcesManager

gmf.datasource~gmf.datasource.DataSourcesManager

new DataSourcesManager($q, $rootScope, $timeout, gmfThemes, gmfTreeManager, ngeoBackgroundLayerMgr, ngeoDataSources, ngeoLayerHelper, ngeoRuleHelper, ngeoWMSTime, gmfWFSAliases)

The GeoMapFish DataSources Manager is responsible of listenening to the c2cgeoportal's themes to create instances of ngeo.datasource.DataSource objects with the layer definitions found and push them in the ngeo.datasource.DataSources collection.

When changing theme, these data sources are cleared then re-created.

Parameters:
Name Type Description
$q angular.$q

Angular q service

$rootScope !angular.Scope

Angular rootScope.

$timeout angular.$timeout

Angular timeout service.

gmfThemes gmf.Themes

The gmf Themes service.

gmfTreeManager gmf.TreeManager

The gmf TreeManager service.

ngeoBackgroundLayerMgr !ngeo.map.BackgroundLayerMgr

Background layer manager.

ngeoDataSources ngeo.datasource.DataSources

Ngeo collection of data sources objects.

ngeoLayerHelper !ngeo.map.LayerHelper

Ngeo Layer Helper.

ngeoRuleHelper !ngeo.RuleHelper

Ngeo rule helper service.

ngeoWMSTime !ngeo.WMSTime

wms time service.

gmfWFSAliases !gmf.WFSAliases

Gmf WFS aliases service.