You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a WMSLegend is configured with a URL, and baseParams e.g. contain a FORMAT, the FORMAT gets appended even if the original URL already has a FORMAT param.
We really need to turn all params into an object, uppercase them, and compare them against uppercased baesParams to make sure we don't duplicate any. Whether we override or ignore is a different question - but baseParams implies that we ignore params that are in the URL already.
The text was updated successfully, but these errors were encountered:
I'm finding GeoExt.WMSLegend is still appending two times "format=" to the legend url. This gives the same problems reported in #434: http://trac.geoext.org/ticket/434
I find that when url has already got format option and also params has the format option too, in the final lines they get appended in the final url:
url = Ext.urlAppend(url, Ext.urlEncode(params));
This causes the same duplication of format option.
I hacked it quickly with this at the end of the getLegendUrl method:
If a WMSLegend is configured with a URL, and baseParams e.g. contain a FORMAT, the FORMAT gets appended even if the original URL already has a FORMAT param.
We really need to turn all params into an object, uppercase them, and compare them against uppercased baesParams to make sure we don't duplicate any. Whether we override or ignore is a different question - but baseParams implies that we ignore params that are in the URL already.
The text was updated successfully, but these errors were encountered: