chellymehdi / vopenlayers

Automatically exported from code.google.com/p/vopenlayers
0 stars 0 forks source link

Create a layer invisible #104

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Situation: A set of WFS layers are added to a map. For performance reasons not 
all should be loaded at start time. 

In the OpenLayers library is a function 'setVisibility' for layers. If this 
function is called with a false the layer is shown in layer switcher but will 
not be loaded until its visibility is changed to true.

I can't find a functionality like this in vopenlayers so I will try to 
implement it (at first for the WebFeatureServiceLayer)

Cheers Eiko

Original issue reported on code.google.com by eiko.tho...@gmail.com on 4 Nov 2012 at 9:02

GoogleCodeExporter commented 8 years ago
Did commit my changes (r181). WebFeatureServiceLayerTest2 contains at start 
time a invisible layer.

Cheers Eiko

Original comment by eiko.tho...@gmail.com on 5 Nov 2012 at 10:19

GoogleCodeExporter commented 8 years ago
As my next step I will add a demo with setVisibility for a WFS layer by current 
zoom or server site program state

Original comment by eiko.tho...@gmail.com on 5 Nov 2012 at 10:21