Class: DataSourcesHelper service:gmfDataSourcesHelper

gmf.DataSourcesHelper

new DataSourcesHelper($q, gmfEnumerateAttribute, ngeoDataSourcesHelper)

A service that provides utility methods to manipulate or get data sources.

Parameters:
Name Type Description
$q angular.$q

The Angular $q service.

gmfEnumerateAttribute gmf.EnumerateAttribute

The Gmf enumerate attribute service.

ngeoDataSourcesHelper ngeo.DataSourcesHelper

Ngeo data source helper service.

Members

(protected) cache_: Object:.<number:, gmf.DataSource:>

collection

(protected) collection_: gmf.DataSources

Methods

getDataSource(id)

Return a data source using its id.

Parameters:
Name Type Description
id number

Data source id.

Returns:
?gmf.DataSource

Data source.

prepareFiltrableDataSource(dataSource)

Parameters:
Name Type Description
dataSource gmf.DataSource

Filtrable data source.

Returns: