[OpenLayers-Users] Hidden layer for layer switcher but not for map

Andreas Hocevar ahocevar at opengeo.org
Wed Nov 18 06:47:35 EST 2009


David Alda Fernandez de Lezea wrote:
> Hello list,
>  
> Is it possible to create a layer, that is visible on the map but that
> is not shown it in the layer switcher?

It is. All you have to do is add displayInLayerSwitcher: false to the
options of your layer.

Regards,
Andreas.
>  
> Thanks.
>
>  
>
> Un saludo,
>
>  
>
> ··················································································
>
> *David Alda Fernández de Lezea*
>
> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
>
>  
>
> *IKT*
>
> Granja Modelo s/n · 01192 · Arkaute (Araba)
>
>
> ··················································································
> Tlfnos.: 945-00-32-95                         Fax: 945-00.32.90
> ··················································································
> email: dalda at ikt.es
> <mailto:dalda at ikt.es>                                web: www.ikt.es
> <http://www.ikt.es/>
> ··················································································
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.




More information about the Users mailing list