fixing layer title
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/gis-viewer-app@148788 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
1452ac37c8
commit
c3e9423400
|
@ -142,7 +142,7 @@ public class ApplicationController {
|
|||
|
||||
String wmsRequest = Window.Location.getParameter(ConstantGisViewerApp.GET_WMS_PARAMETER);
|
||||
String uuid = Window.Location.getParameter(ConstantGisViewerApp.GET_UUID_PARAMETER);
|
||||
String layerTitle = Window.Location.getParameter(ConstantGisViewerApp.GET_UUID_PARAMETER);
|
||||
String layerTitle = Window.Location.getParameter(ConstantGisViewerApp.GET_LAYER_TITLE);
|
||||
GWT.log(ConstantGisViewerApp.GET_WMS_PARAMETER+ " = "+wmsRequest);
|
||||
GWT.log(ConstantGisViewerApp.GET_UUID_PARAMETER+ " = "+uuid);
|
||||
GWT.log(ConstantGisViewerApp.GET_LAYER_TITLE+ " = "+layerTitle);
|
||||
|
|
|
@ -64,7 +64,7 @@ public class WmsRequestConverter {
|
|||
}
|
||||
|
||||
String layerName = WmsUrlValidator.getValueOfParameter(WmsParameters.LAYERS, wmsRequest);
|
||||
displayName= displayName==null || displayName.isEmpty()?layerName:"No Title";
|
||||
displayName = displayName==null || displayName.isEmpty()?layerName:displayName;
|
||||
gisViewer.addLayerByWmsRequest(displayName, layerName, wmsRequest, isBase, displayInLayerSwitcher, layerUUID, onTop);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue