Share via


VEMap.onmousewheel 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 wheel is moved.

VEMap.AttachEvent("onmousewheel", 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.

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 method is not supported in 3D mode, and the coordinate values returned in Firefox 1.5 and 2.0 are not correct.