Share via


VEMap.onmousemove Event

You are not viewing the latest version of the AJAX control. Bing Maps AJAX V7 is the recommended JavaScript control for Bing Maps. If you need this documentation, it is available in as a CHM or PDF download.

Occurs when the mouse cursor moves.

VEMap.AttachEvent("onmousemove", function_name);

Return Value

A MapEvent object, which has the following properties:

Property Description

altKey

A Boolean object representing whether the ALT key was held when the key was pressed.

ctrlKey

A Boolean object representing whether the CTRL key was held when the key was pressed.

elementID

The ID of the object associated with the event, usually a VEShape Class object or the base map.

eventName

A String object representing the type of event that occurred.

leftMouseButton

A Boolean object representing whether the left mouse button has been clicked.

rightMouseButton

A Boolean object representing whether the right mouse button has been clicked.

mapStyle

The current map style as a String. Valid String results are a,r, h, and o.

sceneID

If the map style is set to bird's eye (oblique), the unique identifier of the current bird's eye scene.

sceneOrientation

If the map style is set to bird's eye (oblique), the orientation of the current bird's eye scene.

shiftKey

A Boolean object representing whether the shift key was held when the key was pressed.

clientX

The x coordinate of the mouse cursor relative to the browser window.

clientY

The y coordinate of the mouse cursor relative to the browser window.

screenX

The x coordinate of the mouse cursor relative to the screen.

screenY

The y coordinate of the mouse cursor relative to the screen.

mapX

The x coordinate of the map relative to the screen.

mapY

The y coordinate of the map relative to the screen.

zoomLevel

The current zoom level of the map.

Remarks

This is not supported in 3D mode.