OpenLayers v4.0.1 API - Class: Event

# Class: Event

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

## ol.events.Event

Stripped down implementation of the W3C DOM Level 2 Event interface.

  See:
    - https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-interface This implementation only provides `type` and `target` properties, and `stopPropagation` and `preventDefault` methods. It is meant as base class for higher level events defined in the library, and works with `ol.events.EventTarget`.

### Subclasses

- ol.Collection.Event
- ol.interaction.DragAndDrop.Event
- ol.interaction.DragBox.Event
- ol.interaction.Draw.Event
- ol.interaction.Extent.Event
- ol.interaction.Modify.Event
- ol.interaction.Select.Event
- ol.interaction.Translate.Event
- ol.MapEvent
- ol.Object.Event
- ol.render.Event
- ol.source.Image.Event
- ol.source.Raster.Event
- ol.source.Tile.Event
- ol.source.Vector.Event

### Members

#### target{Object}

  The event target.

#### type{string}

  The event type.

### Methods

#### preventDefault()

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

  Stop event propagation.

#### stopPropagation()

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

  Stop event propagation.

### Events

#### change

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

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