Layer order when adding raster

03-04-2015 09:31 PM
New Contributor


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.


0 Kudos
1 Reply
Regular Contributor II

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