<tocsettings> <expanded>false</expanded> <collapselegends>true</collapselegends> </tocsettings>
<tocsettings> <expanded>false</expanded> <collapselegends>false</collapselegends> </tocsettings>
private static function createTocLayer(parentItem:TocItem, layerInfo:LayerInfo, layerInfos:Array, visibleLayers:Array, tlayer:Layer, excludeLayers:ArrayCollection, iscollapsed:Boolean, isdisableZoomTo:Boolean):TocLayerInfoItem
{
const item:TocLayerInfoItem = new TocLayerInfoItem(parentItem, layerInfo, visibleLayers);
item.scroller = parentItem.scroller;
item.tocMinWidth = parentItem.tocMinWidth;
item.disableZoomTo = isdisableZoomTo;
item.collapsed = iscollapsed;
I am trying to use the TOC with an tiled operational layer. Is this possible?
It functions, but not symbology is displayed in the TOC. I turned off the layervisibility in the map switcher and theviewer is not behind a firewall.
Hi Robert,
I am using the latest version of your TOC tool for 3.0 and I am having a few problems with the drop down menu inside of it. I have tried the compiled version and the App Viewer 3.0 version. I'm not sure if it is something I am doing wrong?
Here are the issues I am having:
1) the "zoom to" and "description" menu items do not appear
2) the drop down menu is only available for the parent groups, not the child layers
3) when the top parent group is expanded, all of the drop down menus disappear for all groups
Also, since I have mostly raster images with stretched data values, is there anyway to "fix" the stretched legend symbol so it does not split the it in the middle? The legends are continuous in ArcMap but then when I publish the maps they come out this way in the viewer. This is not a problem with your tool but with the map service because I also saw this behavior with the ESRI layerlist tool. I have looked on the forums and have not been able to find a fix.
I would also prefer to remove the raster symbol at the bottom of the stretched legend since it is not needed but not a big deal if I can't.
Here is a link to my viewer which is publicly available so you can see some of the behaviors yourself if you want:
http://cquest.arc.nasa.gov:8399/flexviewers/global_cquest/
Thanks in advance for your help and for the cool tools!
Robert,
No need to answer issue #1 from my previous post. I just realized that those items are false by default in the xml. I apologize for my ignorance. But the other issues still stand.
And one more question...can you change the behavior of the "expand/collapse all" to only to apply to the subgroups, not the entire dataset/layer list? Also, "select/deselect all" for subgroup visability would be a nice feature too.
Thanks again,
Vanessa