Select to view content in your preferred language

Enhanced Layer List Widget

9893
36
07-16-2013 09:59 AM
RobertScheitlin__GISP
MVP Emeritus
All,

   Here is my latest widget for Flex Viewer. It is the first 3.4 widget I have been able to publish due to some issues with ArcGIS.com.

This is my replacement to the TOC Widget

This  widget provides an enhanced version of the Layer List Widget for the  Flex Viewer. This enhanced version contains UI enhancements that are  currently request for the OTB version, such as extended layer menu that  contains collapse all, expand all, zoom to make visible, and changed  behavior on the description option. The enhanced version also supports  legends for CSVLayer and GeoRSSLayers as well a default legends for  basemap rasters, annotation and raster catalogs.

It is recommended that you use this widget in Application Builder 3.4 as it has been fully integrated into the App Builder GUI and you will not have to deal with XML.

http://www.arcgis.com/home/item.html?id=58d9bb5693c94918a3934781d7234d18
Tags (2)
0 Kudos
36 Replies
RobertScheitlin__GISP
MVP Emeritus
Arthur,

   I think you found a bug on your number 2 question. I will have to get the  "Zoom to make layer visible" fixed on certain layers.
0 Kudos
ArthurRodriguez
Emerging Contributor
I think part of my issue was what you pointed out about the group layers.  I don't have any groups, but I am seeing that now all my services have the two check boxes by them.  One for the Service Name, and then one for the layer/classification title.  Just have to figure out the best way to direct users to finding the right tools, next to the right layers.

Thanks again for all the help, Robert!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Arthur,

  Version 3.6.2 is now released that fixes the group layer issue.
0 Kudos
MatthewColwin
Emerging Contributor
Hi, I've downloaded 3.6.2, mostly because I really liked the Description feature as a way to more easily and succinctly describe the data layer to a user.

However, I have a couple questions. I have 3 services in my application. A feature service, a map service, and a dynamic map service. The first two are single datasets, while the dynamic map service was added so that 5 different published datasets would be grouped together as one layer in the layer list (also for labeling, but that is unimportant). When using the eLayerList widget, the 5 grouped datasets work exactly as I want, where there is a Layer called "Regions" that can be expanded to see the 5 datasets, and when each of these datasets are expanded, you see their symbology. However, the other two datasets that aren't part of a 'group' also require that the user expands two layers (i.e. expand "Projects", and then expand a second "Projects" entry) before the symbology shows. Is there a way to make single layers not have to be expanded twice to view symbology?

Second, is there a way to only have certain layers be expanded when the widget loads? So if I have my 3 layers, but only 2 of them are turned on when it loads, can I make it so those two layers are expanded, but the layer that is turned off is not?

Thanks for your help, this is a great widget!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Matthew,

   Neither of your requests are currently possible in the widget.
0 Kudos
MattPohl
Frequent Contributor
Sorry... I posted the below to the wrong thread:

I am running into a slight problem when trying to exclude a sublayer from the eLayerList. I am using the following for the exclusion:
Code:

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

   Hmm. I will have to look into this one when I get some free time.
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:
Code:

<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


I believe that this is related to grouped sub layers of a service. If I turn on a layer that is part of a group, and then turn off a layer that is not part of a group, the group layers automatically turn off too. My above post had the excluded layer inside a group layer. So even though the configuration is a little different, both scenarios are creating the same end result. Any one else seeing this?

Matt
0 Kudos
MattPohl
Frequent Contributor
I believe that this is related to grouped sub layers of a service. If I turn on a layer that is part of a group, and then turn off a layer that is not part of a group, the group layers automatically turn off too. My above post had the excluded layer inside a group layer. So even though the configuration is a little different, both scenarios are creating the same end result. Any one else seeing this?

Matt



Not sure how or why, but this is no longer an issue anymore and the expected behavior is what I am getting. I didn't do anything different to the service, mxd, or code, so I am not sure what happened. This is a great widget Robert, thank you.

Matt
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Matt,

   Great news, because I was not finding anything.
0 Kudos