OpenLayers OpenLayers

Ticket #994: goog.patch

File goog.patch, 0.6 kB (added by euzuro, 1 year ago)

vladimir

  • lib/OpenLayers/Layer/Google.js

    old new  
    264264     * {GPoint} A GPoint specifying gLatLng translated into "Container" coords 
    265265     */ 
    266266    addContainerPxFunction: function() { 
    267         if (typeof GMap2 != "undefined" && !GMap2.fromLatLngToContainerPixel) { 
     267        if ( (typeof GMap2 != "undefined") &&  
     268             !GMap2.prototype.fromLatLngToContainerPixel) { 
    268269           
    269270            GMap2.prototype.fromLatLngToContainerPixel = function(gLatLng) { 
    270271