SRS sent with WFS requests should match projection of requested extents.

(Closes #1537)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7415 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-06-21 13:27:16 +00:00
parent 2d66f80b16
commit 45b87bc02d
2 changed files with 11 additions and 1 deletions

View File

@@ -433,7 +433,7 @@ OpenLayers.Layer.WFS = OpenLayers.Class(
* altUrl - {String} Use this as the url instead of the layer's url
*/
getFullRequestString:function(newParams, altUrl) {
var projectionCode = this.map.getProjection();
var projectionCode = this.projection.getCode() || this.map.getProjection();
this.params.SRS = (projectionCode == "none") ? null : projectionCode;
return OpenLayers.Layer.Grid.prototype.getFullRequestString.apply(