Select to view content in your preferred language

Table of Contents - Legend Widget for FlexViewer 2.x

117713
664
12-01-2010 07:30 AM
RobertScheitlin__GISP
MVP Emeritus
All,

Here is the next in my line of widgets for the FlexViewer 2.x.

The legend portion of this widget is the same code as my dynamic legend widget so,

IT IS FOR ARCGIS SERVER 10 OR GREATER ONLY

This is just a simple TOC Widget that includes my dynamic legend component.
This widget also includes my enhancement for map service transparency,
right click context menu for zoom to make layer visible, and my scale
dependent renderer for the TOC checkboxes.
Tags (2)
0 Kudos
664 Replies
Erickson_Contract_Surveying_
New Contributor
No matter what values I set for Expand Everything or Collapse Legend, I cannot get Legend to show.  At first I thought that my presence of Groups were causing issues.  But I removed everything from the groups and the issue persisted.  Can someone tell me definitively what combination of settings causes everything including the symbology of the legend to be visible?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Monty,

   You can set it this way:

        <expanded everything="true">true</expanded>
        <collapselegends>false</collapselegends>
0 Kudos
Erickson_Contract_Surveying_
New Contributor
Monty,

   You can set it this way:

        <expanded everything="true">true</expanded>
        <collapselegends>false</collapselegends>


I had it as and it still will not show the legend:

        <tocsettings>
  <expanded everything="true">true</expanded>
  <collapselegends>false</collapselegends>
  <disablezoomtomenuoption>true</disablezoomtomenuoption>
</tocsettings>

We have security enabled through AGS for the map service, so I tried the same with the 3.15 version since it said it dealt with showing legends in secure services.  No change though.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Monty,

   What exactly do you mean by
We have security enabled through AGS


  1. Are you using a proxy?

  2. Are you using security through tokens?

  3. Are you using SSL?

  4. Are you saying that even when you manually expand the toc items that there is no legend swatches?

0 Kudos
Erickson_Contract_Surveying_
New Contributor
Monty,

   What exactly do you mean by

  1. Are you using a proxy?

  2. Are you using security through tokens?

  3. Are you using SSL?

  4. Are you saying that even when you manually expand the toc items that there is no legend swatches?



We are using the AGS Web Adapter, no tokens, no ssl, and yes even when I expand manually there are no swatches.  Attached screenshot.

[ATTACH=CONFIG]22598[/ATTACH]
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Monty,

   Do you have the ArcGIS Service directory diabled? We are talking about ArcGIS Server 10.1 right? Do you have a sp1 installed?
0 Kudos
HaroldBostic
Occasional Contributor II
So the identity manager pops up when you go into your viewer?  Are you working with the uncompiled version?
0 Kudos
JasonStanton__GISP
Occasional Contributor
Robert,

Have you ever considered adding the ability to save legend properties similar to the eBookmark or eDraw widget?  For example if the user has turned layers on/off or set transparencies they could save those 'settings' and load them back in later?  I'm not even sure that's possible, but one of our communities asked for this.

Jason
0 Kudos
Erickson_Contract_Surveying_
New Contributor
Monty,

   Do you have the ArcGIS Service directory diabled? We are talking about ArcGIS Server 10.1 right? Do you have a sp1 installed?


Services Directory is enabled....we are at AGS 10.1 sp1.  We have internal viewers that use feature services that display the swatches, screenshot attached.

[ATTACH=CONFIG]22633[/ATTACH]
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Monty,

   So the layer that are not working for you do you have them added in the main config.xml using the http:server:6080\blah blah or the web adaptor urls?
0 Kudos