Commit df02cc1f authored by Pettersson Tomas's avatar Pettersson Tomas

adjustments for settings dates

parent db21c4f5
......@@ -399,17 +399,34 @@ var EXTrajectory = (function (_super) {
var drawDiv = L.DomUtil.create('div', 'uk-width-1-2', positionButtonGrid);
var drawButton = L.DomUtil.create('button', 'uk-button uk-button-small uk-align-left uk-margin-remove', drawDiv);
drawButton.textContent = 'Free hand draw';
function enddateonchange() {
var newdate = moment.utc(self.endDateInput.value + ' ' + self.endTimeInput.value, self.datetimeFormat);
if (newdate.isBefore(self.from)) {
self.endDateInput.value = self.to.format(self.dateFormat);
self.endTimeInput.value = self.to.startOf('hour').format(self.timeFormat);
STWkit.AccordionCard.warningMsg('End point date outside simulation period', 'End point date cannot be before simulation period start date');
}
else {
var diff = Math.abs(self.from - newdate);
var nrofhours = Math.round(((diff / 1000) / 60) / 60);
if (nrofhours <= 72) {
self.durationhours = nrofhours;
self.refreshTrajectory();
self.fireChangeFn(self);
delete self.durationhours;
}
else {
self.endDateInput.value = self.to.format(self.dateFormat);
self.endTimeInput.value = self.to.startOf('hour').format(self.timeFormat);
STWkit.AccordionCard.warningMsg('Simulation period too long', 'The number of simulation hours cannot exceend 72 hours (Simulation period start date - End point date)');
}
}
}
self.endDateInput.onchange = function (evt) {
var date = moment.utc(self.endDateInput.value + ' ' + self.endTimeInput.value, self.datetimeFormat);
self.to = date.clone();
self.refreshTrajectory();
self.fireChangeFn(self);
enddateonchange();
};
self.endTimeInput.onchange = function (evt) {
var date = moment.utc(self.endDateInput.value + ' ' + self.endTimeInput.value, self.datetimeFormat);
self.to = date.clone();
self.refreshTrajectory();
self.fireChangeFn(self);
enddateonchange();
};
positionDiv.guideFn = function () {
var geojson = {};
......@@ -594,8 +611,8 @@ var EXTrajectory = (function (_super) {
self.time = [];
var t = self.from.clone();
for (var i = 0; i < coords.length; i++) {
self.time.push(t.valueOf());
t = t.add(timeIncrement, 'm');
self.time.push(t.valueOf());
}
self.time[self.time.length - 1] = self.to.valueOf();
var trajfeature = STWkit.createFeature("LineString");
......@@ -780,6 +797,7 @@ var L;
var periodoptions = {};
periodoptions['type'] = this.type;
periodoptions['initials'] = this.initials;
periodoptions['minmax1y'] = true;
periodoptions['forwardbackward'] = false;
self.cardMap[periodid] = new STWkit.PeriodCard(periodid, 'Simulation period', this.accordionDiv, self.lang, map, self.domain, self.forcingmodel, periodoptions);
var oiltypeoptions = {};
......
......@@ -399,17 +399,34 @@ var EXTrajectory = (function (_super) {
var drawDiv = L.DomUtil.create('div', 'uk-width-1-2', positionButtonGrid);
var drawButton = L.DomUtil.create('button', 'uk-button uk-button-small uk-align-left uk-margin-remove', drawDiv);
drawButton.textContent = 'Free hand draw';
function enddateonchange() {
var newdate = moment.utc(self.endDateInput.value + ' ' + self.endTimeInput.value, self.datetimeFormat);
if (newdate.isBefore(self.from)) {
self.endDateInput.value = self.to.format(self.dateFormat);
self.endTimeInput.value = self.to.startOf('hour').format(self.timeFormat);
STWkit.AccordionCard.warningMsg('End point date outside simulation period', 'End point date cannot be before simulation period start date');
}
else {
var diff = Math.abs(self.from - newdate);
var nrofhours = Math.round(((diff / 1000) / 60) / 60);
if (nrofhours <= 72) {
self.durationhours = nrofhours;
self.refreshTrajectory();
self.fireChangeFn(self);
delete self.durationhours;
}
else {
self.endDateInput.value = self.to.format(self.dateFormat);
self.endTimeInput.value = self.to.startOf('hour').format(self.timeFormat);
STWkit.AccordionCard.warningMsg('Simulation period too long', 'The number of simulation hours cannot exceend 72 hours (Simulation period start date - End point date)');
}
}
}
self.endDateInput.onchange = function (evt) {
var date = moment.utc(self.endDateInput.value + ' ' + self.endTimeInput.value, self.datetimeFormat);
self.to = date.clone();
self.refreshTrajectory();
self.fireChangeFn(self);
enddateonchange();
};
self.endTimeInput.onchange = function (evt) {
var date = moment.utc(self.endDateInput.value + ' ' + self.endTimeInput.value, self.datetimeFormat);
self.to = date.clone();
self.refreshTrajectory();
self.fireChangeFn(self);
enddateonchange();
};
positionDiv.guideFn = function () {
var geojson = {};
......@@ -594,8 +611,8 @@ var EXTrajectory = (function (_super) {
self.time = [];
var t = self.from.clone();
for (var i = 0; i < coords.length; i++) {
self.time.push(t.valueOf());
t = t.add(timeIncrement, 'm');
self.time.push(t.valueOf());
}
self.time[self.time.length - 1] = self.to.valueOf();
var trajfeature = STWkit.createFeature("LineString");
......
This diff is collapsed.
......@@ -467,38 +467,36 @@ class EXTrajectory extends STWkit.AccordionCard {
var drawButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-button-small uk-align-left uk-margin-remove', drawDiv);
drawButton.textContent = 'Free hand draw';
self.endDateInput.onchange = function (evt) {
var newdate = moment.utc(self.endDateInput.value + ' ' + self.endTimeInput.value, self.datetimeFormat);
function enddateonchange() {
var newdate:any = moment.utc(self.endDateInput.value + ' ' + self.endTimeInput.value, self.datetimeFormat);
if (newdate.isBefore(self.from)) {
self.endDateInput.value = self.to.format(self.dateFormat);
self.endTimeInput.value = self.to.startOf('hour').format(self.timeFormat);
return;
STWkit.AccordionCard.warningMsg('End point date outside simulation period', 'End point date cannot be before simulation period start date');
} else {
var diff = Math.abs(self.from - newdate);
var nrofhours = Math.round(((diff/1000)/60)/60);
if (nrofhours <= 72) {
self.durationhours = nrofhours;
self.refreshTrajectory();
self.fireChangeFn(self);
delete self.durationhours;
} else {
self.endDateInput.value = self.to.format(self.dateFormat);
self.endTimeInput.value = self.to.startOf('hour').format(self.timeFormat);
STWkit.AccordionCard.warningMsg('Simulation period too long', 'The number of simulation hours cannot exceend 72 hours (Simulation period start date - End point date)');
}
}
var diff = Math.abs(self.from - self.to);
var nrofhours = Math.round(((diff/1000)/60)/60);
}
if (nrofhours > 72) return;
self.to = newdate.clone();
self.refreshTrajectory();
self.fireChangeFn(self);
self.endDateInput.onchange = function (evt) {
enddateonchange();
};
self.endTimeInput.onchange = function (evt) {
var newdate = moment.utc(self.endDateInput.value + ' ' + self.endTimeInput.value, self.datetimeFormat);
if (newdate.isBefore(self.from)) {
self.endDateInput.value = self.to.format(self.dateFormat);
self.endTimeInput.value = self.to.startOf('hour').format(self.timeFormat);
return;
}
var diff = Math.abs(self.from - self.to);
var nrofhours = Math.round(((diff/1000)/60)/60);
if (nrofhours > 72) return;
self.to = newdate.clone();
self.refreshTrajectory();
self.fireChangeFn(self);
enddateonchange();
};
positionDiv.guideFn = function () {
......@@ -709,8 +707,8 @@ class EXTrajectory extends STWkit.AccordionCard {
self.time = [];
var t = self.from.clone();
for (var i = 0; i < coords.length; i++) {
self.time.push(t.valueOf());
t = t.add(timeIncrement,'m');
self.time.push(t.valueOf());
}
self.time[self.time.length-1] = self.to.valueOf();
......
......@@ -48,6 +48,7 @@ var L;
var periodoptions = {};
periodoptions['type'] = this.type;
periodoptions['initials'] = this.initials;
periodoptions['minmax1y'] = true;
periodoptions['forwardbackward'] = false;
self.cardMap[periodid] = new STWkit.PeriodCard(periodid, 'Simulation period', this.accordionDiv, self.lang, map, self.domain, self.forcingmodel, periodoptions);
var oiltypeoptions = {};
......
{"version":3,"file":"leaflet-exercise-control.js","sourceRoot":"","sources":["leaflet-exercise-control.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,yCAAyC;AACzC,yCAAyC;AACzC,wCAAwC;AACxC,wCAAwC;AACxC,yCAAyC;AACzC,kDAAkD;;;;;;;;;;;AAKlD,IAAO,CAAC,CAwGP;AAxGD,WAAO,CAAC;IAAC,IAAA,OAAO,CAwGf;IAxGQ,WAAA,OAAO;QACZ;YAA8B,4BAAkB;YAgB5C,kBAAY,OAAO;gBAAnB,YACI,kBAAM,OAAO,CAAC,SAcjB;gBAbG,KAAI,CAAC,MAAM,GAAG,QAAQ,CAAC;gBACvB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;oBACjB,KAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;gBACjC,CAAC;gBAED,KAAI,CAAC,IAAI,GAAG,UAAU,CAAC;gBACvB,KAAI,CAAC,OAAO,GAAG,SAAS,CAAC;gBACzB,KAAI,CAA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periodoptions['type'] = this.type;
periodoptions['initials'] = this.initials;
periodoptions['minmax1y'] = true;
periodoptions['forwardbackward'] = false;
self.cardMap[periodid] = new STWkit.PeriodCard(periodid, 'Simulation period', this.accordionDiv, self.lang, map, self.domain, self.forcingmodel, periodoptions);
var oiltypeoptions = {};
......
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