Added layer title read from query string
Updated maven target build to java8 git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/gis-viewer-app@148784 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
610ac74282
commit
a39d9014be
10
.classpath
10
.classpath
|
@ -14,11 +14,6 @@
|
|||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry including="**/*.java" kind="src" output="target/test-classes" path="src/test/resources"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
|
@ -30,5 +25,10 @@
|
|||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/gis-viewer-app-1.4.0-SNAPSHOT/WEB-INF/classes"/>
|
||||
</classpath>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
|
||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||
<dependent-module archiveName="gis-viewer-4.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/gis-viewer-TRUNK/gis-viewer-TRUNK">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<property name="java-output-path" value="/${module}/target/www/WEB-INF/classes"/>
|
||||
<property name="context-root" value="gis-viewer-app"/>
|
||||
</wb-module>
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -14,7 +14,7 @@
|
|||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<artifactId>gis-viewer-app</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>1.4.0-SNAPSHOT</version>
|
||||
<version>1.4.1-SNAPSHOT</version>
|
||||
<name>Gis Viewer App</name>
|
||||
<description>
|
||||
The Gis Viewer App
|
||||
|
@ -31,7 +31,7 @@
|
|||
<distroDirectory>distro</distroDirectory>
|
||||
<!-- GWT needs at least java 1.6 -->
|
||||
<maven.compiler.source>1.7</maven.compiler.source>
|
||||
<maven.compiler.target>1.7</maven.compiler.target>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
|
||||
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
|
|
@ -130,8 +130,10 @@ 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);
|
||||
GWT.log(ConstantGisViewerApp.GET_WMS_PARAMETER+ " = "+wmsRequest);
|
||||
GWT.log(ConstantGisViewerApp.GET_UUID_PARAMETER+ " = "+uuid);
|
||||
GWT.log(ConstantGisViewerApp.GET_LAYER_TITLE+ " = "+layerTitle);
|
||||
|
||||
boolean displayWarning = readCookieWPSQueryAuthorization(GCUBE_COOKIE_SHOW_WARNING_FOR_WPS_DATA_POINT_QUERY);
|
||||
GWT.log("Display "+GCUBE_COOKIE_SHOW_WARNING_FOR_WPS_DATA_POINT_QUERY+"? "+displayWarning);
|
||||
|
@ -175,7 +177,7 @@ public class ApplicationController {
|
|||
if(wmsRequest!=null && !wmsRequest.isEmpty()){
|
||||
|
||||
try {
|
||||
wmsRequestConverter.addRequestToGisViewer(wmsRequest,null, uuid);
|
||||
wmsRequestConverter.addRequestToGisViewer(wmsRequest,layerTitle, uuid);
|
||||
} catch (Exception e) {
|
||||
GWT.log("An error occurred on adding wmsrequest :"+wmsRequest);
|
||||
e.printStackTrace();
|
||||
|
|
|
@ -4,10 +4,12 @@
|
|||
package org.gcube.portlets.user.gisviewerapp.client;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
||||
* @Oct 9, 2014
|
||||
* The Class ConstantGisViewerApp.
|
||||
*
|
||||
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
||||
* May 17, 2017
|
||||
*/
|
||||
public class ConstantGisViewerApp {
|
||||
|
||||
|
@ -15,7 +17,6 @@ public class ConstantGisViewerApp {
|
|||
public static final String GET_WMS_PARAMETER = "wmsrequest";
|
||||
public static final String GET_UUID_PARAMETER = "uuid";
|
||||
public static final String WMS_PARAM_SEPARATOR_REPLACEMENT_KEY = "separtor";
|
||||
|
||||
// public static final Logger logger = Logger.getLogger("GisViewerApp");
|
||||
public static final String GET_LAYER_TITLE = "layertitle";
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue