Select to view content in your preferred language

Layer order when adding raster

3894
1
03-04-2015 09:31 PM
JanaPfefferova
Deactivated User

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
Deactivated User

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