Module: ol/source/Source

ol/source/Source


Classes

Source

Type Definitions

Attribution()

source/Source.js, line 10

A function that returns a string or an array of strings representing source attributions.

AttributionLike{string} {Array.<string>} {module:ol/source/Source~Attribution}

A type that can be used to provide attribution information for data sources.

It represents either

  • a simple string (e.g. '© Acme Inc.')
  • an array of simple strings (e.g. ['© Acme Inc.', '© Bacme Inc.'])
  • a function that returns a string or array of strings (module:ol/source/Source~Attribution)

Options{Object}

Properties:
Name Type Argument Default Description
attributions module:ol/source/Source~AttributionLike <optional>
attributionsCollapsible boolean <optional>
true

Attributions are collapsible.

projection module:ol/proj~ProjectionLike <optional>

Projection. Default is the view projection.

state module:ol/source/State <optional>
'ready'
wrapX boolean <optional>
false