We are using geoserver 2.15.0. When using the following request, a jpeg is returned in which the env parameters are replaced by actual values:
https://localchost/geoserver/wms?service=WMS&request=GetLegendGraphic&layer=myLayer&format=image/jpeg&env=min:0;max:50&LEGEND_OPTIONS=forceRule:true
When doing the same request with format application/json, the env parameters are not replaced
The JSON format is pretty new indeed, would not be surprised to find such issues in it. Do you have skills/time to do a pull request to fix it?
We are using geoserver 2.15.0. When using the following request, a jpeg is returned in which the env parameters are replaced by actual values:
https://localchost/geoserver/wms?service=WMS&request=GetLegendGraphic&layer=myLayer&format=image/jpeg&env=min:0;max:50&LEGEND_OPTIONS=forceRule:true
When doing the same request with format application/json, the env parameters are not replaced