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