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:
parent
f9973d1336
commit
1f9aedaffa
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue