Display map

View inMAUIUWPWPFWinUIView on GitHub

Display a map with an imagery basemap.

Image of display map

Use case

The map is the fundamental building block of any GIS application and is used to specify how geographic data is organized and communicated to your users.

How to use the sample

Run the sample to view the map. Pan and zoom to navigate the map.

How it works

  1. Create an Map with a BasemapStyle.ArcGISImageryStandard basemap style.
  2. Create a MapView object to display the map.
  3. Set the map to the map view.

Relevant API

  • Basemap
  • Map
  • MapView

Tags

basemap, map

Sample Code

DisplayMap.xamlDisplayMap.xamlDisplayMap.xaml.cs
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
<UserControl
    x:Class="ArcGIS.UWP.Samples.DisplayMap.DisplayMap"
    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:esriUI="using:Esri.ArcGISRuntime.UI.Controls"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <esriUI:MapView x:Name="MyMapView"/>
    </Grid>
</UserControl>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.