Methods
-
ol.events.condition.altKeyOnly(mapBrowserEvent){boolean}
src/ol/events/condition.js, line 28 -
Return
trueif only the alt-key is pressed,falseotherwise (e.g. when additionally the shift-key is pressed).Name Type Description mapBrowserEventol.MapBrowserEvent Map browser event.
Returns:
True if only the alt key is pressed.
-
ol.events.condition.altShiftKeysOnly(mapBrowserEvent){boolean}
src/ol/events/condition.js, line 45 -
Return
trueif only the alt-key and shift-key is pressed,falseotherwise (e.g. when additionally the platform-modifier-key is pressed).Name Type Description mapBrowserEventol.MapBrowserEvent Map browser event.
Returns:
True if only the alt and shift keys are pressed.
-
ol.events.condition.always(mapBrowserEvent){boolean}
src/ol/events/condition.js, line 62 -
Return always true.
Name Type Description mapBrowserEventol.MapBrowserEvent Map browser event.
Returns:
True.
-
ol.events.condition.click(mapBrowserEvent){boolean}
src/ol/events/condition.js, line 72 -
Return
trueif the event is aclickevent,falseotherwise.Name Type Description mapBrowserEventol.MapBrowserEvent Map browser event.
Returns:
True if the event is a mapclickevent.
-
ol.events.condition.doubleClick(mapBrowserEvent){boolean}
src/ol/events/condition.js, line 120 -
Return
trueif the event is a mapdblclickevent,falseotherwise.Name Type Description mapBrowserEventol.MapBrowserEvent Map browser event.
Returns:
True if the event is a mapdblclickevent.
-
ol.events.condition.mouseOnly(mapBrowserEvent){boolean}
src/ol/events/condition.js, line 204 -
Return
trueif the event originates from a mouse device.Name Type Description mapBrowserEventol.MapBrowserPointerEvent Map browser event.
Returns:
True if the event originates from a mouse device.
-
ol.events.condition.never(mapBrowserEvent){boolean}
src/ol/events/condition.js, line 85 -
Return always false.
Name Type Description mapBrowserEventol.MapBrowserEvent Map browser event.
Returns:
False.
-
ol.events.condition.noModifierKeys(mapBrowserEvent){boolean}
src/ol/events/condition.js, line 133 -
Return
trueif no modifier key (alt-, shift- or platform-modifier-key) is pressed.Name Type Description mapBrowserEventol.MapBrowserEvent Map browser event.
Returns:
True only if there no modifier keys are pressed.
-
ol.events.condition.platformModifierKeyOnly(mapBrowserEvent){boolean}
src/ol/events/condition.js, line 151 -
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).Name Type Description mapBrowserEventol.MapBrowserEvent Map browser event.
Returns:
True if only the platform modifier key is pressed.
-
ol.events.condition.pointerMove(mapBrowserEvent){boolean} experimental
src/ol/events/condition.js, line 96 -
Return
trueif the browser event is apointermoveevent,falseotherwise.Name Type Description mapBrowserEventol.MapBrowserEvent Map browser event.
Returns:
True if the browser event is apointermoveevent.
-
ol.events.condition.shiftKeyOnly(mapBrowserEvent){boolean}
src/ol/events/condition.js, line 168 -
Return
trueif only the shift-key is pressed,falseotherwise (e.g. when additionally the alt-key is pressed).Name Type Description mapBrowserEventol.MapBrowserEvent Map browser event.
Returns:
True if only the shift key is pressed.
-
ol.events.condition.singleClick(mapBrowserEvent){boolean}
src/ol/events/condition.js, line 108 -
Return
trueif the event is a mapsingleclickevent,falseotherwise.Name Type Description mapBrowserEventol.MapBrowserEvent Map browser event.
Returns:
True if the event is a mapsingleclickevent.
-
ol.events.condition.targetNotEditable(mapBrowserEvent){boolean} experimental
src/ol/events/condition.js, line 185 -
Return
trueif the target element is not editable, i.e. not a<input>-,<select>- or<textarea>-element,falseotherwise.Name Type Description mapBrowserEventol.MapBrowserEvent Map browser event.
Returns:
True only if the target element is not editable.
OpenLayers 3