Commit b8db11cc authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

rename

parent 076dd6da
...@@ -210,7 +210,7 @@ var STWkit; ...@@ -210,7 +210,7 @@ var STWkit;
"tabs": false, "tabs": false,
"callback": function (latlngs, geojson) { "callback": function (latlngs, geojson) {
self.positions = []; self.positions = [];
self.maxDepth = 0; self.positionMaxDepth = 0;
if (latlngs.length > 0) { if (latlngs.length > 0) {
var toggleevt = document.createEvent("CustomEvent"); var toggleevt = document.createEvent("CustomEvent");
toggleevt.initCustomEvent('container:toggleVisibility', false, false, { toggleevt.initCustomEvent('container:toggleVisibility', false, false, {
...@@ -253,7 +253,7 @@ var STWkit; ...@@ -253,7 +253,7 @@ var STWkit;
self.control.showTable(); self.control.showTable();
for (var i = 0; i < coordinates.length; i++) for (var i = 0; i < coordinates.length; i++)
self.positions.push([coordinates[i][1], coordinates[i][0], self.forcingBoundary.depth(coordinates[i][1], coordinates[i][0])]); self.positions.push([coordinates[i][1], coordinates[i][0], self.forcingBoundary.depth(coordinates[i][1], coordinates[i][0])]);
self.maxDepth = self.positions[0][2]; self.positionMaxDepth = self.positions[0][2];
self.validate(); self.validate();
} }
} }
......
This diff is collapsed.
...@@ -108,7 +108,7 @@ module STWkit { ...@@ -108,7 +108,7 @@ module STWkit {
public datetimeFormat: string; public datetimeFormat: string;
public datetimeTFormat: string; public datetimeTFormat: string;
public positions: any[]; public positions: any[];
public maxDepth: number; public positionMaxDepth: number;
public geometryType: string; public geometryType: string;
private forcingBoundary: any; private forcingBoundary: any;
private locationDiv: HTMLDivElement; private locationDiv: HTMLDivElement;
...@@ -238,7 +238,7 @@ module STWkit { ...@@ -238,7 +238,7 @@ module STWkit {
"tabs": false, "tabs": false,
"callback": function (latlngs, geojson) { "callback": function (latlngs, geojson) {
self.positions = []; self.positions = [];
self.maxDepth = 0; self.positionMaxDepth = 0;
if (latlngs.length > 0) { if (latlngs.length > 0) {
var toggleevt = document.createEvent("CustomEvent"); var toggleevt = document.createEvent("CustomEvent");
toggleevt.initCustomEvent('container:toggleVisibility', false, false, { toggleevt.initCustomEvent('container:toggleVisibility', false, false, {
...@@ -279,7 +279,7 @@ module STWkit { ...@@ -279,7 +279,7 @@ module STWkit {
self.control.showTable(); self.control.showTable();
for (var i = 0; i < coordinates.length; i++) for (var i = 0; i < coordinates.length; i++)
self.positions.push([coordinates[i][1], coordinates[i][0], self.forcingBoundary.depth(coordinates[i][1], coordinates[i][0])]); self.positions.push([coordinates[i][1], coordinates[i][0], self.forcingBoundary.depth(coordinates[i][1], coordinates[i][0])]);
self.maxDepth = self.positions[0][2]; self.positionMaxDepth = self.positions[0][2];
self.validate(); self.validate();
} }
} }
......
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