Hello, that should it be var flag=true|false yourLayer.setVisibility(flag); Arnd
_____ Von: [email protected] [mailto:[email protected]] Im Auftrag von Robert Hicks Gesendet: Montag, 22. März 2010 19:14 An: [email protected] Betreff: [OpenLayers-Users] Set a layer visibility with a javascript function Hey all, is there a stored procedure in OpenLayers that lets you turn on and off a layer (just like you can in the Layer Switcher) that can be called? I saw OpenLayers.Layer.display(); which didn't seem to do anything and I was wondering if that is the right function I should be calling. Thanks! -- web http://www.hyxspace.com aim hyx1138
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
