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

Syntax

MGMapLayerGroup createMapLayerGroup(String name)

Description

Creates a new map layer group and adds it to the map.

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" chapter in the Autodesk MapGuide Developer's Guide.

Parameters

name - The name of the map layer group you wish to create. To avoid conflicts, you should give each layer group a unique name.

Returns

MGMapLayerGroup - The new MGMapLayerGroup object.

Error Codes

-1 (busy)

-3 (illegal argument)

See Also

removeMapLayerGroup, redrawLegend