OpenLayers v4.0.1 API - Class: Event

# Class: Event

This documentation is for OpenLayers v4.0.1. The latest is v.

## ol.source.Vector.Event

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

### Extends

- ol.events.Event

### 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.