Class: MouseEventInteraction

MouseEventInteraction

A custom mouse event interaction class for handling specific mouse events on an OpenLayers map. Extends the basic OpenLayers Interaction class.

new MouseEventInteraction(olMap)

Interactions/Views/interact/Rotation/MouseEventInteraction.ts, line 17

Creates an instance of MouseEventInteraction. Sets up listeners for context menu prevention and mouse down events.

Name Type Description
olMap OlMap

The OpenLayers map instance to attach this interaction to.

Extends

  • undefined

Methods

handleEvent(mapBrowserEvent){boolean}

Interactions/Views/interact/Rotation/MouseEventInteraction.ts, line 51

Handles map browser events, specifically customizing behavior for right-click drags.

Name Type Description
mapBrowserEvent MapBrowserEvent

The event triggered by browser interactions on the map.

Returns:
Type Description
boolean
  • Returns true if the event should propagate further, false if it should be stopped.