| MGMap.selectPolygonEx |
|
boolean selectPolygonEx(MGMapLayer layer, MGCollection points)
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.
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.
-1 (busy)
-3 (illegal argument)
boolean - Returns True if successful; otherwise, returns False.
selectPolygonMode, digitizePolygonEx