From a2fabd7d1737921289f75d7899b1d9ec040107ec Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 18 Sep 2007 23:47:40 +0000 Subject: [PATCH] test to see if 'fromLatLngToContainerPixel' is defined on the prototype, not on the class. (See #994). git-svn-id: http://svn.openlayers.org/trunk/openlayers@4380 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Google.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/Google.js b/lib/OpenLayers/Layer/Google.js index 06e8e40a49..04596b86b3 100644 --- a/lib/OpenLayers/Layer/Google.js +++ b/lib/OpenLayers/Layer/Google.js @@ -264,7 +264,8 @@ OpenLayers.Layer.Google = OpenLayers.Class( * {GPoint} A GPoint specifying gLatLng translated into "Container" coords */ addContainerPxFunction: function() { - if (typeof GMap2 != "undefined" && !GMap2.fromLatLngToContainerPixel) { + if ( (typeof GMap2 != "undefined") && + !GMap2.prototype.fromLatLngToContainerPixel) { GMap2.prototype.fromLatLngToContainerPixel = function(gLatLng) {