Added a check to avoid STYLE = null in GetLegendGraphic

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/gis-viewer@121932 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2015-12-17 13:53:26 +00:00
parent f9973d1336
commit 1f9aedaffa
1 changed files with 1 additions and 2 deletions

View File

@ -573,8 +573,7 @@ implements ToolbarHandler, DataPanelHandler, LayersPanelHandler, CqlFilterHandle
+ "layer="
+ layerItem.getLayer()
+ "&format=image/png"
+ "&STYLE="
+ layerItem.getStyle()
+ "&STYLE="+((layerItem.getStyle()!=null && !layerItem.getStyle().isEmpty())?layerItem.getStyle():"")
+ "&LEGEND_OPTIONS=forceRule:True;dx:0.2;dy:0.2;mx:0.2;my:0.2;fontStyle:bold;"
+ "borderColor:000000;border:true;fontColor:000000;fontSize:14";