Constructors
constructor
- new DatasourceManager($q: IQService, $rootScope: IScope, $timeout: ITimeoutService, gmfThemes: ThemesService, gmfTreeManager: LayertreeTreeManager, ngeoBackgroundLayerMgr: MapBackgroundLayerManager, ngeoDataSources: DataSource, ngeoLayerHelper: LayerHelper, ngeoRuleHelper: RuleHelper, ngeoWMSTime: WMSTime, gmfWFSAliases: DatasourceWFSAlias): DatasourceManager
-
Parameters
-
$q: IQService
-
$rootScope: IScope
-
$timeout: ITimeoutService
-
gmfThemes: ThemesService
-
gmfTreeManager: LayertreeTreeManager
-
ngeoBackgroundLayerMgr: MapBackgroundLayerManager
-
ngeoDataSources: DataSource
-
ngeoLayerHelper: LayerHelper
-
ngeoRuleHelper: RuleHelper
-
ngeoWMSTime: WMSTime
-
gmfWFSAliases: DatasourceWFSAlias
The GeoMapFish DataSources Manager is responsible of listening to the c2cgeoportal's themes to create instances of
ngeo.datasource.DataSource
objects with the layer definitions found and push them in theDataSources
collection. The Manager must be initialized with the app's map using thesetDatasourceMap()
method.When changing theme, these data sources are cleared then re-created.
Used metadata:
identifierAttributeField
: The field used in the 'display query window' as feature title. For WMS layers.