Open StreetMap Layer

Download Samples Repository

Description

Demonstrates adding an Open StreetMap layer to a Map in XAML.

"Desktop" "Store" "Phone" Available for Desktop, Store, Phone

Sample Code

<UserControl x:Class="ArcGISRuntime.Samples.Desktop.OpenStreetMapLayerSample"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
    <Grid x:Name="LayoutRoot" >
        <esri:MapView WrapAround="True">
            <esri:Map>
                <esri:OpenStreetMapLayer />
            </esri:Map>
        </esri:MapView>
    </Grid>
</UserControl>
using System.Windows.Controls;

namespace ArcGISRuntime.Samples.Desktop
{
    /// <summary>
    /// Demonstrates adding an Open StreetMap layer to a Map in XAML.
    /// </summary>
    /// <title>Open StreetMap Layer</title>
	/// <category>Layers</category>
	/// <subcategory>Tiled Layers</subcategory>
	public partial class OpenStreetMapLayerSample : UserControl
    {
        public OpenStreetMapLayerSample()
        {
            InitializeComponent();
        }
    }
}
Feedback on this topic?