inasafe / inasafe-fba

Next generation of InaSAFE that includes support for forecast based action
MIT License
1 stars 8 forks source link

Legend font should match site #18

Closed timlinux closed 4 years ago

timlinux commented 4 years ago

see if you can make this work @NyakudyaA

NyakudyaA commented 4 years ago

@ann26 We can add the following to the getlegend request

http://staging.fbf.kartoza.com/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=kartoza:exposed_buildings&LEGEND_OPTIONS=fontName:Ubuntu;fontSize:12;fontAntiAliasing:true;forceLabels:on

Other options we can customize the legend by adding fontColor:0x000033; bgColor:0xFFFFEE; fontStyle:Bold;