Extends
Members
-
coordinate{module:ol/coordinate~Coordinate}
-
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.
-
dragging{boolean}
-
Indicates if the map is currently being dragged. Only set for
POINTERDRAG
andPOINTERMOVE
events. Default isfalse
. -
frameState{module:ol/PluggableMap~FrameState}
-
The frame state at the time of the event.
-
The map where the event occurred.
-
originalEvent{EVENT}
-
The original browser event.
-
pixel{module:ol/pixel~Pixel}
-
The map pixel relative to the viewport corresponding to the original event.
-
target{Object}
-
The event target.
-
type{string}
-
The event type.
Methods
-
Prevents the default browser action. See https://developer.mozilla.org/en-US/docs/Web/API/event.preventDefault.
-
Prevents further propagation of the current event. See https://developer.mozilla.org/en-US/docs/Web/API/event.stopPropagation.
Events
-
Generic change event. Triggered when the revision counter is increased.
-
A click with no dragging. A double click will fire two of this.
-
A true double click, with no dragging.
-
Generic error event. Triggered when an error occurs.
-
Triggered after the map is moved.
-
Triggered when the map starts moving.
-
Triggered when a pointer is dragged.
-
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.
-
Triggered after a map frame is rendered.
-
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.