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




mapDesc
The MapDescription object that has properties for the user map.
layerId
ID of the layer.
visibility
True to set to visible, false to set to not visible.
Sets the specified layer's visibility in the MapDescription.

Syntax

Visual Basic (Declaration) 
Public Shared Sub UpdateVisibleLayer( _
   ByVal mapDesc As MapDescription, _
   ByVal layerId As String, _
   ByVal visibility As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim mapDesc As MapDescription
Dim layerId As String
Dim visibility As Boolean
 
MapFunctionality.UpdateVisibleLayer(mapDesc, layerId, visibility)
C# 
public static void UpdateVisibleLayer( 
   MapDescription mapDesc,
   string layerId,
   bool visibility
)

Parameters

mapDesc
The MapDescription object that has properties for the user map.
layerId
ID of the layer.
visibility
True to set to visible, false to set to not 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.