Class: RasterSourceEvent

ol/source/Raster.RasterSourceEvent


Events emitted by RasterSource instances are instances of this type.

Extends

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

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

stopPropagation() inherited

Stop event propagation.

Events

afteroperations

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

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.

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

Generic error event. Triggered when an error occurs.