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

Syntax

boolean removeMapLayerGroup(MGMapLayerGroup object)

Description

Removes the specified map layer group from the map.

This method always refreshes the map when the autoRefresh flag is set to True or when called from the onViewChanging or onMapLoaded events.

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

object - The map layer group to remove from the map.

Returns

boolean - Returns True if layer group successfully removed; False if layer group does not exist.

Error Codes

-1 (busy)

-3 (illegal argument)

See Also

createMapLayerGroup