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
This commit is contained in:
@@ -264,7 +264,8 @@ OpenLayers.Layer.Google = OpenLayers.Class(
|
|||||||
* {GPoint} A GPoint specifying gLatLng translated into "Container" coords
|
* {GPoint} A GPoint specifying gLatLng translated into "Container" coords
|
||||||
*/
|
*/
|
||||||
addContainerPxFunction: function() {
|
addContainerPxFunction: function() {
|
||||||
if (typeof GMap2 != "undefined" && !GMap2.fromLatLngToContainerPixel) {
|
if ( (typeof GMap2 != "undefined") &&
|
||||||
|
!GMap2.prototype.fromLatLngToContainerPixel) {
|
||||||
|
|
||||||
GMap2.prototype.fromLatLngToContainerPixel = function(gLatLng) {
|
GMap2.prototype.fromLatLngToContainerPixel = function(gLatLng) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user