when merging new params to untitled layer, we need to uppercase them for case-insensitivity like in the regular wms.

git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1290 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-08-17 19:14:50 +00:00
parent 07d39aca00
commit 24047ee512

View File

@@ -177,8 +177,11 @@ OpenLayers.Layer.WMS.Untiled.prototype =
* @param {Object} newParams * @param {Object} newParams
*/ */
mergeNewParams:function(newParams) { mergeNewParams:function(newParams) {
var upperParams = OpenLayers.Util.upperCaseObject(newParams);
var newArguments = [upperParams];
OpenLayers.Layer.HTTPRequest.prototype.mergeNewParams.apply(this, OpenLayers.Layer.HTTPRequest.prototype.mergeNewParams.apply(this,
arguments); newArguments);
//redraw
this.moveTo(); this.moveTo();
}, },