Set map spatial reference

This sample demonstrates how you can set the spatial reference on a Map and all the layers would project accordingly.

Set map spatial reference

Code

<UserControl 
    x:Class="ArcGISRuntime.WPF.Samples.SetMapSpatialReference.SetMapSpatialReference"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013" 
    mc:Ignorable="d" 
    d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <esri:MapView Name="MyMapView"/>
    </Grid>
</UserControl>


In this topic
  1. Code