Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a Openlayer web map with LayerSwitcher control added. I need this to switch some of my layers. But I am also adding and removing some layers, which are temperory and i donot want them added to the LayerSwitcher Control. So is there a way to add layer to OpenLayers, but without it getting automatically added in LayerSwitcher Control?

share|improve this question

1 Answer 1

up vote 10 down vote accepted

Simple, just set displayInLayerSwitcher: false in the layer options.

share|improve this answer
    
Perfect! Thanks! –  Shaunak Sep 30 '11 at 8:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.