Improved css

This commit is contained in:
Francesco Mangiacrapa 2023-03-30 16:21:49 +02:00
parent 60f4569518
commit e09bb18614
5 changed files with 13 additions and 13 deletions

View File

@ -353,12 +353,6 @@
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<dependent-module archiveName="metadata-profile-form-builder-widget-2.1.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/metadata-profile-form-builder-widget/metadata-profile-form-builder-widget">
<dependency-type>uses</dependency-type>
</dependent-module>

View File

@ -20,7 +20,7 @@
<properties>
<!-- Convenience property to set the GWT version -->
<gwt.version>2.9.0</gwt.version>
<gwt.version>2.10.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>

View File

@ -975,7 +975,7 @@ public class LayerManager {
if (payloads != null && payloads.size() > 0) {
PayloadDV img = payloads.get(0);
if (img != null && img.getLink() != null) {
String theImgHTML = "<img src=\"" + img.getLink() + "\"></img>";
String theImgHTML = "<div id='pop-img'><img src=\"" + img.getLink() + "\"></img></div>";
GWT.log("theImgHTML: " + theImgHTML);
flex.setHTML(flex.getRowCount() + 1, 0, theImgHTML);
firstImageFound = true;
@ -1176,7 +1176,7 @@ public class LayerManager {
if (listUI != null && listUI.size() > 0) {
PayloadDV img = listUI.get(0);
if (img != null && img.getLink() != null) {
String theImgHTML = "<img src=\"" + img.getLink() + "\"></img>";
String theImgHTML = "<div id='pop-img'><img src=\"" + img.getLink() + "\"></img></div>";
GWT.log("theImgHTML: " + theImgHTML);
// GeoportalDataViewerConstants.print("The row are:
// "+flex.getRowCount());

View File

@ -347,7 +347,7 @@ public abstract class OpenLayerMap {
elPopup.getStyle().setVisibility(Visibility.VISIBLE);
if (popupOverlay == null) {
popupOverlay = addOverlay(elPopup);
addPopupCloserHandelr(popupOverlay);
addPopupCloserHandler(popupOverlay);
}
Element popContent = DOM.getElementById("popup-content");
popContent.setInnerHTML(html);
@ -365,11 +365,11 @@ public abstract class OpenLayerMap {
}
/**
* Adds the popup closer handelr.
* Adds the popup closer handler.
*
* @param popupOverlay the popup overlay
*/
private void addPopupCloserHandelr(Overlay popupOverlay) {
private void addPopupCloserHandler(Overlay popupOverlay) {
Element elPopupCloser = DOM.getElementById("popup-closer");
Event.sinkEvents(elPopupCloser, Event.ONCLICK);
Event.setEventListener(elPopupCloser, new com.google.gwt.user.client.EventListener() {
@ -635,6 +635,7 @@ public abstract class OpenLayerMap {
*
* @param layerItem the layer item
* @param features the features
* @param fitMapToFeaturesExtent the fit map to features extent
*/
public void addLayerFeaturesAsHighlight(LayerItem layerItem, Feature[] features, boolean fitMapToFeaturesExtent) {

View File

@ -34,11 +34,16 @@ body {
max-width: 500px;
visibility: hidden;
padding-top: 20px;
opacity: 0.9;
}
.ol-popup #pop-img {
max-height: 130px;
overflow-y: scroll;
}
.ol-popup img {
width: 100%;
max-height: 100px;
}
.ol-popup:after, .ol-popup:before {