Skip to:
hideEmptyRules is working fine if I request a Legend as an image, but it is not working when using application/json as the output format.
hideEmptyRules
For example, this request will return only 1 entry:http://localhost:8080/geoserver/ne/wms?REQUEST=GetLegendGraphic&FORMAT=image/png&LAYER=world&BBOX=1.44,48.37,3.55,49.43&LEGEND_OPTIONS=hideEmptyRules:true
But if I asks for a json the hideEmptyRules option is ignored and it will return all entries:http://localhost:8080/geoserver/ne/wms?REQUEST=GetLegendGraphic&FORMAT=application/json&LAYER=world&BBOX=1.44,48.37,3.55,49.43&LEGEND_OPTIONS=hideEmptyRules:true
hideEmptyRules
is working fine if I request a Legend as an image, but it is not working when using application/json as the output format.For example, this request will return only 1 entry:
http://localhost:8080/geoserver/ne/wms?REQUEST=GetLegendGraphic&FORMAT=image/png&LAYER=world&BBOX=1.44,48.37,3.55,49.43&LEGEND_OPTIONS=hideEmptyRules:true
But if I asks for a json the
hideEmptyRules
option is ignored and it will return all entries:http://localhost:8080/geoserver/ne/wms?REQUEST=GetLegendGraphic&FORMAT=application/json&LAYER=world&BBOX=1.44,48.37,3.55,49.43&LEGEND_OPTIONS=hideEmptyRules:true