<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Alright Chris,<br><br>I'll give that try.<br><br>S.D.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Christopher Schmidt &lt;crschmidt@metacarta.com&gt;<br>To: samd &lt;sdoyle_2@yahoo.com&gt;<br>Cc: users@openlayers.org<br>Sent: Tuesday, September 18, 2007 1:50:07 PM<br>Subject: Re: [OpenLayers-Users] Fixing Google Layers, OL SVN + OL &lt;= 2.4<br><br><div>On Tue, Sep 18, 2007 at 01:46:24PM -0700, samd wrote:<br>&gt; <br>&gt; Yes Chris,<br>&gt; <br>&gt; I added the change you mentioned to the start of my onload routine before<br>&gt; the map/layers are created but the JavaScripts are loaded.<br><br>Sam:<br><br>I'm sorry. The previous code
 provided was mistaken. The Wiki Page is now<br>updated to code which will work. Instead of the previous snippet, you<br>should do:<br><br>OpenLayers.Layer.Google.prototype.addContainerPxFunction=function() {<br>&nbsp;&nbsp;&nbsp;&nbsp;if (typeof GMap2 != "undefined" &amp;&amp; !GMap2.fromLatLngToContainerPixel) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GMap2.prototype.fromLatLngToContainerPixel = function(gLatLng) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// first we translate into "DivPixel"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var gPoint = this.fromLatLngToDivPixel(gLatLng);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// locate the sliding "Div"
 div<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var div = this.getContainer().firstChild.firstChild;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// adjust by the offset of "Div" and voila!<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gPoint.x += div.offsetLeft;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gPoint.y += div.offsetTop;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return gPoint;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp; <br>};&nbsp;&nbsp;<br><br><br>Please let us know if this does not fix the problem.<br><br>Regards,<br>-- <br>Christopher
 Schmidt<br>MetaCarta<br></div></div><br></div></div></body></html>