GetFeatureInfo control does not send required FORMAT parameter, r=tschaub (closes #2201)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9718 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
bartvde
2009-10-06 17:10:32 +00:00
parent 2c2bf63c3f
commit 10398c5865
2 changed files with 31 additions and 24 deletions

View File

@@ -357,6 +357,7 @@ OpenLayers.Control.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control, {
y: clickPosition.y,
height: this.map.getSize().h,
width: this.map.getSize().w,
format: layers[0].params.FORMAT,
info_format: this.infoFormat
}, this.vendorParams),
callback: function(request) {

View File

@@ -169,7 +169,7 @@
// Verify that things work all right when we combine different types for the STYLES and LAYERS
// params in the WMS Layers involved
function test_mixedParams(t) {
t.plan(2);
t.plan(3);
var map = new OpenLayers.Map("map", {
getExtent: function() {return(new OpenLayers.Bounds(-180,-90,180,90));}
}
@@ -221,6 +221,12 @@
"Styles merged correctly"
);
t.eq(
log.options && log.options.params.format,
"image/jpeg",
"Required 'format' parameter included"
);
}
function test_urlMatches(t) {