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

Syntax

boolean selectPolygonEx(MGMapLayer 
  layer, MGCollection points)

Description

Selects all map features that fall within the specified polygon.

This method replaces the selectPolygon method in earlier versions of the Autodesk MapGuide Viewer API and supports the Autodesk MapGuide Viewer Plug-In, Java Edition, and ActiveX Control with the same syntax. The older method will still work in Release 6, but you should use selectPolygonEx in all future application development.

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.

Parameters

layer - Map layer containing the features to select, or null to select from all layers. A map layer must be selectable for any features on it to be selected.

points - Collection of MGPoints containing longitude/latitude pairs.

Error Codes

-1 (busy)

-3 (illegal argument)

Returns

boolean - Returns True if successful; otherwise, returns False.

See Also

selectPolygonMode, digitizePolygonEx