Commit 2226f911 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

synchronisation between overlay Panel order and info window works properly...

synchronisation between overlay Panel order and info window works properly (reorder triggers reorder in the window)
parent 07f6f73a
......@@ -42,6 +42,7 @@ function CustomMap(options) {
this.registerListenerType("onBioEntityClick");
this.registerListenerType("onShowOverlay");
this.registerListenerType("onHideOverlay");
this.registerListenerType("onRedrawSelectedOverlays");
this.registerListenerType("onBackgroundOverlayChange");
this.registerListenerType("onSubmapOpen");
this.registerListenerType("onSubmapClose");
......@@ -625,6 +626,8 @@ CustomMap.prototype.redrawSelectedDataOverlays = function () {
}
}
return Promise.all(promises);
}).then(function () {
return self.callListeners("onRedrawSelectedOverlays");
});
};
......
......@@ -53,6 +53,7 @@ function AliasInfoWindow(params) {
params.map.getTopMap().addListener("onShowOverlay", overlayListChanged);
params.map.getTopMap().addListener("onHideOverlay", overlayListChanged);
params.map.getTopMap().addListener("onRedrawSelectedOverlays", overlayListChanged);
var drugDbOverlay = params.map.getTopMap().getOverlayByName("drug");
if (drugDbOverlay !== undefined) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment