From 9ce8a4eb851707571efd140f18ab89d3f09688fe Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Tue, 18 Sep 2007 19:04:54 +0000 Subject: [PATCH] Use documented getContainer method instead of chasing obfuscated properties. Note that we are still tip-toeing around the dom here assuming they won't pull a fast one on us - Google users beware (see #994). Big thanks to Uz for help sleuthing this one out. git-svn-id: http://svn.openlayers.org/trunk/openlayers@4375 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Google.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;