Class: CollectionEvent

ol.CollectionEvent

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 55

Stop event propagation.

Events

add

src/ol/collection.js, line 18

Triggered when an item is added to the collection.

change inherited experimental

src/ol/events.js, line 13

Generic change event.

remove

src/ol/collection.js, line 24

Triggered when an item is removed from the collection.