Select to view content in your preferred language

FlexViewer3.0 Legend Widget Operational Layer Visibility Behavior Change

970
4
07-25-2012 07:51 AM
MattEitrem
Regular Contributor
Is there a way to control the operational layers visibility for sublayers of a group layer when the group layer is turned off and the sublayers are still checked on? This behavior popped up at version 3.0 and was working as expected at version 2.x

Here is the control tag reference in the widget configuration xml file LegendWidget.xml
<respectcurrentmapscale>true</respectcurrentmapscale>


Thanks,
Tags (2)
0 Kudos
4 Replies
SarthakDatt
Frequent Contributor
Hey Matt,

The expected behavior is that if the group layer is turned off, all the sublayers(even if they are still checked-on in the TOC) will not appear in the legend. The Legend component remains in-sync with what layers/sublayers are visible on the map. Is that not what you are seeing?

There was another bug reported for version 3.0. Take a look at this thread to see if that is something effecting your application: http://forums.arcgis.com/threads/60137-Viewer-3.0-Legend-Widget-Showing-all-layers?p=207648#post2076...
0 Kudos
MattEitrem
Regular Contributor
Hey Matt,

The expected behavior is that if the group layer is turned off, all the sublayers(even if they are still checked-on in the TOC) will not appear in the legend. The Legend component remains in-sync with what layers/sublayers are visible on the map. Is that not what you are seeing?

There was another bug reported for version 3.0. Take a look at this thread to see if that is something effecting your application: http://forums.arcgis.com/threads/60137-Viewer-3.0-Legend-Widget-Showing-all-layers?p=207648#post2076...


I am not seeing the expected behavior. All of the sublayers that are checked on but are in a group layer that is checked off are showing up in the legend. The post you referenced does not seem to be the same issue, as it references all layers showing up in the legend regardless of whether or not they are checked on or off.
0 Kudos
RhettZufelt
MVP Notable Contributor
Is this the standard legend widget or the dynamicLegend?

Also, is there a chance the service(s) were published using 9.3.1 or something earlier than 10?

Might try to re-publish the service, clear cache, etc.

R_
0 Kudos
MattEitrem
Regular Contributor
I am using the standard legend and all services are published with ArcServer 10.0 Spk5. I have recently republished several of the services and the legends are working fine on 2.x viewers. One thing to note is that I configured the app by hand, not with the app builder.
0 Kudos