Select to view content in your preferred language

change the order of visibility of layer in the card silverlight

2815
1
11-28-2014 02:44 AM
sakinachafaqi
Deactivated User

hello,

I want to create a list of visible layers in the map and change the order of visibility of these in the card silverlight. how to please.

thank you

0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor

Hi,

I think these SDK sample might help: ArcGIS API for Silverlight - Interactive Samples | ArcGIS for Developers (uses LegendControl in the Toolkit to update layer visibility).

You can get an enumerable of visible layers using Linq query

var visibleLayers = from l in MyMap.Layers

                              where l.Visible

                              select l;

If you need to re-order the layers, you can use Insert

MyMap.Layers.Insert(index, layer);

0 Kudos