OpenLayers OpenLayers

Ticket #994: google.patch

File google.patch, 0.7 kB (added by tschaub, 1 year ago)

use documented getContainer method

  • lib/OpenLayers/Layer/Google.js

    old new  
    272272                    var gPoint = this.fromLatLngToDivPixel(gLatLng); 
    273273       
    274274                    // locate the sliding "Div" div 
    275                 //  it seems like "b" is the main div 
    276                     var div = this.b.firstChild.firstChild; 
     275                    var div = this.getContainer().firstChild.firstChild; 
    277276       
    278277                    // adjust by the offset of "Div" and voila! 
    279278                gPoint.x += div.offsetLeft;