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:
@@ -357,6 +357,7 @@ OpenLayers.Control.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
y: clickPosition.y,
|
y: clickPosition.y,
|
||||||
height: this.map.getSize().h,
|
height: this.map.getSize().h,
|
||||||
width: this.map.getSize().w,
|
width: this.map.getSize().w,
|
||||||
|
format: layers[0].params.FORMAT,
|
||||||
info_format: this.infoFormat
|
info_format: this.infoFormat
|
||||||
}, this.vendorParams),
|
}, this.vendorParams),
|
||||||
callback: function(request) {
|
callback: function(request) {
|
||||||
|
|||||||
@@ -169,7 +169,7 @@
|
|||||||
// Verify that things work all right when we combine different types for the STYLES and LAYERS
|
// Verify that things work all right when we combine different types for the STYLES and LAYERS
|
||||||
// params in the WMS Layers involved
|
// params in the WMS Layers involved
|
||||||
function test_mixedParams(t) {
|
function test_mixedParams(t) {
|
||||||
t.plan(2);
|
t.plan(3);
|
||||||
var map = new OpenLayers.Map("map", {
|
var map = new OpenLayers.Map("map", {
|
||||||
getExtent: function() {return(new OpenLayers.Bounds(-180,-90,180,90));}
|
getExtent: function() {return(new OpenLayers.Bounds(-180,-90,180,90));}
|
||||||
}
|
}
|
||||||
@@ -221,6 +221,12 @@
|
|||||||
"Styles merged correctly"
|
"Styles merged correctly"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
t.eq(
|
||||||
|
log.options && log.options.params.format,
|
||||||
|
"image/jpeg",
|
||||||
|
"Required 'format' parameter included"
|
||||||
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_urlMatches(t) {
|
function test_urlMatches(t) {
|
||||||
|
|||||||
Reference in New Issue
Block a user