Hi, I'm using TOC widget 3.0 uncompiled version. Some of my layers have long names and therefore title text is not visible entirely. It is covered by menu items (zoom to, transpareny...etc). How can I fix that? I'm attaching an image so the issue would be clearer. Thaqnks for your help. Best regards, Petra
<toccomp:TOC id="toc" width="100%" height="100%" labels="{[ZoomToMakeVisible,ExpandAll,CollapseAll]}" useesridescription="{UseNewEsriDescrption}" expanded="{expanded}" disableZoomTo="{disableZoomTo}" fullexpanded="{fullexpand}" legendCollapsed="{legendCollapsed}" liveScrolling="false" variableRowHeight="true" tocMinWidth="{wTemplate.width - 45}" scroller="{scr}" loader="{boxMessage}" paddingTop="0" paddingBottom="0"/> </s:Group>
tocMinWidth="700"
Jefferson, I actually never designed the widget to be used more than once in an application.
Kim;Please attach your xml here, thus I can take a look.
Petra, That appears to be in this part of the TOCWidget.mxml: <toccomp:TOC id="toc" width="100%" height="100%" labels="{[ZoomToMakeVisible,ExpandAll,CollapseAll]}" useesridescription="{UseNewEsriDescrption}" expanded="{expanded}" disableZoomTo="{disableZoomTo}" fullexpanded="{fullexpand}" legendCollapsed="{legendCollapsed}" liveScrolling="false" variableRowHeight="true" tocMinWidth="{wTemplate.width - 45}" scroller="{scr}" loader="{boxMessage}" paddingTop="0" paddingBottom="0"/> </s:Group> I just hardcoded it to tocMinWidth="700" (for the attached example) and it made my "extra long test description" to show. [ATTACH=CONFIG]18332[/ATTACH] R_
Robert,Is it possible to 'hide' or 'disable' specific layers within a service on this table of contents? I'm guessing that it looks at the service as a whole and if I have a dynamic map service containing all my layers I may be out of luck.Thanks,Scott
<excludelayers> <excludelayer mapservice="Symbols"></excludelayer> <excludelayer mapservice="Utilities">8</excludelayer> </excludelayers>
<excludelayer mapservice="Utilities">8</excludelayer>
Scott, It is possible to exclude a specific layer from a map service which (Removes it from the map as well), this is all that is currently possible. <excludelayer mapservice="Utilities">8</excludelayer> Where 8 is the layer id (meaning the ninth layer of this service).
<layer label="Hanford Wells" type="dynamic" visible="true" alpha="1" url="http://host/ArcGIS/rest/services/Base/wells/MapServer"> <sublayer id="1" popupconfig="popups/PopUp_wells.xml"/> <sublayer id="0" popupconfig="popups/PopUp_Inject.xml"/> </layer>
<excludelayer mapservice="Hanford Wells"></excludelayer>
<excludelayer mapservice="Hanford Wells">1</excludelayer>
It is possible to exclude a specific layer from a map service which (Removes it from the map as well), this is all that is currently possible.
<disablezoomtomenuoption>true</disablezoomtomenuoption>
Keith, Currently the TOC Widget does not update to programmatic layer visiblilty changes. When ever I get this figured out an updated version will be released.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.