Spec-Zone.ru › OpenLayers

ol/Collection.CollectionEvent


Events emitted by Collection instances are instances of this type.

Extends

  • BaseEvent

Members

element{T}

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

index{number}

The index of the added or removed element.

target{Object}

The event target.

type{string}

The event type.

Methods

preventDefault() inherited

events/Event.js, line 50

Prevent default. This means that no emulated click, singleclick or doubleclick events will be fired.

stopPropagation() inherited

events/Event.js, line 58

Stop event propagation.

Events

add

CollectionEventType.js, line 9

Triggered when an item is added to the collection.

change inherited

events/EventType.js, line 10

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

error inherited

events/EventType.js, line 17

Generic error event. Triggered when an error occurs.

remove

CollectionEventType.js, line 15

Triggered when an item is removed from the collection.

© 2005-present, OpenLayers Contributors All rights reserved.Licensed under the BSD 2-Clause License.
https://openlayers.org/en/latest/apidoc/module-ol_Collection.CollectionEvent.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API