<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>RS: [OpenLayers-Users] Change server wms layer depending resolution</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Thank's David.<BR>
<BR>
You know any example code how to implement a scale-dependent WMS layer?.<BR>
<BR>
Thank's again.<BR>
<BR>
Antoni Vidal.<BR>
<BR>
<BR>
-----Missatge original-----<BR>
De: David Fawcett [<A HREF="mailto:david.fawcett@gmail.com">mailto:david.fawcett@gmail.com</A>]<BR>
Enviat el: dv. 02/01/2009 16:56<BR>
Per a: Vidal, Antoni<BR>
A/c: users@openlayers.org<BR>
Tema: Re: [OpenLayers-Users] Change server wms layer depending resolution<BR>
<BR>
Antoni,<BR>
<BR>
If you also control the WMS and are serving up your own data, you<BR>
could use a scale-dependent WMS layer as your source.<BR>
<BR>
You could also potentially build a WMS layer that cascades the data<BR>
from the two external WMS', using scale to determine which data source<BR>
to use.&nbsp; That said, this would likely be a performance hit, you would<BR>
probably do better to write some custom javascript code to accomplish<BR>
it on the client side.<BR>
<BR>
David.<BR>
<BR>
<BR>
<BR>
On Fri, Jan 2, 2009 at 7:39 AM, Vidal, Antoni &lt;antoni.vidal@icc.cat&gt; wrote:<BR>
&gt; Hi there,<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; I would change the server of a wms layer depending of map's resolution. Is<BR>
&gt; this possible ?, if yes, any help will be thankfull.<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; Happy 2009.<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; Antoni Vidal<BR>
&gt;<BR>
&gt; Institut Cartogrāfic de Catalunya&nbsp;&nbsp;&nbsp; Tel: +34-93 567 1500 Ext. 3228<BR>
&gt;<BR>
&gt; Parc de Montjuīc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fax: +34-93 567 1567<BR>
&gt;<BR>
&gt; 08038 Barcelona&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="http://www.icc.cat">http://www.icc.cat</A><BR>
&gt;<BR>
&gt; Spain<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; Users mailing list<BR>
&gt; Users@openlayers.org<BR>
&gt; <A HREF="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</A><BR>
&gt;<BR>
&gt;<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>