Class: Event

ol.source.Vector.Event

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 47

Stop event propagation.

stopPropagation() inherited

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

Stop event propagation.

Events

addfeature

src/ol/source/vector.js, line 876

Triggered when a feature is added to the source.

change inherited experimental

src/ol/events/eventtype.js, line 8

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

changefeature experimental

src/ol/source/vector.js, line 883

Triggered when a feature is updated.

clear experimental

src/ol/source/vector.js, line 890

Triggered when the clear method is called on the source.

removefeature

src/ol/source/vector.js, line 897

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