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 feature being added or removed.

target{Object}

The event target.

type{string}

The event type.

Methods

preventDefault() inherited

events/Event.js, line 46

Stop event propagation.

stopPropagation() inherited

events/Event.js, line 54

Stop event propagation.

Events

addfeature

source/VectorEventType.js, line 9

Triggered when a feature is added to the source.

change inherited

events/EventType.js, line 10

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

changefeature

source/VectorEventType.js, line 16

Triggered when a feature is updated.

clear

source/VectorEventType.js, line 23

Triggered when the clear method is called on the source.

error inherited

events/EventType.js, line 17

Generic error event. Triggered when an error occurs.

removefeature

source/VectorEventType.js, line 30

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