Improved Icons and Layers Panel. Moved to GWT 2.9

This commit is contained in:
Francesco Mangiacrapa 2023-01-31 11:04:15 +01:00
parent 67c037e498
commit aaed3cf9f4
6 changed files with 18 additions and 9 deletions

View File

@ -9,7 +9,6 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
#### Enhancements
- [#24506] Added Locate/Highlight the Layer facility on the Map
- Moved to gwt 2.10
## [v3.1.0] - 2023-01-12

View File

@ -9,7 +9,7 @@ The GeoPortal Data Viewer App is an application to access, discovery and navigat
**Uses**
* GWT v.2.10.0. [GWT](http://www.gwtproject.org) is licensed under [Apache License 2.0](http://www.gwtproject.org/terms.html)
* 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.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)

View File

@ -20,7 +20,7 @@
<properties>
<!-- Convenience property to set the GWT version -->
<gwt.version>2.10.0</gwt.version>
<gwt.version>2.9.0</gwt.version>
<gwt.compiler.style>PRETTY</gwt.compiler.style>
<gson.version>2.6.2</gson.version>
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -20,6 +20,7 @@ import com.github.gwtbootstrap.client.ui.constants.IconType;
import com.github.gwtbootstrap.client.ui.constants.LabelType;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.Style.FontWeight;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
@ -168,13 +169,16 @@ public class DragDropLayer extends FlowPanel {
VerticalPanel vp = new VerticalPanel();
VerticalPanel vpInner = new VerticalPanel();
HorizontalPanel hp1 = new HorizontalPanel();
HorizontalPanel hp0 = new HorizontalPanel();
HorizontalPanel hpFunct = new HorizontalPanel();
vpInner.getElement().getStyle().setMarginLeft(47, Unit.PX);
hp1.add(draggableButton);
hp1.add(buttonLayerVisibility);
hp1.add(buttonLocate);
vpInner.add(labelProject);
hp0.add(draggableButton);
labelProject.getElement().getStyle().setMarginLeft(10, Unit.PX);
labelProject.getElement().getStyle().setFontWeight(FontWeight.BOLD);
hp0.add(labelProject);
hpFunct.add(buttonLayerVisibility);
hpFunct.add(buttonLocate);
if (layerObject.getProjectDV().getTemporalReference() != null) {
TemporalReferenceDV tempRef = layerObject.getProjectDV().getTemporalReference();
@ -183,9 +187,14 @@ public class DragDropLayer extends FlowPanel {
}
vpInner.add(labelLayerName);
//vpInner.add(new SimplePanel(rs));
vp.add(hp0);
hpFunct.getElement().getStyle().setMarginTop(5, Unit.PX);
vpInner.add(hpFunct);
vpInner.add(new SimplePanel(rs));
vp.add(hp1);
vp.add(vpInner);
add(vp);
// add(ft);

View File

@ -365,6 +365,7 @@ body {
width: 400px;
border: 1px solid #ccc !important;
padding: 5px 0px;
border-radius: 5px;
}
.range-slider {