update projection processing. if a layer (or the map) declares its projection as 'none' then no SRS parameter is added to the WMS/WFS requests

git-svn-id: http://svn.openlayers.org/trunk/openlayers@960 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-17 15:39:44 +00:00
parent f9034ac9a2
commit fc41d9dac1
4 changed files with 17 additions and 6 deletions

View File

@@ -132,7 +132,9 @@ OpenLayers.Layer.WMS.prototype =
* @type String
*/
getFullRequestString:function(newParams) {
this.params.SRS = this.map.getProjection();
var projection = this.map.getProjection();
this.params.SRS = (projection == "none") ? null : projection;
return OpenLayers.Layer.Grid.prototype.getFullRequestString.apply(
this, arguments);
},