OpenLayers v4.0.1 API - Class: Event

# Class: Event

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

## ol.Object.Event

Events emitted by `ol.Object` instances are instances of this type.

### Extends

- ol.events.Event

### Members

#### key{string}

  The name of the property whose value is changing.

#### oldValue{*}

  The old value. To get the new value use `e.target.get(e.key)` where `e` is the event object.

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

#### change inherited

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

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

#### propertychange

src/ol/objecteventtype.js, line 7

  Triggered when a property is changed.