Map.Layers Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the collection of MapLayer objects that are children of the Map control.

Namespace:  Microsoft.Phone.Maps.Controls
Assembly:  Microsoft.Phone.Maps (in Microsoft.Phone.Maps.dll)

Syntax

Public ReadOnly Property Layers As Collection(Of MapLayer)
public Collection<MapLayer> Layers { get; }

Property Value

Type: System.Collections.ObjectModel..::.Collection<(Of <(MapLayer>)>)
The collection of MapLayer objects that are children of the Map control.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

Map Class

Microsoft.Phone.Maps.Controls Namespace