MGMap.panMode   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

void panMode()

Description

Switches to Pan mode.

In Pan mode, the hand cursor is displayed, and the user can drag the map to pan in any direction. This method is the equivalent of the Pan button in the user interface.

Error Codes

-1 (busy)

Example

This example is designed to work with the Tutorial.mwf file that is included with Autodesk MapGuide Author. It switches to Pan mode:

function pan()
{
    alert("Drag the mouse to pan...");
	getMap().panMode();
}