Class BackgroundMouseEL

Mouse event listener for the background

Source : file dialogs/baseDialog/BackgroundMouseEL.js at line 35

Constructor

new BackgroundMouseEL ( )

The constructor

Source : file dialogs/baseDialog/BackgroundMouseEL.js at line 96

Public getters and setters

readonly static get LEFT_BUTTON : Number

Constant for the left button

Source : file dialogs/baseDialog/BackgroundMouseEL.js at line 42

Public methods

handleEvent ( mouseEvent )

Event listener method

Source : file dialogs/baseDialog/BackgroundMouseEL.js at line 105

Parameters

Name Type Description
mouseEvent Event

The event to handle

Private properties

#mapCenter : LeafletObject

A leaflet LatLng object with the center of the map

Source : file dialogs/baseDialog/BackgroundMouseEL.js at line 70

#panOngoing : Boolean

A flag set to true when a pan is ongoing

Source : file dialogs/baseDialog/BackgroundMouseEL.js at line 49

#startPanX : Number

The X screen coordinate of the beginning of the pan

Source : file dialogs/baseDialog/BackgroundMouseEL.js at line 56

#startPanY : Number

The Y screen coordinate of the beginning of the pan

Source : file dialogs/baseDialog/BackgroundMouseEL.js at line 63

Private methods

#processPan ( mouseEvent )

Execute the pan when a mousemove or mouseup event occurs after a mousedown event

Source : file dialogs/baseDialog/BackgroundMouseEL.js at line 77

Parameters

Name Type Description
mouseEvent Event

The mouse event to process