MGMapLayerGroup.setMapLayers   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

boolean setMapLayers(MGCollection objects)

Description

Clears the contents of a map layer group and adds the specified map layers.

This method always refreshes the map when the autoRefresh flag is set to True or when called from the onViewChanging or onViewChanged 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 - A collection of MGMapLayer objects.

Returns

boolean - Returns True if successful; otherwise, returns False.

Error Codes

-1 (busy)

-3 (illegal argument)

See Also

getMapLayers, MapLayers