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 in view projection corresponding to 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}

The frame state at the time of the event.

The map where the event occurred.

originalEvent{Event}

The original browser event.

pixel{ol.Pixel}

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

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 56

Stop event propagation.

Events

change inherited

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

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

click

src/ol/mapbrowsereventtype.js, line 20

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

dblclick

src/ol/mapbrowsereventtype.js, line 27

A true double click, with no dragging.

moveend inherited

src/ol/mapeventtype.js, line 22

Triggered after the map is moved.

movestart inherited

src/ol/mapeventtype.js, line 15

Triggered when the map starts moving.

pointerdrag

src/ol/mapbrowsereventtype.js, line 34

Triggered when a pointer is dragged.

pointermove

src/ol/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

src/ol/mapeventtype.js, line 8

Triggered after a map frame is rendered.

singleclick

src/ol/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.