
Visual Basic (Declaration) | |
---|---|
Public Class OpenStreetMapLayer Inherits ESRI.ArcGIS.Client.TiledMapServiceLayer Implements IAttribution, ITileCache |
C# | |
---|---|
public class OpenStreetMapLayer : ESRI.ArcGIS.Client.TiledMapServiceLayer, IAttribution, ITileCache |
This sample shows how to create your own custom tiled layer.
To use it, first include OpenStreetMapLayer.cs in your Silverlight application.
Next add the OSM layer in a map by adding it to the layers collection:
<esri:Map x:Name="map"> <esri:Map.Layers> <samples:OpenStreetMapLayer ID="OSM" xmlns:dataSources="clr-namespace:ESRI.ArcGIS.Client.Toolkit.DataSources" /> </esri:Map.Layers> </esri:Map>
Please read the usage guidelines for using OpenStreetMapLayer in your application at http://www.openstreetmap.org.
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