Class: VectorEvent

ol.source.VectorEvent

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

Extends

Members

feature{ol.Feature} {undefined}

The feature being added or removed.

target{Object}

The event target.

type{string}

The event type.

Methods

preventDefault() inherited

src/ol/events/event.js, line 48

Stop event propagation.

stopPropagation() inherited

src/ol/events/event.js, line 55

Stop event propagation.

Events

addfeature

src/ol/source/vectorsource.js, line 35

Triggered when a feature is added to the source.

change inherited experimental

src/ol/events.js, line 13

Generic change event.

changefeature experimental

src/ol/source/vectorsource.js, line 42

Triggered when a feature is updated.

clear experimental

src/ol/source/vectorsource.js, line 49

Triggered when the clear method is called on the source.

removefeature

src/ol/source/vectorsource.js, line 56

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