MouseHoverEvent
Notifies user about the pointer moves.
Description
Event is used to nofify user about the pointer moves. Event includes information about the pointer coordinates and if moving is paused and if drawing is active. Note that on touch devices this is triggered when the map is panned, so is not the same as mouse move.
Parameters
(* means the parameter is required)
Name | Type | Description | Default value |
---|---|---|---|
\* lon | Number | longitude on pointer location | |
\* lat | Number | latitude on pointer location | |
\* isPaused | Boolean | True if move is paused | |
\* pageX | Number | viewport pointer position x | |
\* pageY | Number | viewport pointer position y | |
\* isDrawing | Boolean | True while drawing (DrawTools) |
Event methods
getName()
Returns event name
getLon()
Returns longitude on mouse location
getLat()
Returns latitude on mouse location
isPaused()
Returns True if move is paused (no move in 1000 ms).
getPageX()
Returns viewport mouse position x
getPageY()
Returns viewport mouse position y
isDrawing()
Returns true while DrawTools drawing is active. Drawing is activated by StartDrawingRequest (e.g. measure tool, add or modify MyPlaces or feature selection tool).