Class: Event

ol.Collection.Event

Events emitted by ol.Collection instances are instances of this type.

Extends

Members

element{*}

The element that is added to or removed from the collection.

target{Object}

The event target.

type{string}

The event type.

Methods

preventDefault() inherited

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

Stop event propagation.

stopPropagation() inherited

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

Stop event propagation.

Events

add

src/ol/collection.js, line 238

Triggered when an item is added to the collection.

change inherited experimental

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

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

remove

src/ol/collection.js, line 244

Triggered when an item is removed from the collection.