Yes, This is that I want, but I have three base layer and I only want
this for one of them.

I actually have:

var topo = new OpenLayers.Layer.WMS(
                    _("Topographic"), baseWmsServer,
                        {layers: 'topo', format:"image/jpeg",
exceptions:"application/vnd.ogc.se_xml"},
                        {buffer:0, transitionEffect:'resize'}
);

How can I implement two scale-dependant WMS overlays like you propose?

Thank's in advance,

Antoni Vidal.

-----Mensaje original-----
De: Christopher Schmidt [mailto:[email protected]] 
Enviado el: viernes, 02 de enero de 2009 16:04
Para: Vidal, Antoni
CC: [email protected]
Asunto: Re: [OpenLayers-Users] Change server wms layer depending
resolution

On Fri, Jan 02, 2009 at 02:39:23PM +0100, Vidal, Antoni wrote:
> Hi there,
> 
> I would change the server of a wms layer depending of map's
resolution. Is this possible ?, if yes, any help will be thankfull.

You probably want to have two scale-dependant WMS overlays -- one with a
minScale: 1000000, maxScale: 10000 , the next with a minScale: 10000 ,
maxScale: 1, or something. If you don't have another base layer,
creating an empty base layer:

  new OpenLayers.Layer("", {displayInLayerSwitcher: false, isBaseLayer:
  true});

Can be used.  

REgards,
-- 
Christopher Schmidt
MetaCarta
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to