Fixed bug on parse wms request
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/gis-viewer-app@121793 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f2998bfaba
commit
be52c586a7
|
@ -1,5 +1,5 @@
|
|||
eclipse.preferences.version=1
|
||||
jarsExcludedFromWebInfLib=
|
||||
lastWarOutDir=/home/francesco-mangiacrapa/wseclipse/gis-viewer-app(TRUNK)/target/gis-viewer-app-1.0.0-SNAPSHOT
|
||||
lastWarOutDir=/home/francesco-mangiacrapa/wseclipseluna/gis-viewer-app-TRUNK/target/gis-viewer-app
|
||||
warSrcDir=src/main/webapp
|
||||
warSrcDirIsOutput=false
|
||||
|
|
|
@ -11,6 +11,7 @@ import org.gcube.portlets.user.gisviewer.client.GisViewerPanel;
|
|||
import org.gcube.portlets.user.gisviewer.client.GisViewerPanel.LayerType;
|
||||
import org.gcube.portlets.user.gisviewer.client.commons.utils.WmsUrlValidator;
|
||||
|
||||
import com.google.gwt.core.shared.GWT;
|
||||
import com.google.gwt.user.client.Window;
|
||||
|
||||
|
||||
|
@ -66,6 +67,7 @@ public class WmsRequestConverter {
|
|||
}
|
||||
|
||||
WmsUrlValidator urlValidator = new WmsUrlValidator(wmsRequest);
|
||||
urlValidator.parseWmsRequest(true,false);
|
||||
String layerName = urlValidator.getValueOfParsedWMSParameter(org.gcube.portlets.user.gisviewer.client.commons.utils.WmsParameters.LAYERS);
|
||||
|
||||
if(layerName==null || layerName.isEmpty()){
|
||||
|
@ -80,7 +82,9 @@ public class WmsRequestConverter {
|
|||
|
||||
this.listStyles = new ArrayList<String>();
|
||||
String style = urlValidator.getValueOfParsedWMSParameter(org.gcube.portlets.user.gisviewer.client.commons.utils.WmsParameters.STYLES);
|
||||
this.listStyles.add(style);
|
||||
GWT.log("Wms request, style "+style);
|
||||
if(style!=null)
|
||||
this.listStyles.add(style);
|
||||
|
||||
Map<String, String> noWms = urlValidator.getMapWmsNotStandardParams();
|
||||
this.noWMSParams = new HashMap<String, String>();
|
||||
|
|
Loading…
Reference in New Issue