# Class: VectorSourceEvent

This documentation is for OpenLayers v10.9.0. The latest is v.

## ol/source/Vector.VectorSourceEvent

Events emitted by `VectorSource` instances are instances of this type.

### Extends

- BaseEvent

### Members

#### feature{FeatureType} {undefined}

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

#### features{Array.<FeatureType>} {undefined}

  The loaded features for the `FEATURESLOADED` event, `undefined` otherwise.

#### target{Object}

  The event target.

#### type{string}

  The event type.

### Methods

#### preventDefault() inherited

events/Event.js, line 50

  Prevent default. This means that no emulated `click`, `singleclick` or `doubleclick` events will be fired.

#### stopPropagation() inherited

events/Event.js, line 58

  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.

#### featuresloadend

source/VectorEventType.js, line 45

  Triggered when features finishes loading.

#### featuresloaderror

source/VectorEventType.js, line 52

  Triggered if feature loading results in an error.

#### featuresloadstart

source/VectorEventType.js, line 38

  Triggered when features starts loading.

#### removefeature

source/VectorEventType.js, line 30

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