Select to view content in your preferred language

Table of Contents - Legend Widget for FlexViewer 2.x

122676
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
Bret,

   Not sure what the analyst was thinking of but there is not a way to configure groups in my eLayerList Widget (which must be the one you are using, as the TOC widget was retired, and is not available for 3.5). If you have grouped layers ArcMap then they will be grouped in the Layer List Widget and the eLayer List Widget as well.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Keisuke,

   If "mcdonough_highway" is the label that you have in your main config.xml for that layer, then this should work.
0 Kudos
KeisukeNozaki
Frequent Contributor
Yes, it worked.
Service was labeled as GIS Layers.
Thank you very much.
0 Kudos
MattPohl
Frequent Contributor
I am running into a slight problem when trying to exclude a sublayer from the eLayerList. I am using the following for the  exclusion:
<excludelayers>
    <excludelayer mapservice="serviceNameInConfig">7</excludelayer>
    </excludelayers>
This works fine when the viewer loads, sublayer 7 is not listed in the widget. Being that I have it turned on in the mxd it displays when the viewer loads as well, which is great. However, when I turn a layer on or off in the widget, the sublayer that is excluded turns off too. Once it turns off I can not get it to turn back on as it is excluded from the widget. I am using the latest version of both the viewer and the eLayerList. Any thoughts would be greatly appreciated.

Thanks,

Matt
0 Kudos
NormBushor
Occasional Contributor

Hey Robert,

I am having an issue with ElayerList Version 3.7 (compiled) and the Export Map Task and Print widget.  When I use the excludelayers tag everything works fine for printing first time around.  As soon as I turn on a layer that are labels  for owner names a bunch of layers no longer print (they are either sub annotation, or grouped layers in the Service).  If I turn the labels off and print again, it still looses all the layers on the print. Those layers will not print again unless the application is restarted.  So I've commented the excludelayers option out in the elayerlist widget and all my layers are printing out for now.  I believe this worked correct at 3.6 with a 10.2.1 install.  I've recently gone to 10.3.0 and am just now downloading 10.3.1 onto a development server to see if I can reproduce those results there.  Here is a link to a test page showing that problem...Manitowoc County Advanced GIS Viewer   Here is a link to the new page with the exclude layers commented out... Manitowoc County Advanced GIS Viewer  Here is a link to the Service that has subgroupings being excluded. Web_MercParBaseSandBox (MapServer)

You will need to zoom in to a single parcel to get all the anno to turn on, along with some other layers.

Thanks!

norm

0 Kudos