Layer order when adding raster

3807
1
03-04-2015 09:31 PM
JanaPfefferova
New Contributor

Hi,

I followed sample (arcgis-runtime-samples-dotnet/DynamicLayerAddData.xaml.cs at master · Esri/arcgis-runtime-samples-do... ) on adding raster data.

I successfully handled to add my ecw raster format but is there any way to change the order of the added layer? The raster is displaying on the top of all other layer but I'd need it displays on the bottom.

Thanks!

0 Kudos
1 Reply
AnttiKajanus1
Occasional Contributor III

Instead of adding the layer using MapView.Map.Layers.Add (this adds it to the end of the collection), use insert to put it to the specific index (that would be 0 in this case) or just replace the first one if you want to replace the base map.

0 Kudos