[fusion-users] Layer status

Jorge Cabrera jecabreraa at hotmail.com
Wed Jun 18 11:20:44 EDT 2008


What is the best way to detect when a layer has been turned on or off?  Have
been trying to attach an event to the layer itself, but none of what I tried
has worked:

                layer.registerForEvent(Fusion.Event.LAYER_PROPERTY_CHANGED,
dynamicLayerOn.bind(layer));
or
                layer.legend.checkBox.attachEvent("onclick",
dynamicLayerOn.bind(layer))
or                
                Event.observe(layer.legend.checkBox, 'click',
dynamicLayerOn.bind(layer) );

Any ideas?

Jorge
-- 
View this message in context: http://www.nabble.com/Layer-status-tp17985081p17985081.html
Sent from the Fusion Users mailing list archive at Nabble.com.



More information about the fusion-users mailing list