From dd3dcef4ed22683b60514ade77043d0008a9e5e1 Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 6 Sep 2006 05:24:07 +0000 Subject: [PATCH] oops. we forgot to add the projection to the parameters. not good. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1409 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/WMS/Untiled.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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. *