Commit 68b327ec authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

fixed depth info when added overlapping layer

parent e71b10e5
...@@ -247,8 +247,10 @@ var STWkit; ...@@ -247,8 +247,10 @@ var STWkit;
default: default:
break; break;
} }
if (self.forcingBoundary) if (self.forcingBoundary) {
self.forcingBoundary.validate(coordinates); self.forcingBoundary.validate(coordinates);
self.forcingBoundary.addListener(self.control.layers);
}
self.control.showTable(); self.control.showTable();
self.hasPosition = true; self.hasPosition = true;
validate(); validate();
...@@ -381,8 +383,10 @@ var STWkit; ...@@ -381,8 +383,10 @@ var STWkit;
LocationCard.prototype.clear = function () { LocationCard.prototype.clear = function () {
var self = this; var self = this;
_super.prototype.clear.call(this); _super.prototype.clear.call(this);
if (self.forcingBoundary) if (self.forcingBoundary) {
self.forcingBoundary.hide(); self.forcingBoundary.hide();
self.forcingBoundary.removeListener(self.control.layers);
}
self.control.clear(); self.control.clear();
self.control.hideTable(); self.control.hideTable();
if (self.nextButton) if (self.nextButton)
......
This diff is collapsed.
...@@ -270,7 +270,10 @@ module STWkit { ...@@ -270,7 +270,10 @@ module STWkit {
default: default:
break; break;
} }
if (self.forcingBoundary) self.forcingBoundary.validate(coordinates); if (self.forcingBoundary) {
self.forcingBoundary.validate(coordinates);
self.forcingBoundary.addListener(self.control.layers);
}
self.control.showTable(); self.control.showTable();
self.hasPosition = true; self.hasPosition = true;
validate(); validate();
...@@ -412,7 +415,10 @@ module STWkit { ...@@ -412,7 +415,10 @@ module STWkit {
public clear() { public clear() {
var self = this; var self = this;
super.clear(); super.clear();
if (self.forcingBoundary) self.forcingBoundary.hide(); if (self.forcingBoundary) {
self.forcingBoundary.hide();
self.forcingBoundary.removeListener(self.control.layers);
}
self.control.clear(); self.control.clear();
self.control.hideTable(); self.control.hideTable();
if (self.nextButton) AccordionCard.enableNext(self.nextButton, false); if (self.nextButton) AccordionCard.enableNext(self.nextButton, false);
......
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