diff --git a/lib/OpenLayers/Layer/WMS.js b/lib/OpenLayers/Layer/WMS.js index 49bdb6a46a..325e6c2404 100644 --- a/lib/OpenLayers/Layer/WMS.js +++ b/lib/OpenLayers/Layer/WMS.js @@ -154,12 +154,13 @@ OpenLayers.Layer.WMS = OpenLayers.Class(OpenLayers.Layer.Grid, { bounds = this.adjustBounds(bounds); var imageSize = this.getImageSize(); - var s = this.getFullRequestString( - {BBOX: this.encodeBBOX ? bounds.toBBOX() : bounds.toArray(), - WIDTH:imageSize.w, - HEIGHT:imageSize.h}); - //console.log(s); - return s; + var newParams = { + BBOX: this.encodeBBOX ? bounds.toBBOX() : bounds.toArray(), + WIDTH:imageSize.w, + HEIGHT:imageSize.h + }; + var requestString = this.getFullRequestString(newParams); + return requestString; }, /**