Class: DataSource

ngeo.datasource.DataSource

new DataSource(options)

A ngeo.datasource.DataSource represents a single source of data, which can combine different type of servers to display or fetch the data. It can serve as a point of entry to get all the information about a single data source.

You can use the information in a data source to do all sorts of things:

  • create ol.layer.Layer objects using the WMS, WMTS or even WFS information
  • issue WMS/WFS queries
  • know whether the data is visible or not
  • apply filter rules on it
Parameters:
Name Type Description
options ngeox.datasource.DataSourceOptions

Options.

Implements:

Members

(nullable) attributes: Array:.<ngeox.Attribute:>

The attributes of the data source.

Note: attributes is not using the conventionnal getter/setter due to: See: https://github.com/google/closure-compiler/issues/1089

id

identifierAttribute

inRange

inRange

maxResolution

minResolution

name

queryable

Whether the data source is queryable or not.

Implements:

supportsDynamicInRange

visible

visible

Methods

getAttributes()

Returns:
?Array.

Attributes

setAttributes(attributes)

Parameters:
Name Type Description
attributes ?Array.

Attributes