Class: MapBrowserEvent

ol.MapBrowserEvent

Events emitted as map browser events are instances of this type. See ol.Map for which events trigger a map browser event.

Extends

Members

coordinate{ol.Coordinate}

The coordinate of the original browser event.

dragging{boolean}

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

frameState{olx.FrameState} experimental

The frame state at the time of the event.

map{ol.Map}

The map where the event occurred.

originalEvent{Event}

The original browser event.

pixel{ol.Pixel}

The pixel of the original browser event.

target{Object}

The event target.

type{string}

The event type.

Methods

preventDefault() inherited

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

Stop event propagation.

stopPropagation() inherited

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

Stop event propagation.

Events

change inherited experimental

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

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

click

src/ol/mapbrowserevent.js, line 440

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

dblclick

src/ol/mapbrowserevent.js, line 447

A true double click, with no dragging.

moveend inherited

src/ol/mapevent.js, line 20

Triggered after the map is moved.

pointerdrag experimental

src/ol/mapbrowserevent.js, line 454

Triggered when a pointer is dragged.

pointermove

src/ol/mapbrowserevent.js, line 461

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 experimental

src/ol/mapevent.js, line 13

Triggered after a map frame is rendered.

singleclick

src/ol/mapbrowserevent.js, line 432

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.