| MGMapLayerGroup.setVisibility |
|
boolean setVisibility(String visi)
Sets a flag that affects the visibility of all map layers in the group.
For the map layer to actually be visible on the map, this property and the layer's visibility property must be True and the current view must be within the visible scale range defined for the group.
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.
visibility - Visibility flag.
boolean - Returns True if successful; otherwise, returns False.
-1 (busy)