ArcGIS API for Silverlight - Library Reference
Style Property
See Also  Send comments on this topic
ESRI.ArcGIS.Client.Toolkit.DataSources Namespace > OpenStreetMapLayer Class : Style Property

Gets or sets the map style. This property is ignored if the TileServers Property is set.

Syntax

Visual Basic (Declaration) 
Public Property Style As OpenStreetMapLayer.MapStyle
C# 
public OpenStreetMapLayer.MapStyle Style {get; set;}

Remarks

The OpenStreetMap organization hosts several types of maps that can be used as OpenStreetMapLayer's. To change which type of map is used, specify the OpenStreetMapLayer.Style Property to any one of several OpenStreetMapLayer.MapStyle Enumerations. The default OpenStreetMap.MapStyle Property is OpenStreetMapLayer.MapStyle.Mapnik meaning that if an OpenStreetMapLayer.Style is not specified in constructing an OpenStreetMapLayer, the OpenStreetMapLayer.MapStyle.Mapnik style will be used by default. The following is an XAML example of specifying a specific OpenStreetMapLayer.Style when defining a new OpenStreetMapLayer:

            <esri:Map x:Name="MyMap">
             <esri:OpenStreetMapLayer Style=”CycleMap”/>
            </esri:Map>
            

Requirements

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

See Also

© ESRI, Inc. All Rights Reserved.