Show:

ia.MapMouseEvent Class

Extends ia.MouseEvent
Module: ia

An ia.MapMouseEvent object.

Constructor

ia.MapMouseEvent

(
  • map
  • evt
  • eventType
  • dataX
  • dataY
  • mouseX
  • mouseY
  • mouseX
  • mouseY
  • pageX
  • pageY
)

Parameters:

  • map ia.Map

    The map associated with the event.

  • evt MouseEvent

    A mouse event.

  • eventType String

    The event type.

  • dataX Number

    The data x coordinate of the mouse.

  • dataY Number

    The data y coordinate of the mouse.

  • mouseX Number

    The pixel x coordinate of the mouse.

  • mouseY Number

    The pixel y coordinate of the mouse.

  • mouseX Number

    The second pixel x coordinate (used for touch devices).

  • mouseY Number

    The second pixel y coordinate (used for touch devices).

  • pageX Number

    The page x coordinate in pixels.

  • pageY Number

    The page y coordinate in pixels.

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

ia.Map

The map.

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)).