make yx property an object rather than an array. r=elemoine,bartvde (closes #2767)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10569 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -66,11 +66,11 @@ OpenLayers.Layer.WMS = OpenLayers.Class(OpenLayers.Layer.Grid, {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: yx
|
* Property: yx
|
||||||
* {Array} Array of strings with the EPSG codes for which the axis order
|
* {Object} Keys in this object are EPSG codes for which the axis order
|
||||||
* is to be reversed (yx instead of xy, LatLon instead of LonLat). This
|
* is to be reversed (yx instead of xy, LatLon instead of LonLat), with
|
||||||
* is only relevant for WMS versions >= 1.3.0.
|
* true as value. This is only relevant for WMS versions >= 1.3.0.
|
||||||
*/
|
*/
|
||||||
yx: ['EPSG:4326'],
|
yx: {'EPSG:4326': true},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor: OpenLayers.Layer.WMS
|
* Constructor: OpenLayers.Layer.WMS
|
||||||
@@ -166,8 +166,7 @@ OpenLayers.Layer.WMS = OpenLayers.Class(OpenLayers.Layer.Grid, {
|
|||||||
*/
|
*/
|
||||||
reverseAxisOrder: function() {
|
reverseAxisOrder: function() {
|
||||||
return (parseFloat(this.params.VERSION) >= 1.3 &&
|
return (parseFloat(this.params.VERSION) >= 1.3 &&
|
||||||
OpenLayers.Util.indexOf(this.yx,
|
!!this.yx[this.map.getProjectionObject().getCode()]);
|
||||||
this.map.getProjectionObject().getCode()) !== -1)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user