[fusion-users] legend.js layer-group show

Jorge Soria megajor at gmail.com
Wed Jan 26 02:21:46 EST 2011


Good morning everyone, I have an issue enabling a group of layers
simultaneously.
I'm trying to modify the behaviour of the legend widget in fusion.
What I want the legend to do is:
If the user clicks in the group's checkbox --> enable/disable all the layers
from that group.
I call to the method layer.show() for every layer, but the layers are shown
randomly.
The weird thing is that if I make a pause between calls (alert, for
example), the layers are shown correctly.

I think that some calls in my for loop are missing due to a timing/"not
waiting for the map" issue.

Thanks in advance, Jorge.
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/legend-js-layer-group-show-tp5961859p5961859.html
Sent from the Fusion Users mailing list archive at Nabble.com.


More information about the fusion-users mailing list