[fusion-users] Layer status
Paul Spencer
pspencer at dmsolutions.ca
Wed Jun 18 13:10:52 EDT 2008
Um, there is no event that you can use for this right now. Ideally,
you could register for an event on the map object. This would require
a new event type and some code to trigger the event in Map.js,
MapServer.js and MapGuide.js
Cheers
Paul
On 18-Jun-08, at 11:20 AM, Jorge Cabrera wrote:
>
> 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.
>
> _______________________________________________
> fusion-users mailing list
> fusion-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fusion-users
__________________________________________
Paul Spencer
Chief Technology Officer
DM Solutions Group Inc
http://www.dmsolutions.ca/
More information about the fusion-users
mailing list