ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
UpdateVisibleLayers Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > MapFunctionality Class : UpdateVisibleLayers Method




mapDesc
The MapDescription object that has properties for the user map.
visibleLayers
An array of IDs of layers to set visible.
Sets the specified layers to visible in the MapDescription's layers, and other layers to not visible.

Syntax

Visual Basic (Declaration) 
Public Shared Sub UpdateVisibleLayers( _
   ByVal mapDesc As MapDescription, _
   ByVal visibleLayers() As Object _
) 
Visual Basic (Usage)Copy Code
Dim mapDesc As MapDescription
Dim visibleLayers() As Object
 
MapFunctionality.UpdateVisibleLayers(mapDesc, visibleLayers)
C# 
public static void UpdateVisibleLayers( 
   MapDescription mapDesc,
   object[] visibleLayers
)

Parameters

mapDesc
The MapDescription object that has properties for the user map.
visibleLayers
An array of IDs of layers to set visible.

Remarks

The MapDescription maintains properties of the user's map when using an ArcGIS Server map service. Changing the MapDescription does not affect the state of the underlying ArcGIS Server service itself, but instead is applied to the current user's map. The Web ADF maintains the state of the MapDescription in session, in order to persist properties of the map between requests.

See Also

© 2010 All Rights Reserved.