After looking in the code again, I found out i could call it like this: layer.params['LAYERS'] or layer.params.LAYERS
-- Med venlig hilsen / Kind regards Tue Topholm Sugee Tlf: +45 32 13 32 32 W: http://www.sugee.dk 2010/10/29 Tue Topholm <t...@sugee.dk> > Hi All > > Is there any way I can extract the layers in a wms, that I have created to > see, which ones are turned on, > > ex: > > layer = new OpenLayers.Layer.WMS( "xxx", > 'xxxx', > {layers:'xxx',format:'image/png',},{transitionEffect:'resize',singleTile: > true, ratio: 1}); > map.addLayer(layer); > > > is there a way to call on the layer, what layers that are present in the > call to the wms... > > So in this case it would get me xxx > > I have tried with layer.url, but it only gives me the url with no layers.. > > I have also tried layer.params.layers > > > Any ideas. > -- > > Med venlig hilsen / Kind regards > > Tue Topholm > Sugee > Tlf: +45 32 13 32 32 > W: http://www.sugee.dk >
_______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users