Image format of legendgraphic in 'GeoExt.panel.Legend'
KaiVolland opened this issue · comments
I'm searching for a way to dynamicaly set the Imageformat for a legendgraphic. Actually it seems to be default image/gif and not configurable.
Am I wrong or is the implementation for this missing?
For a GeoExt.container.WmsLegend
you can overwrite the baseParams. Take a quick look here: https://github.com/geoext/geoext2/blob/master/src/GeoExt/container/WmsLegend.js#L85 or better here:
http://geoext.github.io/geoext2/docs/#!/api/GeoExt.container.WmsLegend-cfg-baseParams
I have added a PR which fixes a broken behaviour in applying the baseParams here: #309.
Maybe someone can have a look at it.
#309 is closed, this issue seems to be resolved. Reopen it you disagree.