[OpenLayers-Users] Hiding a layer in LayerSwitcher

Christopher Schmidt crschmidt at metacarta.com
Sun Apr 15 12:59:28 EDT 2007


On Sun, Apr 15, 2007 at 06:34:32PM +0200, Dmitri Mizerkin wrote:
> Hi guys,
> 
> Can I set up a layer to prevent it from being shown in the LayerSwitcher
> control?
> I want to create a duplicate layer for every selectable layer to be able to
> highlight features not having to reload the main layer itself. Though, I
> don't want the user to see the names of these additional layers in the layer
> switcher.

set a displayInLayerSwitcher option to false on the layer.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list