Select to view content in your preferred language

programatically change visible Layers does not always work

404
0
04-28-2013 01:04 PM
NicholasVolpe
Emerging Contributor
Hey!

I am trying change the default visibility of layers and sublayers depending on different criteria. I also want these layers to sync up with the check boxes in the Table of Contents widget.

The code I have works "most of the time" when I run the application out of flash builder.  However, when I export a release build. Andtest it within the production website. It has a lower success rate. Sometimes, the correct layers turn on/off.. Other times the layers are not changed.

I have similar code to this:  http://forums.esri.com/Thread.asp?c=158&f=2421&t=300662&mc=15#939976

But like I said it only works half the time.  The library I am using is 2.3.1  If anyone has any suggestions let me know. I have tried setting a timeout to delay my function but that did not seem to help.

Thanks in advance,
Nick
Tags (2)
0 Kudos
0 Replies