With a confirmation that Tim is happy considering this a review, I'm going to

go ahead and commit this (relatively lighttweight) patch to the code so that
the projection library base API is there, even though for the most part, it's
not usable yet. This changes map.projection from being a string to being a 
class, with a projCode on it. (Closes #1035)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5401 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-12-13 23:29:18 +00:00
parent c3c2895e8c
commit abe2a52c31
8 changed files with 46 additions and 12 deletions

View File

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