On Tuesday, May 15, 2012, neffets wrote:

> I work with Openlayers 2.11.
>
> Here a Example:
>
> lyr = new OpenLayers.Layer.Vector("test", {
>   version: "1.1.0",
>   strategies: [new OpenLayers.Strategy.BBOX(), oSaveStrategyVG],
>   projection: new OpenLayers.Projection("EPSG:4326"),
>   maxResolution: 20,
>   eventListeners: {
>      "visibilitychanged": function() {
>        alert("visibility changed");
>      },
>   ...
> });
>
> In a Map Resolution over 20 the layer is invisible in the map, that's
> right.


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.



> But if I try lyr.getVisibility() I get 'true' in my option it must be
> 'false'.



-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-dev

Reply via email to