...
Example png response
GetLegendGraphic
GetLegendGraphic: Get the legend image as png for a layer.specified gridPlotId.
Request parameters
- layers (required): the gridPlotId of the gridPlot which legend should be displayed. Only one gridPlotId is supported.
- width (optional): width of the legend. Default is 150.
- height (optional): height of the image. The default is based on the number of legend items, 15 pixels per item.
Response
Transparent PNG image of the requested legend graphics for the specified gridPlotId and size.
Example request
Code Block |
---|
http://localhost: |
...
8181/FewsWebServices/wms?SERVICE=WMS |
...
&REQUEST=GetLegendGraphic&LAYERS |
...
=Precipitation%20GPM%20%5Bmm%5D&WIDTH=150&HEIGHT=400
|
Example png response
...
Properties
The following WMS specific properties can be configured in the FewsPiService.properties file.
...