foreach (LayerItemViewModel livm in _legend.LayerItems) { if (livm.Layer.ID == "VantageLayers") { var subLayerItem = livm.LayerItems.FirstOrDefault(); for (int i = 0; i < subLayerItem.LayerItems.Count; i++) { if (subLayerItem.LayerItems.IsVisible) { sb.Append(subLayerItem.LayerItems.SubLayerID + Environment.NewLine); sb.Append(subLayerItem.LayerItems.Label + Environment.NewLine); } } }
Hey,Does anybody have any ideas on how to set up a system where the users can select which data sets that they want turned on as a default? This is for an internal system, where the user name is available. I am using Dominique's reorganize legend sample, and I would like it to turn on the layers according to each user when they log in.Thanks, Chris
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.