make sure we do not fail if OpenLayers.Projection.defaults has not been set for a custom projection
This commit is contained in:
1 parent
1d3eb0e60c
commit
663ba16b59
2 files changed
+22
-1
No files matched your search
@@ -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