Members
-
Return
trueif only the alt-key and shift-key is pressed,falseotherwise (e.g. when additionally the platform-modifier-key is pressed). -
Return always true.
-
Return
trueif the event is aclickevent,falseotherwise. -
Return
trueif the event is a mapdblclickevent,falseotherwise. -
Return
trueif the map has the focus. This condition requires a map target element with atabindexattribute, e.g.<div id="map" tabindex="1">. -
Return
trueif the event originates from a mouse device. -
Return always false.
-
Return
trueif no modifier key (alt-, shift- or platform-modifier-key) is pressed. -
Return
trueif only the platform-modifier-key (the meta-key on Mac, ctrl-key otherwise) is pressed,falseotherwise (e.g. when additionally the shift-key is pressed). -
Return
trueif the browser event is apointermoveevent,falseotherwise. -
Return
trueif the event originates from a primary pointer in contact with the surface or if the left mouse button is pressed. See http://www.w3.org/TR/pointerevents/#button-states. -
Return
trueif only the shift-key is pressed,falseotherwise (e.g. when additionally the alt-key is pressed). -
Return
trueif the event is a mapsingleclickevent,falseotherwise. -
Return
trueif the target element is not editable, i.e. not a<input>-,<select>- or<textarea>-element,falseotherwise.
Methods
-
Return
trueif only the alt-key is pressed,falseotherwise (e.g. when additionally the shift-key is pressed).Name Type Description mapBrowserEventmodule:ol/MapBrowserEvent~MapBrowserEvent Map browser event.
Returns:
True if only the alt key is pressed.
Type Definitions
-
A function that takes an
module:ol/MapBrowserEventand returns a{boolean}. If the condition is met, true should be returned.