开发者

How to add layer to OpenLayers, but without it getting automatically added in LayerSwitcher Control?

I have a Openlayer web map with LayerSwitcher con开发者_运维问答trol 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?


Figured this out. I need to add 'displayInLayerSwitcher: false' in the layer options.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜