Namespace: condition

ol.events.condition

Methods

ol.events.condition.altKeyOnly(mapBrowserEvent){boolean}

Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Returns:
True if only the alt key is pressed.

ol.events.condition.altShiftKeysOnly(mapBrowserEvent){boolean}

Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Returns:
True if only the alt and shift keys are pressed.

ol.events.condition.always(mapBrowserEvent){boolean}

Always true.

Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Returns:
True.

ol.events.condition.click(mapBrowserEvent){boolean}

Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Returns:
True if the event is a map click event.

ol.events.condition.mouseMove(mapBrowserEvent){boolean} experimental

Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Returns:
True if the browser event is a mousemove event.

ol.events.condition.mouseOnly(mapBrowserEvent){boolean}

Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Returns:
True if the event originates from a mouse device.

ol.events.condition.never(mapBrowserEvent){boolean}

Always false.

Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Returns:
False.

ol.events.condition.noModifierKeys(mapBrowserEvent){boolean}

Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Returns:
True only if there no modifier keys are pressed.

ol.events.condition.platformModifierKeyOnly(mapBrowserEvent){boolean}

Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Returns:
True if only the platform modifier key is pressed.

ol.events.condition.shiftKeyOnly(mapBrowserEvent){boolean}

Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Returns:
True if only the shift key is pressed.

ol.events.condition.singleClick(mapBrowserEvent){boolean}

Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Returns:
True if the event is a map singleclick event.

ol.events.condition.targetNotEditable(mapBrowserEvent){boolean} experimental

Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Returns:
True only if the target element is not editable.