From c186264e5e5595f55142f6a118b4ad942a5efb64 Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Fri, 18 Dec 2015 15:34:43 +0000 Subject: [PATCH] Updated addWmsLayer git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/gis-viewer-app@121984 82a268e6-3cf1-43bd-a215-b396298e98cf --- .classpath | 4 ++-- pom.xml | 2 +- .../user/gisviewerapp/client/ApplicationController.java | 3 ++- .../user/gisviewerapp/client/WmsRequestConverter.java | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.classpath b/.classpath index d64a991..93e51d5 100644 --- a/.classpath +++ b/.classpath @@ -1,6 +1,6 @@ - + @@ -30,5 +30,5 @@ - + diff --git a/pom.xml b/pom.xml index 9fdc94b..cd00a8f 100644 --- a/pom.xml +++ b/pom.xml @@ -121,7 +121,7 @@ ${webappDirectory}/WEB-INF/classes - ${artifactId} + diff --git a/src/main/java/org/gcube/portlets/user/gisviewerapp/client/ApplicationController.java b/src/main/java/org/gcube/portlets/user/gisviewerapp/client/ApplicationController.java index f8b6883..c7902b4 100644 --- a/src/main/java/org/gcube/portlets/user/gisviewerapp/client/ApplicationController.java +++ b/src/main/java/org/gcube/portlets/user/gisviewerapp/client/ApplicationController.java @@ -166,7 +166,8 @@ public class ApplicationController { @Override public void subtmitHandler(String title, String name, String wmsRequest) { - gisViewerPanel.addLayerByWms(title, name, wmsRequest, false, false); + //TODO UPDATE + gisViewerPanel.addLayerByWms(title, name, wmsRequest, false, false, false); box.hide(); } }; diff --git a/src/main/java/org/gcube/portlets/user/gisviewerapp/client/WmsRequestConverter.java b/src/main/java/org/gcube/portlets/user/gisviewerapp/client/WmsRequestConverter.java index e6a5ca3..ebed2ab 100644 --- a/src/main/java/org/gcube/portlets/user/gisviewerapp/client/WmsRequestConverter.java +++ b/src/main/java/org/gcube/portlets/user/gisviewerapp/client/WmsRequestConverter.java @@ -97,7 +97,7 @@ public class WmsRequestConverter { * Adds the request to gis viewer. */ public void addRequestToGisViewer(){ - gisViewer.addLayerByWms(GisViewerPanel.LayerType.FEATURETYPE, displayLayerName, title, url, isExternal, isBase, displayInLayerSwitcher, listStyles, wmsRequest, onTop, noWMSParams); + gisViewer.addLayerByWms(GisViewerPanel.LayerType.FEATURETYPE, displayLayerName, title, url, isExternal, isBase, displayInLayerSwitcher, listStyles, wmsRequest, onTop, noWMSParams, false); } /**