[OpenLayers-Users] setVisibility VS visibility:false

Eric Lemoine eric.c2c at gmail.com
Thu Jan 29 15:13:55 EST 2009


On Thu, Jan 29, 2009 at 9:00 PM, Alexandre Dube <adube at mapgears.com> wrote:
> Hi list,
>
>  Is there a difference between layer.setVisibility(false) and the
> {visibility:false} option directly specified in the layer ?  Is one a
> better practice than the other ?

You'll use setVisibility if you need to change the visibility after
the layer creation, when some button is clicked for example.

--
Eric



More information about the Users mailing list