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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user