Skip to content
Snippets Groups Projects
Commit c6646fc5 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

clear button hides reaction info window

parent ecb18189
No related branches found
No related tags found
2 merge requests!925Merge 13.2.0,!883clear button hides reaction info window
Pipeline #12771 passed
......@@ -3,6 +3,7 @@ minerva (13.1.3) stable; urgency=medium
page (#870)
* Bug fix: submap list must be selected to export from every submap (#874)
* Bug fix: export map as image properly uses bottom limit (#875)
* Bug fix: reaction info window wasn't closed on CLEAR (#876)
-- Piotr Gawron <piotr.gawron@uni.lu> Wed, 14 Aug 2019 17:00:00 +0200
......
......@@ -12,6 +12,8 @@ function OpenLayerPolyline(options) {
var self = this;
self.registerListenerType("onHide");
if (options.strokeColor === undefined) {
options.strokeColor = "#000000";
}
......@@ -74,7 +76,8 @@ OpenLayerPolyline.prototype.show = function () {
};
OpenLayerPolyline.prototype.hide = function () {
return this.getOpenLayersPolyline().setStyle(new ol.style.Style({}));
this.getOpenLayersPolyline().setStyle(new ol.style.Style({}));
return this.callListeners("onHide");
};
OpenLayerPolyline.prototype.isShown = function () {
......
......@@ -228,7 +228,12 @@ MarkerSurfaceCollection.prototype.createSurfaceForDbOverlay = function (element,
onClick: onclickFunctions
});
result.addListener("onClick", function () {
return map.getTopMap().openInfoWindowForIdentifiedElement(element);
return map.getTopMap().openInfoWindowForIdentifiedElement(element).then(function (infoWindow) {
result.getMapCanvasObjects()[0].addListener("onHide", function () {
return infoWindow._infoWindow.hide();
});
return infoWindow;
});
});
self.putSurface({element: element, overlay: dbOverlay}, result);
if (self.getMap().isInitialized()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment