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
This commit is contained in:
Tim Schaub
2007-09-18 19:04:54 +00:00
parent 3f9aeb3ae6
commit 9ce8a4eb85

View File

@@ -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;