Class: VectorSourceEvent

ol/source/Vector.VectorSourceEvent


Events emitted by module:ol/source/Vector instances are instances of this type.

Extends

Members

feature{module:ol/Feature~Feature.<Geometry>} {undefined}

The added or removed feature for the ADDFEATURE and REMOVEFEATURE events, undefined otherwise.

features{Array.<module:ol/Feature~Feature.<Geometry>>} {undefined}

The loaded features for the FEATURESLOADED event, undefined otherwise.

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

Triggered when a feature is added to the source.

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

Triggered when a feature is updated.

Triggered when the clear method is called on the source.

Generic error event. Triggered when an error occurs.

Triggered when features finishes loading.

featuresloaderror

Triggered if feature loading results in an error.

featuresloadstart

Triggered when features starts loading.

Triggered when a feature is removed from the source. See source.clear() for exceptions.