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

Syntax

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

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

Description

Removes the specified map features from the selection and updates the display.

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

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 containing the map features to remove from the selection.

notify - If true, fires the onSelectionChanged event after the removal.

Error Codes

-1 (busy)

-3 (illegal argument)

See Also

removeObject, removeObjectsEx