Class: MapBrowserEvent


Events emitted as map browser events are instances of this type. See module:ol/PluggableMap~PluggableMap for which events trigger a map browser event.



The coordinate corresponding to the original browser event. This will be in the user projection if one is set. Otherwise it will be in the view projection.


Indicates if the map is currently being dragged. Only set for POINTERDRAG and POINTERMOVE events. Default is false.

The frame state at the time of the event.

The map where the event occurred.


The original browser event.

The map pixel relative to the viewport corresponding to the original browser event.


The event target.


The event type.


preventDefault() inherited

MapBrowserEvent.js, line 92

stopPropagation() inherited

MapBrowserEvent.js, line 103

Prevents further propagation of the current event. See


change inherited

events/EventType.js, line 10

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


MapBrowserEventType.js, line 20

A click with no dragging. A double click will fire two of this.


MapBrowserEventType.js, line 27

A true double click, with no dragging.

error inherited

events/EventType.js, line 17

Generic error event. Triggered when an error occurs.

moveend inherited

MapEventType.js, line 24

Triggered after the map is moved.

movestart inherited

MapEventType.js, line 17

Triggered when the map starts moving.


MapBrowserEventType.js, line 34

Triggered when a pointer is dragged.


MapBrowserEventType.js, line 41

Triggered when a pointer is moved. Note that on touch devices this is triggered when the map is panned, so is not the same as mousemove.

postrender inherited

MapEventType.js, line 10

Triggered after a map frame is rendered.


MapBrowserEventType.js, line 12

A true single click with no dragging and no double click. Note that this event is delayed by 250 ms to ensure that it is not a double click.