Select to view content in your preferred language

Table of Contents - Legend Widget for FlexViewer 2.x

187774
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
RobertScheitlin__GISP
MVP Emeritus
Scott,

   The request from other users was the ability to have layers in the map that could not be toggled on or off by the user, hence them not being listed in the TOC but being turned on when the parent layer is turned on. I initially thought this idea pretty odd but was encouraged to add this ability by other users. Yes I was referring to definitionexpression for a layer that is of type="feature". As a developer it is hard to develop something that meets everyone's needs...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   The new Flex Viewer 2.5 version of the TOC Widget is now available.

Version 2.5 - 12 Dec, 2011
* Added new Flex Viewer 2.5 Layer menu capability to TOC.
* Enhanced the visual appearance of the out of the box Flex Viewer 2.5 Layer options menu and added more options.
* You can choose to use esri's new description capability or the current functionality that the TOC Widget has for Metadata.
0 Kudos
ConejeSapiens
Emerging Contributor
Hi, Robert,
thanks for the upgrade.

I am experiencing a problem with the widget:
- I have an operational layer in the config.xml file as type="feature" and the symbology of the layer is a set to categories with unique values (example .png file attached).
- the widget shows the legend of this layer wrongly, as it only shows the last category. I mean, the legend only has the symbol of the last category and nothing of the others.

Could you give some hints to solve it??, thanks a lot.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Coneje,

   When you go to the REST Service Directory for this MapService and click legend does it appear in the results correctly?

For example if you enter a url like this in your browser:

http://MyServer/ArcGIS/rest/services/ParcelViewer/MapServer/legend
0 Kudos
deleted-user-RjoC4IOGTpoH
Deactivated User
Good Morning Robert,

I hope your Holidays are going well.

I was wondering how complicated it would be to have the legend widget (or possibly a second widget) work as in this site :
http://maps.dublin.oh.us/Dubscovery/

My thinking is that the operational layers categories would still be located under the "More" button and when you select the category you get the individual window with the same functionality as shown on the site above.

One of the complaints we get from users is that since we have many operational layers it involves a lot of searching for their particular legend and transparency. It would be nice if they have all their options within one category as above.

I have attempted to contact them to see if they would be willing to share some code but have not received any responses. I understand this may be something to add to a wish list.

Have a great Holiday.

Nestor.
0 Kudos
ConejeSapiens
Emerging Contributor
Hi, again,
In the path of the REST URL when I add legend I see the map service, but nothing about ¿legends?.
I must be missing something.

Anyway I send you what I see in the ArcGIS Desktop project, in TOC-Flex viewer and in the REST interface.

thanks



Coneje,

   When you go to the REST Service Directory for this MapService and click legend does it appear in the results correctly?

For example if you enter a url like this in your browser:

http://MyServer/ArcGIS/rest/services/ParcelViewer/MapServer/legend
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Coneje,

   What version of ArcGIS Server are you using and what service pack number if any?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nestor,

   I will not be adding this ability or producing another widget that has this ability and here is why. In RIA Web Maps the model (best Practice) is to design a map that is focused on one particular task or focus area. Web maps are not suppose to have LOTS of operational layers that force unskilled users to have to spend a lot of time searching for what they are looking for by going through a long list of layers, they should be focused and not have every available layer and the kitchen sink too. You should probably look at focusing your web map more and eliminating some operational layers.
0 Kudos
HaroldBostic
Frequent Contributor
Hello Robert,

I'm sure you have covered this, so hopefully it will be easy to respond.  When I combine the TOC with the Selection Widget, Once the Selection widget is activated, all the FeatureLayers used in the Selection Widget get added to the TOC, preventing FeatureLayers from being added is an option for me, but I'd figured I'll check with you to see if there is a cleaner solution.

Thanks for your hard work
0 Kudos
ConejeSapiens
Emerging Contributor
In the Desktop version-> 10.0
In the Server version-> I think it is the same, but where can I see it?, where in the Server Manager web?


-----------------------------------------
Coneje,

   What version of ArcGIS Server are you using and what service pack number if any?
0 Kudos