ArcGIS map image layer

View inAndroidFormsUWPWPFWinUIiOSView on GitHub

Add an ArcGIS Map Image Layer from a URL to a map.

screenshot

Use case

Map image layers are also referred to as dynamic map services. These services generate images dynamically on the server and send the resulting image to the requesting client. This is useful when rendering complex cartography or large amounts of data in a connected environment, as the client simply displays the image that the server returns. This can result in more accurate and faster-performing layers.

How to use the sample

Run the sample and view the map image layer. As you navigate the map, the layer issues image requests for the new map extent. The resulting images are rendered on the screen.

How it works

  1. Create a Map.
  2. Create an ArcGISMapImageLayer with the URL to a map image service.
  3. Add it to the map's operational layers collection.

Relevant API

  • ArcGISMapImageLayer

Tags

display, image, layer, map

Sample Code

ArcGISMapImageLayerUrl.xamlArcGISMapImageLayerUrl.xamlArcGISMapImageLayerUrl.xaml.cs
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="ArcGISRuntime.Samples.ArcGISMapImageLayerUrl.ArcGISMapImageLayerUrl"
             xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms"
             xmlns:mapping="clr-namespace:Esri.ArcGISRuntime.Mapping;assembly=Esri.ArcGISRuntime">
    <Grid>
        <esriUI:MapView x:Name="MyMapView">
            <mapping:Map />
        </esriUI:MapView>
    </Grid>
</ContentPage>

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