I am displaying many geoserver layers using one layer in OpenLayers, like
here:

  var *vector *= new OpenLayers.Layer.Vector("My Layer", { 
  maxExtent: new OpenLayers.Bounds(-1.09863,44.42907, 91.01074, 2.05840)
  sphericalMercator: true,      
  protocol:  new OpenLayers.Protocol.WFS({  
  url: 'http://mydomain/geoserver/wfs',
  *featureType: ["mylayer_1","mylayer_2","mylayer_3"],  *
  featureNS: "http://mapmap.org";, 
  srsName: "EPSG:3857", 
  version: "1.1.0", 
  extractAttributes: true, 
  isBaseLayer: false, 
  visibility: true 
   })
  });

now I want to make *layer_2* invisible by setVisibility(false).. but I don't
now how to select it. it seems like I just can control the whole layer
(*vector*). 

is there any way to control visibility of these layers ?



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Control-visibility-of-multiple-layers-tp5004368.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to