ia.MapMouseEvent Class
An ia.MapMouseEvent
object.
Constructor
ia.MapMouseEvent
-
map
-
evt
-
eventType
-
dataX
-
dataY
-
mouseX
-
mouseY
-
mouseX
-
mouseY
-
pageX
-
pageY
Parameters:
-
map
ia.MapThe map associated with the event.
-
evt
MouseEventA mouse event.
-
eventType
StringThe event type.
-
dataX
NumberThe data x coordinate of the mouse.
-
dataY
NumberThe data y coordinate of the mouse.
-
mouseX
NumberThe pixel x coordinate of the mouse.
-
mouseY
NumberThe pixel y coordinate of the mouse.
-
mouseX
NumberThe second pixel x coordinate (used for touch devices).
-
mouseY
NumberThe second pixel y coordinate (used for touch devices).
-
pageX
NumberThe page x coordinate in pixels.
-
pageY
NumberThe page y coordinate in pixels.
Item Index
Properties
- ctrlKey
- dataX
- dataY
- delta
- eventType
- map
- MAP_MOUSE_CLICK static
- MAP_MOUSE_DOWN static
- MAP_MOUSE_DRAG static
- MAP_MOUSE_DRAG_UP static
- MAP_MOUSE_MOVE static
- MAP_MOUSE_OUT static
- MAP_MOUSE_OVER static
- MAP_MOUSE_UP static
- MAP_MOUSE_WHEEL static
- MAP_MOUSE_WHEEL_END static
- MAP_PINCH_DOWN static
- MAP_PINCH_MOVE static
- MAP_PINCH_UP static
- obj
- pageX
- pageY
- shiftKey
- x
- x2
- y
- y2
Properties
ctrlKey
Boolean
Is the ctrl key pressed.
dataX
Number
The data x.
dataY
Number
The data y.
delta
Number
Wheel delta.
eventType
String
The type of event.
MAP_MOUSE_CLICK
String
final
static
Indicates that the user clicked the mouse button over a map.
Default: "mapMouseClick"
MAP_MOUSE_DOWN
String
final
static
Indicates that the user pressed the mouse button over a map.
Default: "mapMouseDown"
MAP_MOUSE_DRAG
String
final
static
Indicates that the user dragged the mouse pointer over a map. The mapMouseDrag event will continue to be dispatched after the mouse has moved out of the canvas as long as the the mouse is down.
Default: "mapMouseDrag"
MAP_MOUSE_DRAG_UP
String
final
static
Indicates that the user released the mouse button after a mapMouseDrag event. The mapMouseDragUp event will still to be dispatched after the mouse has moved out of the canvas as long as the mouse was dragged out of the
Default: "mapMouseDragUp" map.
MAP_MOUSE_MOVE
String
final
static
Indicates that the user moved the mouse pointer while hovering over a map.
Default: "mapMouseMove"
MAP_MOUSE_OUT
String
final
static
Indicates that the user rolled the mouse pointer out of a map.
Default: "mapMouseOut"
MAP_MOUSE_OVER
String
final
static
Indicates that the user rolled the mouse pointer over a map.
Default: "mapMouseOver"
MAP_MOUSE_UP
String
final
static
Indicates that the user released the mouse button over a map.
Default: "mapMouseUp"
MAP_MOUSE_WHEEL
String
final
static
Indicates that the user moved the mouse wheel while hovering over a map.
Default: "mapMouseWheel"
MAP_MOUSE_WHEEL_END
String
final
static
Indicates that the user finished moving the mouse wheel while hovering over a
Default: "mapMouseWheelEnd" map.
MAP_PINCH_DOWN
String
final
static
Indicates that the user touches the map with two fingers the map.
Default: "mapPinchDown"
MAP_PINCH_MOVE
String
final
static
Indicates that the user moves two fingers over the map.
Default: "mapPinchMove"
MAP_PINCH_UP
String
final
static
Indicates that the user lifts a finger after a double touch.
Default: "mapPinchUp"
obj
Object
The object associated with the event.
pageX
Number
The page x.
pageY
Number
The page y.
shiftKey
Boolean
Is the shift key pressed.
x
Number
The x coord.
x2
Number
The second x coord (used for touch devices)).
y
Number
The y coord.
y2
Number
The second y coord (used for touch devices)).