Select to view content in your preferred language

Legend Widget not Refreshing

2296
20
Jump to solution
01-15-2013 12:31 PM
ronaldmcfarlane
Regular Contributor
I am running ArcGIS Server 10.1 SP1 and ArcGIS for Flexviewer 3.1.  I have a testbed Flex mapping application at maps.nwifc.org:8080/test_x.  The Legend Widget is described as showing only those service layers that are visible at the time of viewing.  Thus when a service is within its visible scale range the legend displays it and doesn't when it is beyond its visible scale range.  This behavior statement seems to be upheld when only the scale dependent service is turned on; when additional layers are also turned on the legend does not update unless the scale dependent service is cycled off/on for any given map scale.  The test map has three dynamic map services: County (polygon, visible at all scales), Offices (three points visible at all scales) and WRIA/WAU (two feature layers WRIA and WAU, with the WAU only visible once zoomed in beyond 300,000).  Turn off county and offices and the legend updates appropriately for WRIA/WAU as you zoom in or out.  Turn on either/both County and/or Offices and the legend does not update as you zoom in or out.  This problem exists regardless of public or private publication.  The behavior holds true across all my maps with scale dependent layers (over 10 map applications).  The map above is just a test map app to demonstrate the problem.  Any solutions or ideas out there?
Tags (2)
0 Kudos
20 Replies
RobertScheitlin__GISP
MVP Emeritus
Ronald,

   I have updated the TOCWidget, eMapScitcherWidget, and the dynamic legend widget. You should be able to use the OTB esri Legend widget with my eMapSwitcherWidget (with the layer list enabled) or try out my partial/Beta secure services ability on the TOC Widget. The TOC Widget supports Tokens WHEN they are provided in the main config.xml or a part of the layer url. IT DOES NOT yet work with token provided throught the identity manager.
0 Kudos
ronaldmcfarlane
Regular Contributor
Ronald,

   I have updated the TOCWidget, eMapScitcherWidget, and the dynamic legend widget. You should be able to use the OTB esri Legend widget with my eMapSwitcherWidget (with the layer list enabled) or try out my partial/Beta secure services ability on the TOC Widget. The TOC Widget supports Tokens WHEN they are provided in the main config.xml or a part of the layer url. IT DOES NOT yet work with token provided throught the identity manager.


Thanks for the effort!  Unfortunately we use the Identity Manager so TOC and Dynamic still don't work, but kudos & thanks for all the work you put in.  For some reason secure editable services show up in the legend just not the secure map services.  I've just noticed a fix I would like in eMap, but I will post it in a new thread.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ronald,

   Are you up for some beta testing of my TOCWidget that supports Identity Manager tokens?
0 Kudos
ronaldmcfarlane
Regular Contributor
Ronald,

   Are you up for some beta testing of my TOCWidget that supports Identity Manager tokens?


I would be more than happy to do so.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ronald,

   Do you need compiled or source or does it matter?
0 Kudos
ronaldmcfarlane
Regular Contributor
Ronald,

   Do you need compiled or source or does it matter?


Either is fine, I'm using 10.1, 3.1 and 4.7.  I imagine though a compiled copy would be best as it would reflect what most users will take advantage of.  If you want, send me a private message and I will give you my contact info.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ronald,

   Here it is. Let me know how it goes. May basic testing is working great.
0 Kudos
ronaldmcfarlane
Regular Contributor
Ronald,

   Here it is. Let me know how it goes. May basic testing is working great.


Seems to be working great!  I tested on 5 different map apps, sourcing from four secure folders and it picked up the symbology for all of them, including scale transitions.  I tested it with eMapSwitcher with layer visibility set to both true and false without any errors.  The only symbol not picked up is one from an EPA public map service http://watersgeo.epa.gov/ArcGIS/rest/services/OWPROGRAM/STORET_NAD83/MapServer; the rest page doesn't show a legend link nor can I remember if the image icon showed in 10.0.  Thanks for the quick turn around for secure services, when it is outside your area of effort!!!
0 Kudos
ronaldmcfarlane
Regular Contributor
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ronald,

   Your welcome. I am glad I finally took the time to look into this as it really was not that hard in the end. That EPA layer is coming from a 9.3.1 Server and that is why there is no symbology.
0 Kudos