diff --git a/lib/OpenLayers/Layer/Google.js b/lib/OpenLayers/Layer/Google.js index 6359696f8f..ff650f5e40 100644 --- a/lib/OpenLayers/Layer/Google.js +++ b/lib/OpenLayers/Layer/Google.js @@ -272,8 +272,7 @@ OpenLayers.Layer.Google = OpenLayers.Class( var gPoint = this.fromLatLngToDivPixel(gLatLng); // locate the sliding "Div" div - // it seems like "b" is the main div - var div = this.b.firstChild.firstChild; + var div = this.getContainer().firstChild.firstChild; // adjust by the offset of "Div" and voila! gPoint.x += div.offsetLeft;