From 471e5c5a1bb308b73ca8a5ebda959e5746300b6a Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 18 Sep 2007 21:03:35 +0000 Subject: [PATCH] whitespacing for google layer. strangely this has been there since 2.2. wierd. (See #983) git-svn-id: http://svn.openlayers.org/trunk/openlayers@4377 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Google.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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;