| MGSelection.addObjectsEx |
|
void addObjectsEx(MGCollection objects, boolean notify)
Adds multiple map features to the selection and updates the display.
This method replaces the addObjects 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 addObjectsEx for all future 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" in the Autodesk MapGuide Developer's Guide.
objects - Collection of MGMapObjects to add to the selection.
notify - If true, fires the onSelectionChanged event after the addition.
-1 (busy)
-3 (illegal argument)