<br><br>On Tuesday, May 15, 2012, neffets wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I work with Openlayers 2.11.<br>
<br>
Here a Example:<br>
<br>
lyr = new OpenLayers.Layer.Vector("test", {<br>
version: "1.1.0",<br>
strategies: [new OpenLayers.Strategy.BBOX(), oSaveStrategyVG],<br>
projection: new OpenLayers.Projection("EPSG:4326"),<br>
maxResolution: 20,<br>
eventListeners: {<br>
"visibilitychanged": function() {<br>
alert("visibility changed");<br>
},<br>
...<br>
});<br>
<br>
In a Map Resolution over 20 the layer is invisible in the map, that's right.</blockquote><div><br></div><div>The layer is out of range, not invisible. For a layer to be actually displayed on the map it must be both visible and in range.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But if I try lyr.getVisibility() I get 'true' in my option it must be<br>
'false'.<span></span></blockquote><br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br><br>