diff --git a/lib/OpenLayers/Layer/WMS/Untiled.js b/lib/OpenLayers/Layer/WMS/Untiled.js index cbc94715a4..afb875d546 100644 --- a/lib/OpenLayers/Layer/WMS/Untiled.js +++ b/lib/OpenLayers/Layer/WMS/Untiled.js @@ -181,6 +181,24 @@ OpenLayers.Layer.WMS.Untiled.prototype = this.moveTo(); }, + /** combine the layer's url with its params and these newParams. + * + * Add the SRS parameter from 'projection' -- this is probably + * more eloquently done via a setProjection() method, but this + * works for now and always. + * + * @param {Object} newParams + * + * @type String + */ + getFullRequestString:function(newParams) { + var projection = this.map.getProjection(); + this.params.SRS = (projection == "none") ? null : projection; + + return OpenLayers.Layer.Grid.prototype.getFullRequestString.apply( + this, arguments); + }, + /** This function first removes the previous image div, then adds a new * one according to the transparency property. *