Select to view content in your preferred language

Table of Contents - Legend Widget for FlexViewer 2.x

161343
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
giuseppemolinario
Deactivated User
Giuseppe,

   Actually, esri came up with the TOC menu first, I just added more options and made it look better.
WMS layer legends are not supported.

I do look for the Flex team to add a true TOC like this to the API and/or viewer as all the other APIs have this functionality (Silverlight, JS).


Hi Robert,

I might have been looking in the wrong place, but I can't find a full explanation of all the supported tags for the widget in both the config.xml file and the widget's own xml file. I'm asking because I want to make sure I use all the functionality that you've made available. Also, currently, I have two problems and a question about an implementation:


  • the icons for the "expand all layers" and "collapse all layers" are not showing

  • i am not seeing the "description" icon on any of my layer's menus, and am thinking I am missing how to enable it

  • the question is: (and I think i might know the answer) is there a way to change the width and height of the widget? or would that involve changing the code and recompiling it?


Thanks again,

Giuseppe
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Giuseppe,

   I have not documented this widget like some of my others (probably need to).

   Here is a link to  thread that explains how to setup the metadata description for a layer in a map service:

http://forums.arcgis.com/threads/18453-Table-of-Contents-Legend-Widget-for-FlexViewer-2.x?p=111587&v...

As far as Icons not showing up...? Are you using the compiled or uncompiled?

As far as changing the size of the widget that is simple in Flex Viewer 2.5 as all you need to do is add a width and height to the widget in the main config.xml
0 Kudos
giuseppemolinario
Deactivated User
Hey Robert,

Good to know about the size.

I am using the compiled version. Is it looking for the icons in it's own "asset" folder or the main one? because it might just be that I unzipped it into a folder within another folder, so it might not find the general asset folder at the root of flexviewer folder.

I think I have a bigger problem with the "description" button - I am staring at an MXD that clearly has all the metadata filled out at the mxd level, and so does the data frame, and so do the layers, yet, I am seeing the button only next to the layers, but not at the "mxd" level. maybe it has to do with my missing icons - aka the list is not displaying correctly?


thx

g



Giuseppe,

   I have not documented this widget like some of my others (probably need to).

   Here is a link to  thread that explains how to setup the metadata description for a layer in a map service:

http://forums.arcgis.com/threads/18453-Table-of-Contents-Legend-Widget-for-FlexViewer-2.x?p=111587&v...

As far as Icons not showing up...? Are you using the compiled or uncompiled?

As far as changing the size of the widget that is simple in Flex Viewer 2.5 as all you need to do is add a width and height to the widget in the main config.xml
0 Kudos
giuseppemolinario
Deactivated User
Hi robert - one more thing - does setting a height and width in the config.xml disable the horizontal scroll? looks like it does here.

thx

g

Giuseppe,

   I have not documented this widget like some of my others (probably need to).

   Here is a link to  thread that explains how to setup the metadata description for a layer in a map service:

http://forums.arcgis.com/threads/18453-Table-of-Contents-Legend-Widget-for-FlexViewer-2.x?p=111587&v...

As far as Icons not showing up...? Are you using the compiled or uncompiled?

As far as changing the size of the widget that is simple in Flex Viewer 2.5 as all you need to do is add a width and height to the widget in the main config.xml
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Giuseppe,

   So as far as the assets you need to make sure you have this exact path: src\widgets\TOC\assets\images. All the assets that this widget needs are found in that folder.

For the Description button and the horizontal scroll issues you are having, please post a new thread. Now that the MVP program is back I don't like to continue to answer on these muti page forum posts as I have in the past.
0 Kudos
giuseppemolinario
Deactivated User
Robert,

Thanks for the clarification on nthe TOC widget path. Now my icons appear.

I will start new threads for the other two questions - thanks.

EDIT  -sorry Robert, do you want me to start a new thread all together? even though my q's are relative to your TOC only? Or did you meant to just post a new "reply to thread" without quoting this post? thx

Giuseppe

Giuseppe,

   So as far as the assets you need to make sure you have this exact path: src\widgets\TOC\assets\images. All the assets that this widget needs are found in that folder.

For the Description button and the horizontal scroll issues you are having, please post a new thread. Now that the MVP program is back I don't like to continue to answer on these muti page forum posts as I have in the past.
0 Kudos
RyanMalhoski
Deactivated User
Robert,

First, I want to thank you for all the work you have done on your widgets. They have been a great help in developing my site. 😄

Second, I have loaded your widget into my viewer and have an issue with text labels not showing up next to the icons in the drop down button.

[ATTACH=CONFIG]11973[/ATTACH]

The labels in the xml haven't changed from your default:

<labels>
<visibilitylabel>Layer Visibility</visibilitylabel>
<zoomtoextent>Zoom To Layer Extent</zoomtoextent>
<expandall>Expand All Layers</expandall>
<collapseall>Collapse All Layers</collapseall>
<zoomtomakevisible>Zoom To Make Visible</zoomtomakevisible>
<generatinglegendmsg>Generating TOC Legend</generatinglegendmsg>
</labels>

Do you know what could be causing this?

I'm on Server10, Flex viewer 2.5.

Thanks!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ryan,

    Are you using the uncompiled version?
0 Kudos
RyanMalhoski
Deactivated User
No, I am using the compiled version.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ryan,

  And you are sure you are using Flex Viewer 2.5?... I have never seen this before as the widget gets those labels from the ViewerStrings for your particular lanaguage.
0 Kudos