Visual Basic (Declaration) | |
---|---|
Public Class OpenStreetMapLayer Inherits ESRI.ArcGIS.Client.TiledMapServiceLayer Implements IAttribution, ITileCache |
C# | |
---|---|
public class OpenStreetMapLayer : ESRI.ArcGIS.Client.TiledMapServiceLayer, IAttribution, ITileCache |
To use an OpenStreetMap tile layer in your map, add the OpenStreetMapLayer, select a style, and add attribution.
<esri:Map x:Name="MyMap"> <esri:OpenStreetMapLayer Style="Mapnik" /> </esri:Map>
<esri:Attribution Layers="{Binding ElementName=MyMap, Path=Layers}" />
When including the OpenStreetMapLayer in your map application, you must also include attribution. For the latest information, please read the usage guidelines for using OpenStreetMap tile layers in your application.
OpenStreetMap is released under the Create Commons "Attribution-Share Alike 2.0 Generic" license.
System.Object
System.Windows.DependencyObject
ESRI.ArcGIS.Client.Layer
ESRI.ArcGIS.Client.TiledLayer
ESRI.ArcGIS.Client.TiledMapServiceLayer
ESRI.ArcGIS.Client.Toolkit.DataSources.OpenStreetMapLayer
Target Platforms: Windows Vista, Windows 7