diff --git a/lib/OpenLayers/Layer/Google.js b/lib/OpenLayers/Layer/Google.js index ff650f5e40..06e8e40a49 100644 --- a/lib/OpenLayers/Layer/Google.js +++ b/lib/OpenLayers/Layer/Google.js @@ -269,12 +269,12 @@ OpenLayers.Layer.Google = OpenLayers.Class( GMap2.prototype.fromLatLngToContainerPixel = function(gLatLng) { // first we translate into "DivPixel" - var gPoint = this.fromLatLngToDivPixel(gLatLng); + var gPoint = this.fromLatLngToDivPixel(gLatLng); - // locate the sliding "Div" div - var div = this.getContainer().firstChild.firstChild; - - // adjust by the offset of "Div" and voila! + // locate the sliding "Div" div + var div = this.getContainer().firstChild.firstChild; + + // adjust by the offset of "Div" and voila! gPoint.x += div.offsetLeft; gPoint.y += div.offsetTop;