Select to view content in your preferred language

Table of Contents - Legend Widget for FlexViewer 2.x

187033
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
Zamytodd
New Contributor
Hello,

Is there any way to add dynamically new elements to toc widget? I'm using the draw widget and I want to add my drawings as a layer in the toc. I'd appreciate any help.
0 Kudos
DanielMeaney
Occasional Contributor
Not clear on how/whether I can add a custom description for a layer.  I see in your demonstration app that the "description" pop-up seems to allow for some customized test - or does it just grab one of the properties of the service?

Ideally, I'd like to embed a URL in the description, so that users can get some narrative about the given layer.
0 Kudos
RhettZufelt
MVP Notable Contributor
Robert has explained that to me earlier in this thread.  Go to post 474 and read from there, should give you the info you need to get going.

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

R_

And yes, it does support hyperlinks in the description fields.
PS, the "layer" description is set in the layer properties in ArcMap when making the service.  The service definition is set using server manager (at least that is the only place I have found to do it).
Also, keep in mind that if you re-publish a service, even with the same name, the "service definition" will be overwritten/cleared (also clears cache settings)(have not found a way around this yet).
0 Kudos
ShaunWeston
Frequent Contributor
Just wondering how I could group the services in this TOC e.g. by tabs or some sort of divider. I'm just trying to figure out in the code how to do this. Wherabouts could I change the height between each of the TOC items?
0 Kudos
SpatialNinja
Esri Regular Contributor
I am using the TOC widget for Flex 3.1, and only dynamic layers seem to be showing in the the TOC.  All of my feature layers are not showing up.  Was this on purpose?  I know they were showing up in the TOC for 3.0.  Thanks, and great work on all your widgets.  Thanks!!

-Pat
Solutions Engineer | Spatial Ninja  | GIS ️ | Telecommunications
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Pat,

   No that is a bug left over from some testing I was doing. I will get a new version out soon that will have that fixed.
0 Kudos
GISDev1
Deactivated User
Hey Robert,

Could you push this TOC widget source code to your git so I can fork it and add some functionality.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
GIS Dev,

   Sure I will do that when I get a chance.
0 Kudos
MichaelKnapp
Frequent Contributor
Hi Robert -

I'm using the TOC widget (v3.1) and am excluding two layers from the list that are not meant to be displayed in the TOC, but are meant to provide layer popups when a user clicks on the map. However, I find that when I remove these two layers from the TOC list, the popups no longer open for these two layers...... unless I first toggle all the layers off, then on using the map switcher widget (by clicking on "more" first).

A version of the site is at: http://www.blueskiessolutions.net/NOAA_Flex/ if you want to check out the behavior.

I've tried just removing the Map Switcher widget altogether, but then no popups appear regardless of what I do.

Am I missing something, or might this be a bug.

Thanks.

M. Knapp
0 Kudos
RhettZufelt
MVP Notable Contributor
M,

Looked at your FV app a little and noticed that the NOAA_ESA_FINAL and MMPA_FINAL are the only layers you have a popupcofig file defined for, and they are not turned on/visible.

If I turn on either/both of these layers, click on it, I get a popup displayed.

R_
0 Kudos