[Commits] r1755 - sandbox/ahocevar/playground/trunk/geoext/lib/GeoExt/data
commits at geoext.org
commits at geoext.org
Fri Jan 15 12:36:41 CET 2010
Author: ahocevar
Date: 2010-01-15 12:36:41 +0100 (Fri, 15 Jan 2010)
New Revision: 1755
Modified:
sandbox/ahocevar/playground/trunk/geoext/lib/GeoExt/data/PrintProvider.js
Log:
include customParams only when there are any.
Modified: sandbox/ahocevar/playground/trunk/geoext/lib/GeoExt/data/PrintProvider.js
===================================================================
--- sandbox/ahocevar/playground/trunk/geoext/lib/GeoExt/data/PrintProvider.js 2010-01-15 11:35:42 UTC (rev 1754)
+++ sandbox/ahocevar/playground/trunk/geoext/lib/GeoExt/data/PrintProvider.js 2010-01-15 11:36:41 UTC (rev 1755)
@@ -438,14 +438,16 @@
type: 'WMS',
layers: [layer.params.LAYERS].join(",").split(","),
format: layer.params.FORMAT,
- styles: [layer.params.STYLES].join(",").split(","),
- customParams: {}
+ styles: [layer.params.STYLES].join(",").split(",")
});
var param;
for(var p in layer.params) {
param = p.toLowerCase();
if(!layer.DEFAULT_PARAMS[param] &&
"layers,styles,width,height,srs".indexOf(param) == -1) {
+ if(!enc.customParams) {
+ enc.customParams = {};
+ }
enc.customParams[p] = layer.params[p];
}
}
More information about the Commits
mailing list