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

Syntax

void selectRadiusMode()

Description

Selects Select Radius mode.

In this mode, Autodesk MapGuide allows the user to digitize a circle and select all map features that fall within the circle.

Note that this method does not work during a busy state. For additional information about the busy state, refer to "Handling Busy State and Map Refresh" chapter in the Autodesk MapGuide Developer's Guide.

Error Codes

-1 (busy)

Example

The following example is designed to work with the Tutorial.mwf file that is included with Autodesk MapGuide Author. It invokes radius selection mode.

Note that the user can make a radius selection only if one or more selectable layers is visible.

function radSelect() 
{
    getMap().selectRadiusMode();
}

Note: The selectPolygonMode() example shows how to check for selectable map features before calling a Viewer API selection method.

See Also

selectRadius