make sure we do not fail if OpenLayers.Projection.defaults has not been set for a custom projection
This commit is contained in:
@@ -177,7 +177,8 @@ OpenLayers.Layer.WMS = OpenLayers.Class(OpenLayers.Layer.Grid, {
|
||||
reverseAxisOrder: function() {
|
||||
var projCode = this.projection.getCode();
|
||||
return parseFloat(this.params.VERSION) >= 1.3 &&
|
||||
!!(this.yx[projCode] || OpenLayers.Projection.defaults[projCode].yx);
|
||||
!!(this.yx[projCode] || (OpenLayers.Projection.defaults[projCode] &&
|
||||
OpenLayers.Projection.defaults[projCode].yx));
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user