Solved! Go to Solution.
<widget left="0" top="0" config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/> <map wraparound180="true" addarcgisbasemaps="false" initialextent="-13906490 5826218 -13430340 6280858" fullextent="-13906490 5826218 -13430340 6280858" top="40"> <basemaps> <layer type="tiled" label="Streets" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" visible="true"/> <layer type="tiled" label="Topo" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" visible="false"/> <layer type="tiled" label="Aerial" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" visible="false"/> </basemaps> <operationallayers> <layer type="dynamic" label="WRIA/WAU" url="http://hammerhead.nwifc.org:8080/ArcGIS/rest/services/Public/WriaWau/MapServer" visible="true"/> <layer type="dynamic" label="Office Location" url="http://hammerhead.nwifc.org:8080/ArcGIS/rest/services/Public/Office_Location/MapServer" visible="true"/> <layer type="dynamic" label="County" url="http://hammerhead.nwifc.org:8080/ArcGIS/rest/services/Public/County/MapServer" visible="true"/> </operationallayers> </map> <widgetcontainer layout="float"> <widget label="Map Legend" x="80" y="100" preload="open" icon="assets/images/legend32.png" config="widgets/Legend /LegendWidget.xml" url="widgets/Legend/LegendWidget.swf"/> </widgetcontainer>
Ronald,
Do you mind setting up the test app back to the senario in question (i.e. eMapSwitcher, TOCWidget, OTB esri Legend widget)?
Roland,
Hmm... I have made some progress... If you remove the eMapSwitcher, MapSwitcher, TOCWidget and only have the OTB esri Legend widget it will not honor scale dependency either. There seem to be an issue that the esri MapSwitcher fixes for the legend widget.
Ronald,
Sorry about your name (just bad typing). I have found the solution that esri has in their MapSwitcherWidget that addresses the issue in the Legend and have applied it to my eMapSwitcherWidget and TOCWidget. I just need to test more and then release these fixes. The TOCWidget will be a longer wait as I am attempting to add support for secure services.