On Dec 2, 2007 6:25 PM, Gregor Mosheh <[EMAIL PROTECTED]> wrote:
> Richard Greenwood wrote:
> > How do you set a layer's state (turn it on/off) programmatically in 
> > JavaScript?
>
> http://dev.openlayers.org/docs/files/OpenLayers/Layer-js.html
>
> layer.setVisibility(true);
> layer.setVisibility(false);

Thanks, now I'm off in search of how to update the  LayerSwitcher to
reflect the state change...

-- 
Richard Greenwood
[EMAIL PROTECTED]
www.greenwoodmap.com
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to