[OpenLayers-Users] Set a layer visibility with a javascript
function
Arnd Wippermann
arnd.wippermann at web.de
Mon Mar 22 14:48:44 EDT 2010
Hello,
that should it be
var flag=true|false
yourLayer.setVisibility(flag);
Arnd
_____
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Robert Hicks
Gesendet: Montag, 22. März 2010 19:14
An: users at openlayers.org
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100322/3552803e/attachment.html
More information about the Users
mailing list