fix to get legend
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/gis-viewer@121798 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
050bf42a47
commit
f9973d1336
|
@ -1140,10 +1140,17 @@ implements ToolbarHandler, DataPanelHandler, LayersPanelHandler, CqlFilterHandle
|
|||
GWT.log("styles "+styles);
|
||||
|
||||
if((styles!=null) && (styles.size()>0)){
|
||||
GWT.log("styles qui");
|
||||
l.setHasLegend(true);
|
||||
l.setDefaultStyle(styles.get(0));
|
||||
l.setStyle(styles.get(0));
|
||||
l.setStyles(styles);
|
||||
}else{
|
||||
String style = WmsUrlValidator.getValueOfParameter(WmsParameters.STYLES, serverWmsRequest);
|
||||
if(style!=null){ //CASE OF STYLE ="";
|
||||
//TENTATIVE TO GET LEGEND
|
||||
l.setHasLegend(true);
|
||||
}
|
||||
}
|
||||
|
||||
List<LayerItem> layerItems = new ArrayList<LayerItem>();
|
||||
|
@ -1162,7 +1169,7 @@ implements ToolbarHandler, DataPanelHandler, LayersPanelHandler, CqlFilterHandle
|
|||
* @param listLayerItem the list layer item
|
||||
* @param onTop the on top
|
||||
*/
|
||||
public void addLayerItemsByWms(LayerType layerType, List<LayerItem> listLayerItem, boolean onTop) {
|
||||
/*public void addLayerItemsByWms(LayerType layerType, List<LayerItem> listLayerItem, boolean onTop) {
|
||||
|
||||
GWT.log("Add addLayerByWms 2");
|
||||
|
||||
|
@ -1194,7 +1201,7 @@ implements ToolbarHandler, DataPanelHandler, LayersPanelHandler, CqlFilterHandle
|
|||
|
||||
layersPanel.addLayerItems(listLayerItem, onTop);
|
||||
layersPanel.updateLayersOrder();
|
||||
}
|
||||
}*/
|
||||
|
||||
/**
|
||||
* by Francesco M.
|
||||
|
|
Loading…
Reference in New Issue