From 709270015b5409b335c560bd1b43bc915416483e Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Mon, 22 Nov 2021 10:25:09 +0100 Subject: [PATCH] Added link "Open Project" in the pop-up of WFS feature --- CHANGELOG.md | 3 +- README.md | 2 +- .../client/GeoportalDataViewer.java | 6 +-- .../client/LayerManager.java | 38 +++++++++++++++++++ .../server/GNABaseMapsResourceReader.java | 2 +- .../GeoportalDataViewerServiceImpl.java | 18 --------- 6 files changed, 43 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58dcb6d..95a8e22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm #### Enhancements -- [#22370] Use a max-height for preview image shown in the pop-up +- [#22027] Integrated with MapBox Satellite +- Added link "Open Project" in the pop-up of WFS details - Moved to gwt-ol3 v8.1.0-gwt2_9 ## [v2.0.1] - 2021-11-10 diff --git a/README.md b/README.md index 86ee60d..7ae475e 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The GeoPortal Data Viewer App is an application to access, discovery and navigat * GWT v.2.9.0. [GWT](http://www.gwtproject.org) is licensed under [Apache License 2.0](http://www.gwtproject.org/terms.html) * GWT-Bootstrap v.2.3.2.0. [GWT-Bootstrap](https://github.com/gwtbootstrap) is licensed under [[Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0) -* GWT-OpenLayers 3+ v.8.0.0-gwt2_9. [GWT-OL3](https://github.com/TDesjardins/gwt-ol) +* GWT-OpenLayers 3+ v.8.1.0-gwt2_9. [GWT-OL3](https://github.com/TDesjardins/gwt-ol) * OpenLayers v.6.X. [OpenLayers](https://openlayers.org/) is licensed under [BSD 2-Clause "Simplified"](https://github.com/openlayers/openlayers/blob/main/LICENSE.md) ## Documentation diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/GeoportalDataViewer.java b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/GeoportalDataViewer.java index 0cd2df8..9dd16d9 100644 --- a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/GeoportalDataViewer.java +++ b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/GeoportalDataViewer.java @@ -42,10 +42,6 @@ import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.Scheduler; import com.google.gwt.core.client.Scheduler.ScheduledCommand; import com.google.gwt.core.client.ScriptInjector; -import com.google.gwt.dom.client.Style; -import com.google.gwt.dom.client.Style.Display; -import com.google.gwt.dom.client.Style.Position; -import com.google.gwt.dom.client.Style.Unit; import com.google.gwt.event.logical.shared.ResizeEvent; import com.google.gwt.event.logical.shared.ResizeHandler; import com.google.gwt.event.shared.HandlerManager; @@ -138,7 +134,7 @@ public class GeoportalDataViewer implements EntryPoint { @Override public void onFailure(Throwable caught) { RootPanel.get(APP_DIV).remove(loaderApp); - Window.alert("Error occurred on instancing the GeoPortale Viewer. Please, contact the support"); + Window.alert("Sorry, an error occurred on instancing the GeoPortale Viewer. Please, contact the support"); } @Override diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/LayerManager.java b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/LayerManager.java index e26aab3..aefc67f 100644 --- a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/LayerManager.java +++ b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/LayerManager.java @@ -57,6 +57,7 @@ import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Element; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.EventListener; +import com.google.gwt.user.client.Random; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.FlexTable; @@ -558,6 +559,8 @@ public class LayerManager { flowPanel.getElement().getStyle().setProperty("maxHeight", "600px"); scrollPanel.add(flowPanel); + List