new Source(options)
source/Source.js, line 49
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Source options.
|
Methods
-
Get the projection of the source.
Returns:
Projection.
-
Get the state of the source, see
module:ol/source/State~State
for possible states.Returns:
State.
-
refresh()
source/Source.js, line 151 -
Refreshes the source and finally dispatches a 'change' event.
-
setAttributions(attributions)
source/Source.js, line 162 -
Set the attributions of the source.
Name Type Description attributions
module:ol/source/Source~AttributionLike | undefined Attributions. Can be passed as
string
,Array<string>
,
, ormodule:ol/source/Source~Attribution
undefined
.