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
This commit is contained in:
euzuro
2007-09-18 21:03:35 +00:00
parent 9ce8a4eb85
commit 471e5c5a1b

View File

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