<excludelayer url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/MapServer" id="0"/>
<excludelayer mapservice="Earthquakes"></excludelayer> <excludelayer mapservice="Fires"></excludelayer>
<excludelayer mapservice="Earthquakes">0,1</excludelayer>
<configuration> <labels> <visibilitylabel>Layer Visibility</visibilitylabel> <zoomtoextent>Zoom To Layer Extent</zoomtoextent> <expandall>Expand All Layers</expandall> <collapseall>Collapse All Layers</collapseall> <zoomtomakevisible>Zoom To Make Visible</zoomtomakevisible> <generatinglegendmsg>Generating TOC Legend</generatinglegendmsg> </labels> <tocsettings> <expanded everything="false">false</expanded> <collapselegends>true</collapselegends> <disablezoomtomenuoption>true</disablezoomtomenuoption> </tocsettings> <legendtimeout>10</legendtimeout> <excludelayers> <excludelayer url="http://maps.myserver.com/mapstest/rest/services/Project/Test/MapServer" id="1"/> </excludelayers> <excludegraphiclayers>true</excludegraphiclayers> <excludebasemaplayers>true</excludebasemaplayers> <usenewesridescription>false</usenewesridescription> </configuration>
<excludelayer mapservice="Layers">1</excludelayer>
TypeError: Error #1009: Cannot access a property or method of a null object reference. at widgets.TOC.toc.tocClasses::TocMapLayerItem/filterOutSubLayer() at widgets.TOC.toc.tocClasses::TocMapLayerItem/processLegend() at Function/<anonymous>() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler() at mx.rpc::Responder/result() at mx.rpc::AsyncRequest/acknowledge() at DirectHTTPMessageResponder/completeHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete()
<excludelayers> <excludelayer mapservice="Layers"></excludelayer> </excludelayers>
<excludelayer mapservice="FeatureLayer774"></excludelayer>
GIS Dev, I have a Beta version right now that does all of it in the widget. This link is to the compiled widget, but if you want to test it out I would appreciate and input.http://forums.arcgis.com/threads/75331-Legend-Widget-not-Refreshing?p=267156&viewfull=1#post267156
The layers in the TOC are in the reverse order that they are listed in the main config.xml.So, the first layer listed under <operationallayers> will be at the bottom of the TOC, the last layer in the <operationallayers> section will be at the top of the TOC.R_
Hi, When I clear my browser cache and launch my FlexViewer, then open the TOC widget, I got following ActionScript error:TypeError: Error #1009: Cannot access a property or method of a null object reference. at widgets.TOC.toc.tocClasses::TocMapLayerItem/createChildren() at widgets.TOC.toc.tocClasses::TocMapLayerItem() at widgets.TOC.toc::TOC/registerMapLayer() at Function/<anonymous>() at widgets.TOC.toc.utils::MapUtil$/forEachMapLayer() at widgets.TOC.toc::TOC/registerAllMapLayers() at widgets.TOC.toc::TOC/commitProperties() at mx.core::UIComponent/validateProperties() at mx.managers::LayoutManager/validateProperties() at mx.managers::LayoutManager/doPhasedInstantiation() at mx.managers::LayoutManager/doPhasedInstantiationCallback()If I refresh the FlexViewer and re-launch the TOC widget, it works fine.Any ideas? Thanks in advance!Rose
GIS Dev, Hard to respond to something I can not duplicate.
Robert:I have read posts where you fixed the group layer issue in version 3.1.5 and above. I am using version 3.2 with Nested groups and am experiencing issued with layers turning on and off.
Jeff, OK, I am not sure I am understanding the instructions... When I check the 'Land Use' on the Land Use Outlines are not visible based on scale. When I zoom in three times they become visible. This is all accurate based on design and scale dependency.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.