Classes
Type Definitions
-
A function that takes a
ViewStateLayerStateExtentand returns a string or an array of strings representing source attributions. -
AttributionLike{string} {Array.<string>} {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 (
Attribution)
- a simple string (e.g.
-
Options{Object}
-
Properties:
Name Type Description attributionsAttributionLike | undefined Attributions.
attributionsCollapsibleboolean
(defaults to true)Attributions are collapsible.
projectionProjectionLike | undefined Projection. Default is the view projection.
stateState
(defaults to 'ready')State.
wrapXboolean
(defaults to false)WrapX.
interpolateboolean
(defaults to false)Use interpolated values when resampling. By default, the nearest neighbor is used when resampling.
-
State{'undefined'} {'loading'} {'ready'} {'error'}
-
State of the source, one of 'undefined', 'loading', 'ready' or 'error'.