<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.2.5">
</HEAD>
<BODY>
Hi Jennifer,<BR>
<BR>
I like your <FONT COLOR="#000000">&quot;Natural Earth&quot;</FONT>, very nice!<BR>
<BR>
It appears that this is an existing bug (<A HREF="http://trac.openlayers.org/ticket/480">#480</A>) which I'm currently working on<BR>
and hopefully done with it shortly.&nbsp; I'll add your page to my list of tests to verify<BR>
the fix.<BR>
<BR>
.........Bill,<BR>
<BR>
<BR>
On Fri, 2007-02-09 at 13:32 -0800, Jennifer Strahan wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hello List,</FONT>

<FONT COLOR="#000000">Is it possible to set up an OpenLayers map that allows users to </FONT>
<FONT COLOR="#000000">toggle between a Tilecache basemap and a third party basemap such as </FONT>
<FONT COLOR="#000000">the Google Hybrid layer?  I've set up a test and when I switch </FONT>
<FONT COLOR="#000000">between the two layers the map scale changes dramatically.  Any </FONT>
<FONT COLOR="#000000">suggestions or work-arounds would be appreciated.  The code I'm </FONT>
<FONT COLOR="#000000">playing with is below.</FONT>

<FONT COLOR="#000000">Thanks,</FONT>
<FONT COLOR="#000000">Jennifer</FONT>

<FONT COLOR="#000000">&lt;html xmlns=&quot;<A HREF="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>&quot;&gt;</FONT>
<FONT COLOR="#000000">   &lt;head&gt;</FONT>
<FONT COLOR="#000000">     &lt;style type=&quot;text/css&quot;&gt;</FONT>
<FONT COLOR="#000000">         #map {</FONT>
<FONT COLOR="#000000">             width: 700px;</FONT>
<FONT COLOR="#000000">             height: 700px;</FONT>
<FONT COLOR="#000000">             border: 1px solid black;</FONT>
<FONT COLOR="#000000">             background-color: white;</FONT>
<FONT COLOR="#000000">         }</FONT>
<FONT COLOR="#000000">     &lt;/style&gt;</FONT>
<FONT COLOR="#000000">         &lt;!-- this gmaps key generated for <A HREF="http://openlayers.org/dev/">http://openlayers.org/dev/</A> --&gt;</FONT>
<FONT COLOR="#000000">             &lt;script </FONT>
<FONT COLOR="#000000">src='<A HREF="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAw874S7GDJrTKF-hByeq-RBTw3BVAxQz7_zJnwc-4a2w6zwgAIBSWyVuG8kPDqlCqZwwfIc2TyWWSSA">http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAw874S7GDJrTKF-hByeq-RBTw3BVAxQz7_zJnwc-4a2w6zwgAIBSWyVuG8kPDqlCqZwwfIc2TyWWSSA</A>'&gt;&lt;/script&gt;</FONT>
<FONT COLOR="#000000">             &lt;!-- Localhost key --&gt;</FONT>
<FONT COLOR="#000000">             &lt;!-- &lt;script </FONT>
<FONT COLOR="#000000">src='<A HREF="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAw874S7GDJrTKF-hByeq-RBTw3BVAxQz7_zJnwc-4a2w6zwgAIBSWyVuG8kPDqlCqZwwfIc2TyWWSSA">http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAw874S7GDJrTKF-hByeq-RBTw3BVAxQz7_zJnwc-4a2w6zwgAIBSWyVuG8kPDqlCqZwwfIc2TyWWSSA</A>'&gt;&lt;/script&gt;--&gt;</FONT>
<FONT COLOR="#000000">     &lt;script </FONT>
<FONT COLOR="#000000">src=&quot;<A HREF="http://dev.openlayers.org/sandbox/tschaub/gutter/lib/OpenLayers.js">http://dev.openlayers.org/sandbox/tschaub/gutter/lib/OpenLayers.js</A>&quot;&gt;&lt;/script&gt;</FONT>


<FONT COLOR="#000000">     &lt;script type=&quot;text/javascript&quot;&gt;</FONT>
<FONT COLOR="#000000">         &lt;!--</FONT>
<FONT COLOR="#000000">         var map, layer;</FONT>

<FONT COLOR="#000000">         function init(){</FONT>

<FONT COLOR="#000000">             var options = { maxExtent: new </FONT>
<FONT COLOR="#000000">OpenLayers.Bounds(-125.77,13.05,-66.31,60.81),</FONT>
<FONT COLOR="#000000">                                         'maxResolution': .1161328125,</FONT>
<FONT COLOR="#000000">                                     controls: [new </FONT>
<FONT COLOR="#000000">OpenLayers.Control.MouseDefaults()]</FONT>
<FONT COLOR="#000000">                 };</FONT>

<FONT COLOR="#000000">             map = new OpenLayers.Map( $('map'), options );</FONT>

<FONT COLOR="#000000">             var natearth = new OpenLayers.Layer.WMS( &quot;Natural Earth&quot;,</FONT>
<FONT COLOR="#000000">                                                           &quot;<A HREF="http://82.165.243.230/cgi-bin/tilecache-1.3/tilecache.cgi">http://82.165.243.230/cgi-bin/tilecache-1.3/tilecache.cgi</A>?&quot;,</FONT>
<FONT COLOR="#000000">                                                           {layers: </FONT>
<FONT COLOR="#000000">'natearth', format:'image/jpeg'});</FONT>
<FONT COLOR="#000000">             map.addLayer(natearth);</FONT>

<FONT COLOR="#000000">             var g_hybrid = new OpenLayers.Layer.Google( &quot;Google </FONT>
<FONT COLOR="#000000">Hybrid&quot; , {type: G_HYBRID_MAP});</FONT>
<FONT COLOR="#000000">             map.addLayer(g_hybrid);</FONT>


<FONT COLOR="#000000">             map.setCenter(new OpenLayers.LonLat(-119.38, 37.45), 4);</FONT>
<FONT COLOR="#000000">             map.addControl( new OpenLayers.Control.LayerSwitcher() );</FONT>
<FONT COLOR="#000000">             map.addControl( new OpenLayers.Control.PanZoomBar() );</FONT>
<FONT COLOR="#000000">           map.addControl(new OpenLayers.Control.Scale());</FONT>

<FONT COLOR="#000000">         }</FONT>



<FONT COLOR="#000000">     // --&gt;</FONT>

<FONT COLOR="#000000">     &lt;/script&gt;</FONT>
<FONT COLOR="#000000">   &lt;/head&gt;</FONT>
<FONT COLOR="#000000">   &lt;body onload=&quot;init()&quot;&gt;</FONT>


<FONT COLOR="#000000">     &lt;div id=&quot;map&quot;&gt;&lt;/div&gt;</FONT>

<FONT COLOR="#000000">   &lt;/body&gt;</FONT>
<FONT COLOR="#000000">&lt;/html&gt;</FONT>





<FONT COLOR="#000000">Jennifer Strahan</FONT>
<FONT COLOR="#000000">GreenInfo Network - 1996-2006: A Decade of Mapping the Public Interest</FONT>
<FONT COLOR="#000000">116 New Montgomery  Street   Suite 738  San Francisco CA  94105</FONT>
<FONT COLOR="#000000">PH: (415)979-0343 x306    Fax:  415-979-0371     Web:  <A HREF="http://www.greeninfo.org">www.greeninfo.org</A></FONT>



<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">Users mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:Users@openlayers.org">Users@openlayers.org</A></FONT>
<FONT COLOR="#000000"><A HREF="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>