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~Statefor possible states.Returns:
State.
-
Refreshes the source and finally dispatches a 'change' event.
-
Set the attributions of the source.
Name Type Description attributionsmodule:ol/source/Source~AttributionLike | undefined Attributions. Can be passed as
string,Array<string>,, ormodule:ol/source/Source˜Attributionundefined. -
setOperation(operation, opt_lib)
source/Raster.js, line 262 -
Set the operation.
Name Type Description operationmodule:ol/source/Raster~Operation New operation.
libObject Functions that will be available to operations run in a worker.
OpenLayers