Visual Basic (Declaration) | |
---|---|
Public Property Style As OpenStreetMapLayer.MapStyle |
C# | |
---|---|
public OpenStreetMapLayer.MapStyle Style {get; set;} |
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>
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8