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 48

Stop event propagation.

stopPropagation() inherited

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

Stop event propagation.

Events

add

src/ol/collectioneventtype.js, line 7

Triggered when an item is added to the collection.

change inherited

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

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

remove

src/ol/collectioneventtype.js, line 13

Triggered when an item is removed from the collection.