[OpenLayers-Commits] r4182 - sandbox/tschaub/google/lib/OpenLayers/Layer

commits at openlayers.org commits at openlayers.org
Mon Sep 3 23:03:59 EDT 2007


Author: ahughes
Date: 2007-09-03 23:03:58 -0400 (Mon, 03 Sep 2007)
New Revision: 4182

Modified:
   sandbox/tschaub/google/lib/OpenLayers/Layer/Google.js
Log:
Unless someone can correct me on this *this* is the GMap2 GoogleAPI object GMap2.b certainly did exist and was the content div. But now *this.b* is no longer defined. *this.e* appears to have taken this over but should be tested please.

Modified: sandbox/tschaub/google/lib/OpenLayers/Layer/Google.js
===================================================================
--- sandbox/tschaub/google/lib/OpenLayers/Layer/Google.js	2007-09-03 15:49:39 UTC (rev 4181)
+++ sandbox/tschaub/google/lib/OpenLayers/Layer/Google.js	2007-09-04 03:03:58 UTC (rev 4182)
@@ -271,9 +271,22 @@
                 // first we translate into "DivPixel"
                     var gPoint = this.fromLatLngToDivPixel(gLatLng);
       
-                    // locate the sliding "Div" div
-                //  it seems like "b" is the main div
-                    var div = this.b.firstChild.firstChild;
+					/**
+					 * 2007-09-04 (Sept 4th 2007 - ahughes)
+					 * Unless someone can correct me on this
+					 * *this* is the GMap2 GoogleAPI object
+					 * GMap2.b certainly did exist and was the
+					 * content div. But now this.b is no longer
+					 * defined. this.e appears to have taken this
+					 * over but should be reviewed and tested please.
+					 * --ahughes
+					 */
+					// locate the sliding "Div" div
+					// it seems like "b" is the main div
+					//var div = this.b.firstChild.firstChild;
+                    var div = this.e.firstChild.firstChild;
+					
+					deepbug(this);
       
                     // adjust by the offset of "Div" and voila!
                 gPoint.x += div.offsetLeft;



More information about the Commits mailing list