ArcGIS Runtime SDK for WPF - Library Reference
VisibleLayers Property
See Also 
ESRI.ArcGIS.Client.Toolkit.DataSources Namespace > KmlLayer Class : VisibleLayers Property

Gets or sets the names of the KML sublayers that have to be initialized as visible. If this property is not set, the visibility defined in the KML document is used.

Syntax

Visual Basic (Declaration) 
Public Property VisibleLayers As IEnumerable(Of String)
C# 
public IEnumerable<string> VisibleLayers {get; set;}

Remarks

The wildcard "*" allows to set all descendant layers as visible.

For examples:

  • VisibleLayers="*" sets all sublayers as visible
  • VisibleLayers="folder/*" set all sublayers under 'folder' as visible
  • VisibleLayers="folder,folder/*" sets 'folder' and all its sublayers as visible

Note that this list is a configuration property and doesn't return the sublayers that are currently visible. To know whether a sublayer is currently visible, you have to go through the layers hierarchy and get the current visibility of the layer.

Property Value

The visible layers enumeration.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.