Re: [OpenLayers-Users] Displaying layers depending on the zoom

2009-07-16 Thread Adrian Popa
Hello Arthur, You can use minResolution and maxResolution for your layer. I see that your example already has that. Your layer should be grayed out outside the min-max resolution range and should become selectable (and visible) inside that range. You should tune your range by using firebug and

[OpenLayers-Users] Displaying layers depending on the zoom

2009-07-16 Thread Arthur Delorme
Hello, I need your help : I am just beginning using OpenLayers and I cannot find how to hide a layer and display it when zoom is big enough. I did a script with a map layer and a GML layer (parsing KML). Here is my code : function init() { var map = new OpenLayers.Map('map'); var wms