Select to view content in your preferred language

Dynamic Legend (FlexViewLegend3 - RestLegend) at ArcServer version 10

516
1
07-23-2010 01:28 PM
IanParfitt
Deactivated User
Hi
Upgraded from 9.3.1 to version 10 am now have some problems with the dynamic legend from Robert Scheitlin (http://forums.esri.com/Thread.asp?c=158&f=2421&t=299116&mc=27#934254).  Traced the problem to the LiveMapsWidget.   Seems that the requestCount does not equal pResults.length, so the createRepeaterData() function is never called (see code below).   When the conditional If is remarked out, the dynamic legend is created.   Is this something that changed at version 10, or did we introduce some other bug in our code?   Why was the conditional if used in the first place?   Is there a reason why we can't use this workaround?

/* conditional remarked out below
/* if (requestCount == pResults.length) 
{
 createRepeaterData();
} 
*/
    
createRepeaterData();


Thanks

Ian
UBC Geography
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Ian,

   The
if (requestCount == pResults.length)
was added for those people that have more than one map service added to their map. I am not sure why this would stop working just because you upgraded your server to 10...
0 Kudos