add infoFormats to WMSCapabilities Format, r=ahocevar (closes #3539)
This commit is contained in:
@@ -112,6 +112,9 @@ OpenLayers.Format.WMSCapabilities.v1 = OpenLayers.Class(
|
||||
if (layer.formats === undefined) {
|
||||
layer.formats = capability.request.getmap.formats;
|
||||
}
|
||||
if (layer.infoFormats === undefined && capability.request.getfeatureinfo) {
|
||||
layer.infoFormats = capability.request.getfeatureinfo.formats;
|
||||
}
|
||||
|
||||
var i, len;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user