# Class: RasterSourceEvent

This documentation is for OpenLayers v10.9.0. The latest is v.

## ol/source/Raster.RasterSourceEvent

Events emitted by `RasterSource` instances are instances of this type.

### Extends

- BaseEvent

### Members

#### data{Object}

  An object made available to all operations. This can be used by operations as a storage object (e.g. for calculating statistics).

#### extent{Extent}

  The raster extent.

#### resolution{number}

  The pixel resolution (map units per pixel).

#### target{Object}

  The event target.

#### type{string}

  The event type.

### Methods

#### preventDefault() inherited

events/Event.js, line 50

  Prevent default. This means that no emulated `click`, `singleclick` or `doubleclick` events will be fired.

#### stopPropagation() inherited

events/Event.js, line 58

  Stop event propagation.

### Events

#### afteroperations

source/Raster.js, line 416

  Triggered after operations are run. Listeners will receive an event object with a `data` property. If more than one thread is used, `data` will be an array of objects. If a single thread is used, `data` will be a single object.

#### beforeoperations

source/Raster.js, line 408

  Triggered before operations are run. Listeners will receive an event object with a `data` property that can be used to make data available to operations.

#### change inherited

events/EventType.js, line 10

  Generic change event. Triggered when the revision counter is increased.

#### error inherited

events/EventType.js, line 17

  Generic error event. Triggered when an error occurs.