Create a second WMS layer, and make sure you set minScale and/or maxScale values on that layer (through the options).
Best regards, Bart -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS [email protected] On Nov 19, 2010, at 2:36 PM, Mario Nuñez Jimenez wrote: > Hello list, > I have this complex layer already: > > wms = new OpenLayers.Layer.WMS( > "Base WMS", > "http://www.world.map", > { > layers : [ 'layer8km', 'layer2km', 'layer500m' ], > isBaseLayer: true > }); > > Its is build from three different layers provided by the same WMS, each one > of them will be shown depending on the actual scale value. > > Now I want to have another single layer on it, the problem is that this 4th > layer is provided by a different WMS and I don’t know how to add it and make > it work in a scale lower than any of the other three layers. > > I mean: Something like this: > > wms = new OpenLayers.Layer.WMS( > "Base WMS", > "?????", > { > layers : [ 'layer_8km', 'layer_2km', > 'layer_500m', ‘Layer_20m’ ], > isBaseLayer: true > }); > > But this new layer is from a different WMS so I dont know hot to do it… > Any tip? > Thank you in advance. > Mario. > > ------------------------------------------------------------------ > This e-mail and the documents attached are confidential and intended > solely for the addressee; it may also be privileged. If you receive > this e-mail in error, please notify the sender immediately and destroy it. > As its integrity cannot be secured on the Internet, the Atos Origin > group liability cannot be triggered for the message content. Although > the sender endeavours to maintain a computer virus-free network, > the sender does not warrant that this transmission is virus-free and > will not be liable for any damages resulting from any virus transmitted. > > Este mensaje y los ficheros adjuntos pueden contener informacion confidencial > destinada solamente a la(s) persona(s) mencionadas anteriormente > pueden estar protegidos por secreto profesional. > Si usted recibe este correo electronico por error, gracias por informar > inmediatamente al remitente y destruir el mensaje. > Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin > no se hace responsable por su contenido. Su contenido no constituye ningun > compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas > partes. > Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor > no puede garantizar nada al respecto y no sera responsable de cualesquiera > danos que puedan resultar de una transmision de virus. > ------------------------------------------------------------------ > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
