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-tp5004369.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users