fixed balloon visibility
This commit is contained in:
parent
8dc710686f
commit
4064189cd3
|
@ -97,13 +97,13 @@ public class GeoportalDataViewer implements EntryPoint {
|
|||
}
|
||||
});
|
||||
|
||||
Window.addResizeHandler(new ResizeHandler() {
|
||||
@Override
|
||||
public void onResize(ResizeEvent event) {
|
||||
GWT.log("onWindowResized width: " + event.getWidth() + " height: " + event.getHeight());
|
||||
mainPanel.setMapHeight(event.getHeight() - 200);
|
||||
}
|
||||
});
|
||||
// Window.addResizeHandler(new ResizeHandler() {
|
||||
// @Override
|
||||
// public void onResize(ResizeEvent event) {
|
||||
// GWT.log("onWindowResized width: " + event.getWidth() + " height: " + event.getHeight());
|
||||
// mainPanel.setMapHeight(event.getHeight() - 200);
|
||||
// }
|
||||
// });
|
||||
|
||||
paramWmsRequest = Window.Location.getParameter(GeoportalDataViewerConstants.GET_WMS_PARAMETER);
|
||||
paramUUID = Window.Location.getParameter(GeoportalDataViewerConstants.GET_UUID_PARAMETER);
|
||||
|
|
|
@ -6,6 +6,7 @@ import org.gcube.portlets.user.geoportaldataviewer.shared.gis.GeoQuery;
|
|||
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.GeoQuery.TYPE;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.dom.client.Style.Visibility;
|
||||
import com.google.gwt.event.shared.HandlerManager;
|
||||
import com.google.gwt.user.client.DOM;
|
||||
import com.google.gwt.user.client.Element;
|
||||
|
@ -197,6 +198,7 @@ public class OpenLayerOSM {
|
|||
public void showPopup(String html, Coordinate coordinate) {
|
||||
if(popupOverlay==null) {
|
||||
Element elPopup = DOM.getElementById("popup");
|
||||
elPopup.getStyle().setVisibility(Visibility.VISIBLE);
|
||||
popupOverlay = addOverlay(elPopup);
|
||||
addPopupCloserHandelr(popupOverlay);
|
||||
}
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
bottom: 12px;
|
||||
left: -50px;
|
||||
min-width: 280px;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.ol-popup:after, .ol-popup:before {
|
||||
|
|
Loading…
Reference in New Issue