ol/events/Event~BaseEvent
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 Target.
Subclasses
- CollectionEvent
- GeolocationError
- MapEvent
- ObjectEvent
- SnapEvent
- DragAndDropEvent
- DragBoxEvent
- DrawEvent
- ExtentEvent
- ModifyEvent
- SelectEvent
- TranslateEvent
- GroupEvent
- RenderEvent
- ImageSourceEvent
- RasterSourceEvent
- TileSourceEvent
- VectorSourceEvent
Members
-
target{Object}
-
The event target.
-
type{string}
-
The event type.
Methods
-
preventDefault()
-
Prevent default. This means that no emulated
click,singleclickordoubleclickevents will be fired. -
stopPropagation()
-
Stop event propagation.
Events
-
change
-
Generic change event. Triggered when the revision counter is increased.
-
error
-
Generic error event. Triggered when an error occurs.
© 2005-present, OpenLayers Contributors All rights reserved.Licensed under the BSD 2-Clause License.
https://openlayers.org/en/latest/apidoc/module-ol_events_Event-BaseEvent.html