<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 layers3) when the top parent group is expanded, all of the drop down menus disappear for all groupsAlso, 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
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.
//Style RichEditableText if (numberOfStyleColors > 4) { var cssStyleDeclarationRET:CSSStyleDeclaration = new CSSStyleDeclaration(); cssStyleDeclarationRET.setStyle("focusedTextSelectionColor", rolloverColor); cssStyleDeclarationRET.setStyle("unfocusedTextSelectionColor", rolloverColor); cssStyleDeclarationPopUpRendererLink.setStyle("linkActiveColor", titleColor); cssStyleDeclarationPopUpRendererLink.setStyle("linkNormalColor", textColor); cssStyleDeclarationPopUpRendererLink.setStyle("linkHoverColor", titleColor); topLevelStyleManager.setStyleDeclaration("spark.components.RichEditableText", cssStyleDeclarationRET, false); var cssStyleDeclarationTI:CSSStyleDeclaration = new CSSStyleDeclaration(); cssStyleDeclarationTI.setStyle("chromeColor", textColor); topLevelStyleManager.setStyleDeclaration("spark.components.TextInput", cssStyleDeclarationTI, false); topLevelStyleManager.setStyleDeclaration("spark.components.TextArea", cssStyleDeclarationTI, false); topLevelStyleManager.setStyleDeclaration("mx.controls.TextInput", cssStyleDeclarationTI, false); topLevelStyleManager.setStyleDeclaration("mx.controls.TextArea", cssStyleDeclarationTI, false); topLevelStyleManager.setStyleDeclaration("mx.controls.VSlider", cssStyleDeclarationTI, false); topLevelStyleManager.setStyleDeclaration("spark.components.VSlider", cssStyleDeclarationTI, false); topLevelStyleManager.setStyleDeclaration("mx.controls.HSlider", cssStyleDeclarationTI, false); topLevelStyleManager.setStyleDeclaration("spark.components.HSlider", cssStyleDeclarationTI, false); }
private function expandAll(item:TocItem):void { item.collapsed = false; _toc.expandChildrenOf(item, true); if(item.isGroupLayer()){ for each (var item2:TocItem in item.children){ expandAll(item2); } } }
Hi Robert,I am using v 2.5 of your TOC. I have written some html in my layer description in ArcMap, then published it as a service. I want to include hyperlinks in the Details/Description window. See attached screen shot.My html code is [HTML]<p>For more information, go to: <a href="http://www.oregon.gov/DOGAMI/pages/earthquakes/coastal/tsumaps.aspx" target="_blank"><span style="color:#FFD700">OREGON.gov</span></a></p>[/HTML]I want to change the hyperlink color to gold, but it's not coming through the swf. file and retains the default blue for the hyperlink. I assume I need to recompile the TOC widget. Do you know where it the DetailsWindow.mxml I can change the default hyperlink color? Thanks so much.
<usenewesridescription>false</usenewesridescription>
<p>For more information, go to: <a href="http://gis01.wch-rcc.com/final3" target="_blank"><span style="color:#FFD700">GIS01</span></a></p>
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.