new RasterSource(options)
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
Fires:
-
afteroperations
- Triggered after operations are run. -
beforeoperations
- Triggered before operations are run. -
change
(module:ol/events/Event~Event) - Generic change event. Triggered when the revision counter is increased. -
propertychange
(module:ol/Object.ObjectEvent) - Triggered when a property is changed.
Extends
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.
-
Refreshes the source and finally dispatches a 'change' event.
-
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
. -
setOperation(operation, opt_lib)
source/Raster.js, line 262 -
Set the operation.
Name Type Description operation
module:ol/source/Raster~Operation New operation.
lib
Object Functions that will be available to operations run in a worker.