MGSelection.addObjects   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

ActiveX Control: void addObjects(MGCollection objects, boolean notify)

Plug-In/Java Edition: void addObjects(Vector objects, boolean notify)

Description

Adds the specified map features to the selection and updates the display.

For compatibility between the Autodesk MapGuide Viewer Plug-In, Java Edition, and ActiveX Control, use addObjectsEx instead of addObjects.

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.

Parameters

objects - A java.util.Vector or MGCollection of MGMapObjects. notify - If true, fires the onSelectionChanged event after the addition.

Error Codes

-1 (busy)

-3 (illegal argument)

See Also

addObject, addObjectsEx