Select to view content in your preferred language

Dynamic Legend Widget - Handling Sublayers

495
0
06-19-2012 08:41 AM
ColterSikora1
Emerging Contributor
Hello All,

I am working with a customized version of Robert Scheitlin's Dynamic Legend widget.  I am trying to have the widget display the sublayers within a group layer in my map service (see screenshot for context - I'd like to see the 'Zoning" sublayers display).  However, I have not had much luck with this.  I do notice that if I set a map layer so that visible="true" in the config.xml, all of the sublayers will display in the legend, even if I don't activate the group layer.  Removing the filterOutSubLayer function (in DynamicLegendWidget.mxml) does not affect the widget's performance either.  Has anyone made the DynamicLegend Widget work with group layers and their sublayers?  I haven't found any examples yet.

Thanks for your help in advance!

Colter

[ATTACH=CONFIG]15321[/ATTACH]
Tags (2)
0 Kudos
0 Replies