ArcGIS map image layer

View inWPFUWPFormsiOSAndroid
View on GitHub

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

screenshot

Use case

ArcGISMapImageLayer instances are rendered server side as a single raster image, so they always show the latest data at the time of the request. Since the data is rendered as a single image, it can have performance benefits versus a feature layer with complex geometries.

How it works

  1. Create a new Map and set it to a MapView.
  2. Create a new ArcGISMapImageLayer with an input URL.
  3. Add the layer to the map.

Relevant API

  • Map
  • ArcGISMapImageLayer
  • MapView

Tags

ArcGIS dynamic map service layer, ArcGISMapImageLayer, layers

Sample Code

ArcGISMapImageLayerUrl.xamlArcGISMapImageLayerUrl.xaml.cs
            
1
2
3
4
5
6
7
8
9
10
11
12
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage 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"
             x:Class="ArcGISRuntime.Samples.ArcGISMapImageLayerUrl.ArcGISMapImageLayerUrl">
  <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.