An easier way would be to store all the groups in a Dictionary keyed on the group name
Then for each layer, you can walk back up the hierarchy via the layer's Group property. If null or empty, this means it's a top-level layer, otherwise find the matching group in the Dictionary and walk back up it's hierarchy via its Group property, checking each element's visibility as you are walking back up to the top. The Layer Group's Group property has the same meaning (null or empty = top-level element) For the second part, I can add a IsVisibleAtScale API to let check a layer's potential visibility at a given scale. - Jackie -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MaestroAPI-v3-5-GetFullPath-substitute-tp6995830p6996091.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
