Dear Members,
I was trying to include legend in the pdf file but it is not being
included. I see an empty box in place of the legend. Below is my code.
Spec.
"legends": [
{
"classes": [
{
"icons": [
"http://localhost:8080/geoserver/malawi_vulnerabilitytool/wms?TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=malawi_national_vulnerability_index&FORMAT=image%2Fpng"
],
"name": 'icon name',
"iconBeforeName": true
}
],
"name": 'Legend'
}
],
config.yaml
- !columns
# columns can have an absolute position. In that case, they need the
3 following fields:
absoluteX: 50
absoluteY: 300
width: 440
items:
- !legends
backgroundColor: #FFFFFF
borders: true
align: left
inline: true
maxHeight: 700
maxWidth: 200
defaultScale: 0.5
iconMaxWidth: 80
iconMaxHeight: 80
iconPadding: 3 0 0 0
columnMargin: 10
classIndentation: 3
classSpace: 5
backgroundColor: white
layerFontSize: 9
- !scalebar
type: bar_sub
Thanks!
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users