Mouse event listener for the background
The constructor
Constant for the left button
Event listener method
Name | Type | Description |
---|---|---|
mouseEvent | Event | The event to handle |
A leaflet LatLng object with the center of the map
A flag set to true when a pan is ongoing
The X screen coordinate of the beginning of the pan
The Y screen coordinate of the beginning of the pan
Execute the pan when a mousemove or mouseup event occurs after a mousedown event
Name | Type | Description |
---|---|---|
mouseEvent | Event | The mouse event to process |