On Monday, January 18, 2010, David Alda Fernandez de Lezea <da...@ikt.es> wrote: > > > > > > > > Hello, > > I'm trying to have an > Openlayers.WMS layer that should contain 2 WMS layers, served by MapServer, > using the following code (in theory this is possible): > > var twms = new > OpenLayers.Layer.WMS( "Sigpac", > "http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wms.map", > > { transparent: 'true', layers: 'ParcelasSigpac, > RecintosSigpac'},{strategies: [new OpenLayers.Strategy.BBOX()],isBaseLayer: > false, buffer:1, gutter:0,visibility: false, units: 'm', maxExtent: new > OpenLayers.Bounds(463506.9978541628, 4702558.185239193, 603185.4988525142, > 4811754.780732273)} > );
As a side note, do not set strategies into WMS layers, strategies apply to Vector layers only. Cheers, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users