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 48

Stop event propagation.

stopPropagation() inherited

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

Stop event propagation.

Events

addfeature

src/ol/source/vectoreventtype.js, line 7

Triggered when a feature is added to the source.

change inherited

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

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

changefeature

src/ol/source/vectoreventtype.js, line 14

Triggered when a feature is updated.

clear

src/ol/source/vectoreventtype.js, line 21

Triggered when the clear method is called on the source.

removefeature

src/ol/source/vectoreventtype.js, line 28

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