Commit 9f33f7ed authored by Tomas Pettersson's avatar Tomas Pettersson 🏸
Browse files

experiment

parent f7c5fdde
......@@ -149,7 +149,7 @@
};
if (forcing.features.length > 0) itracerproperties["forcing"] = forcing;
var itracer = new L.Control.InstantTracer(itracerproperties);
containerControl.addComponent("Instant Tracer", itracer);
containerControl.addComponent("Passive Points", itracer);
}
});
......
......@@ -21,24 +21,50 @@ var ITLocation = (function (_super) {
var initials = 'it';
options['singlebutton'] = true;
options['multiplebutton'] = false;
options['linebutton'] = true;
options['linebutton'] = false;
options['areabutton'] = true;
options['afterDiv'] = true;
options['initials'] = initials;
_this = _super.call(this, id, 'Specify location', parentDiv, lang, langData, map, forcing, options) || this;
var fieldset = L.DomUtil.create('fieldset', 'uk-margin-top', _this.locationForm);
var surfacevolumeRowDiv = L.DomUtil.create('div', 'uk-form-row', fieldset);
surfacevolumeRowDiv.id = 'guideos9';
surfacevolumeRowDiv.guideFn = function () {
validate();
};
_super.prototype.addLabelDiv.call(_this, surfacevolumeRowDiv, "Surface/Volume", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-amount-duration' target='_blank'>here</a>");
var surfacevolumeDiv = L.DomUtil.create('div', '', surfacevolumeRowDiv);
surfacevolumeDiv.setAttribute('data-uk-button-radio', '');
var surfacevolumeButtonGrid = L.DomUtil.create('div', 'uk-grid uk-grid-small', surfacevolumeDiv);
var surfacevolumebuttonsDiv = L.DomUtil.create('div', 'uk-width-1-2', surfacevolumeButtonGrid);
surfacevolumeButtonGrid.id = 'guidefo5';
var surfacevolumeButtonGroup = L.DomUtil.create('div', 'uk-button-group', surfacevolumebuttonsDiv);
_this.surfaceButton = L.DomUtil.create('button', 'uk-button uk-button-small', surfacevolumeButtonGroup);
_this.surfaceButton.textContent = 'Surface';
_this.volumeButton = L.DomUtil.create('button', 'uk-button uk-button-small', surfacevolumeButtonGroup);
_this.volumeButton.textContent = 'Volume';
var depthRangeRowDiv = L.DomUtil.create('div', 'uk-form-row', fieldset);
_super.prototype.addLabelDiv.call(_this, depthRangeRowDiv, "Outlet depth range [from - to] (m)", "See more information <a style='color:#faa732;' href='help/classic/#" + initials + "-depth' target='_blank'>here</a>");
var depthRangeDiv = L.DomUtil.create('div', ' uk-width-1-1', depthRangeRowDiv);
_this.depthMinInput = L.DomUtil.create('input', 'uk-width-1-4', depthRangeDiv);
_this.depthMinInput.type = 'number';
_this.depthMinInput.value = '0';
_this.depthMinInput.step = '10';
_this.depthMinInput.min = '0';
_this.depthMinInput.onchange = function () {
//validate();
};
var separator = L.DomUtil.create('span', '', depthRangeDiv);
separator.textContent = ' - ';
_this.depthMaxInput = L.DomUtil.create('input', 'uk-width-1-4', depthRangeDiv);
_this.depthMaxInput.type = 'number';
_this.depthMaxInput.value = '0';
_this.depthMaxInput.step = '10';
_this.depthMaxInput.min = '0';
_this.depthMaxInput.onchange = function () {
//validate();
};
return _this;
// var fieldset = <HTMLFieldSetElement>L.DomUtil.create('fieldset', 'uk-margin-top', this.locationForm);
// var depthRowDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
// super.addLabelDiv(depthRowDiv, "Outlet at depth (m)", "See more information <a style='color:#faa732;' href='help/classic/#"+initials+"-depth' target='_blank'>here</a>");
// var depthDiv = <HTMLDivElement>L.DomUtil.create('div', ' uk-width-1-1', depthRowDiv);
// this.depthInput = <HTMLInputElement>L.DomUtil.create('input', 'uk-width-1-4', depthDiv);
// this.depthInput.type = 'number';
// this.depthInput.value = '0';
// this.depthInput.step = '10';
// this.depthInput.min = '0';
// this.depthInput.onchange = function () {
// //validate();
// };
}
ITLocation.prototype.show = function () {
_super.prototype.show.call(this);
......@@ -57,9 +83,9 @@ var ITLocation = (function (_super) {
};
return ITLocation;
}(STWkit.LocationCard));
var ITDistribution = (function (_super) {
__extends(ITDistribution, _super);
function ITDistribution(id, title, parentDiv, lang, map) {
var ITSpreading = (function (_super) {
__extends(ITSpreading, _super);
function ITSpreading(id, title, parentDiv, lang, map) {
var _this = this;
var distributionDiv = L.DomUtil.create('div', 'uk-width-1-1 uk-margin-top', parentDiv);
_this = _super.call(this, id, title, parentDiv, distributionDiv) || this;
......@@ -76,49 +102,6 @@ var ITDistribution = (function (_super) {
option.textContent = txt;
}
var fieldset = L.DomUtil.create('fieldset', '', form);
var depthRowDiv = L.DomUtil.create('div', 'uk-form-row', fieldset);
_super.prototype.addLabelDiv.call(_this, depthRowDiv, "Outlet at depth (m)", "See more information <a style='color:#faa732;' href='help/classic/#-depth' target='_blank'>here</a>");
var depthDiv = L.DomUtil.create('div', ' uk-width-1-1', depthRowDiv);
_this.depthInput = L.DomUtil.create('input', 'uk-width-1-4', depthDiv);
_this.depthInput.type = 'number';
_this.depthInput.value = '0';
_this.depthInput.step = '10';
_this.depthInput.min = '0';
var distributionRowDiv = L.DomUtil.create('div', 'uk-form-row', fieldset);
distributionRowDiv.id = 'guideos8';
distributionRowDiv.guideFn = function () {
};
_super.prototype.addLabelDiv.call(_this, distributionRowDiv, "Outlet distribution", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-amount-duration' target='_blank'>here</a>");
var distributionDiv = L.DomUtil.create('div', '', distributionRowDiv);
distributionDiv.setAttribute('data-uk-button-radio', '');
var distributionButtonGrid = L.DomUtil.create('div', 'uk-grid uk-grid-small', distributionDiv);
var distributionbuttonsDiv = L.DomUtil.create('div', 'uk-width-1-2', distributionButtonGrid);
distributionButtonGrid.id = 'guidefo5';
var distributionButtonGroup = L.DomUtil.create('div', 'uk-button-group', distributionbuttonsDiv);
self.distribution2DButton = L.DomUtil.create('button', 'uk-button uk-button-small', distributionButtonGroup);
self.distribution2DButton.textContent = 'Surface';
self.distribution3DButton = L.DomUtil.create('button', 'uk-button uk-button-small', distributionButtonGroup);
self.distribution3DButton.textContent = 'Volume';
var amountRowDiv = L.DomUtil.create('div', 'uk-form-row', fieldset);
amountRowDiv.id = 'guideos8';
amountRowDiv.guideFn = function () {
self.amountInput.value = '100';
};
_super.prototype.addLabelDiv.call(_this, amountRowDiv, "Outlet amount", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-totalamount' target='_blank'>here</a>");
var amountValueDiv = L.DomUtil.create('div', 'uk-width-1-1', amountRowDiv);
self.amountInput = L.DomUtil.create('input', 'uk-width-1-4', amountValueDiv);
self.amountInput.type = 'number';
self.amountInput.step = '10';
self.amountInput.min = '0';
var amountUnitDiv = L.DomUtil.create('div', 'uk-width-1-2 uk-form-select select', amountValueDiv);
amountUnitDiv.setAttribute('data-uk-form-select', '');
var selectedAmountUnit = L.DomUtil.create('span', '', amountUnitDiv);
self.amountSelect = L.DomUtil.create('select', '', amountUnitDiv);
addOption(self.amountSelect, 'm3', '');
addOption(self.amountSelect, 'tonnes', 'tonnes');
self.amountInput.onchange = function () {
validate();
};
var spreadingRowDiv = L.DomUtil.create('div', 'uk-form-row', fieldset);
spreadingRowDiv.id = 'guideos9';
spreadingRowDiv.guideFn = function () {
......@@ -132,7 +115,7 @@ var ITDistribution = (function (_super) {
spreadingButtonGrid.id = 'guidefo5';
var spreadingButtonGroup = L.DomUtil.create('div', 'uk-button-group', spreadingbuttonsDiv);
self.spreading2DButton = L.DomUtil.create('button', 'uk-button uk-button-small', spreadingButtonGroup);
self.spreading2DButton.textContent = 'Horizontal';
self.spreading2DButton.textContent = 'Constant depth';
self.spreading3DButton = L.DomUtil.create('button', 'uk-button uk-button-small', spreadingButtonGroup);
self.spreading3DButton.textContent = 'Three-dimensional';
function validate() {
......@@ -174,10 +157,10 @@ var ITDistribution = (function (_super) {
});
return _this;
}
ITDistribution.prototype.defaults = function () {
ITSpreading.prototype.defaults = function () {
var self = this;
};
ITDistribution.prototype.populateCard = function (geojson) {
ITSpreading.prototype.populateCard = function (geojson) {
var self = this;
var simulation = geojson.features[0].properties.simulation;
self.amountInput.value = simulation.amount;
......@@ -191,14 +174,14 @@ var ITDistribution = (function (_super) {
self.spreadingInput.dispatchEvent(durationevt);
self.durationSelect.value = simulation.durationUnit;
};
ITDistribution.prototype.populateData = function (geojson) {
ITSpreading.prototype.populateData = function (geojson) {
var self = this;
geojson.features[0].properties["simulation"]["amount"] = self.amountInput.value;
geojson.features[0].properties["simulation"]["amountUnit"] = self.amountSelect.options[self.amountSelect.selectedIndex].value;
geojson.features[0].properties["simulation"]["duration"] = self.spreadingInput.value;
geojson.features[0].properties["simulation"]["durationUnit"] = self.durationSelect.options[self.durationSelect.selectedIndex].value;
};
ITDistribution.prototype.clear = function () {
ITSpreading.prototype.clear = function () {
var self = this;
_super.prototype.clear.call(this);
self.amountInput.value = '';
......@@ -207,6 +190,6 @@ var ITDistribution = (function (_super) {
self.status = false;
(self.oncallback && self.oncallback());
};
return ITDistribution;
return ITSpreading;
}(STWkit.AccordionCard));
//# sourceMappingURL=leaflet-itracer-cards.js.map
\ No newline at end of file
{"version":3,"file":"leaflet-itracer-cards.js","sourceRoot":"","sources":["leaflet-itracer-cards.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,yCAAyC;AACzC,wCAAwC;AACxC,0DAA0D;AAC1D,yCAAyC;;;;;;;;;;;AAGzC;IAAyB,8BAAmB;IAMxC,oBAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO;QAAvD,iBA0BC;QAzBG,IAAI,OAAO,GAAO,EAAE,CAAC;QACrB,IAAI,QAAQ,GAAG,IAAI,CAAC;QACpB,OAAO,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC;QAC/B,OAAO,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC;QAClC,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;QAC7B,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;QAC7B,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;QAC3B,OAAO,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC;QAC/B,QAAA,kBAAM,EAAE,EAAE,kBAAkB,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,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,32 +9,70 @@ class ITLocation extends STWkit.LocationCard {
private locationDiv: HTMLDivElement;
private locationForm: HTMLFormElement;
public depthInput: HTMLInputElement;
public depthMinInput: HTMLInputElement;
public depthMaxInput: HTMLInputElement;
public surfaceButton: HTMLButtonElement;
public volumeButton: HTMLButtonElement;
constructor(id, parentDiv, lang, langData, map, forcing) {
var options:any = {};
var initials = 'it';
options['singlebutton'] = true;
options['multiplebutton'] = false;
options['linebutton'] = true;
options['linebutton'] = false;
options['areabutton'] = true;
options['afterDiv'] = true;
options['initials'] = initials;
super(id, 'Specify location', parentDiv, lang, langData, map, forcing, options);
// var fieldset = <HTMLFieldSetElement>L.DomUtil.create('fieldset', 'uk-margin-top', this.locationForm);
// var depthRowDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
// super.addLabelDiv(depthRowDiv, "Outlet at depth (m)", "See more information <a style='color:#faa732;' href='help/classic/#"+initials+"-depth' target='_blank'>here</a>");
// var depthDiv = <HTMLDivElement>L.DomUtil.create('div', ' uk-width-1-1', depthRowDiv);
// this.depthInput = <HTMLInputElement>L.DomUtil.create('input', 'uk-width-1-4', depthDiv);
// this.depthInput.type = 'number';
// this.depthInput.value = '0';
// this.depthInput.step = '10';
// this.depthInput.min = '0';
var fieldset = <HTMLFieldSetElement>L.DomUtil.create('fieldset', 'uk-margin-top', this.locationForm);
var surfacevolumeRowDiv: any = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
surfacevolumeRowDiv.id = 'guideos9';
surfacevolumeRowDiv.guideFn = function () {
validate();
}
super.addLabelDiv(surfacevolumeRowDiv, "Surface/Volume", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-amount-duration' target='_blank'>here</a>");
var surfacevolumeDiv = <HTMLDivElement>L.DomUtil.create('div', '', surfacevolumeRowDiv);
surfacevolumeDiv.setAttribute('data-uk-button-radio', '');
var surfacevolumeButtonGrid = <HTMLDivElement>L.DomUtil.create('div', 'uk-grid uk-grid-small', surfacevolumeDiv);
var surfacevolumebuttonsDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-width-1-2', surfacevolumeButtonGrid);
surfacevolumeButtonGrid.id = 'guidefo5';
var surfacevolumeButtonGroup = <HTMLDivElement>L.DomUtil.create('div', 'uk-button-group', surfacevolumebuttonsDiv);
this.surfaceButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-button-small', surfacevolumeButtonGroup);
this.surfaceButton.textContent = 'Surface';
this.volumeButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-button-small', surfacevolumeButtonGroup);
this.volumeButton.textContent = 'Volume';
var depthRangeRowDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
super.addLabelDiv(depthRangeRowDiv, "Outlet depth range [from - to] (m)", "See more information <a style='color:#faa732;' href='help/classic/#"+initials+"-depth' target='_blank'>here</a>");
var depthRangeDiv = <HTMLDivElement>L.DomUtil.create('div', ' uk-width-1-1', depthRangeRowDiv);
this.depthMinInput = <HTMLInputElement>L.DomUtil.create('input', 'uk-width-1-4', depthRangeDiv);
this.depthMinInput.type = 'number';
this.depthMinInput.value = '0';
this.depthMinInput.step = '10';
this.depthMinInput.min = '0';
this.depthMinInput.onchange = function () {
//validate();
};
var separator = <HTMLSpanElement>L.DomUtil.create('span', '', depthRangeDiv);
separator.textContent = ' - '
this.depthMaxInput = <HTMLInputElement>L.DomUtil.create('input', 'uk-width-1-4', depthRangeDiv);
this.depthMaxInput.type = 'number';
this.depthMaxInput.value = '0';
this.depthMaxInput.step = '10';
this.depthMaxInput.min = '0';
this.depthMaxInput.onchange = function () {
//validate();
};
// this.depthInput.onchange = function () {
// //validate();
// };
}
......@@ -63,14 +101,10 @@ class ITLocation extends STWkit.LocationCard {
}
class ITDistribution extends STWkit.AccordionCard {
class ITSpreading extends STWkit.AccordionCard {
public oncallback: Function;
public amountInput: HTMLInputElement;
public amountSelect: HTMLSelectElement;
public spreading2DButton: HTMLButtonElement;
public spreading3DButton: HTMLButtonElement;
public distribution2DButton: HTMLButtonElement;
public distribution3DButton: HTMLButtonElement;
public nextButton: any;
public status: boolean;
......@@ -95,58 +129,6 @@ class ITDistribution extends STWkit.AccordionCard {
var fieldset = <HTMLFieldSetElement>L.DomUtil.create('fieldset', '', form);
var depthRowDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
super.addLabelDiv(depthRowDiv, "Outlet at depth (m)", "See more information <a style='color:#faa732;' href='help/classic/#-depth' target='_blank'>here</a>");
var depthDiv = <HTMLDivElement>L.DomUtil.create('div', ' uk-width-1-1', depthRowDiv);
this.depthInput = <HTMLInputElement>L.DomUtil.create('input', 'uk-width-1-4', depthDiv);
this.depthInput.type = 'number';
this.depthInput.value = '0';
this.depthInput.step = '10';
this.depthInput.min = '0';
var distributionRowDiv: any = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
distributionRowDiv.id = 'guideos8';
distributionRowDiv.guideFn = function () {
}
super.addLabelDiv(distributionRowDiv, "Outlet distribution", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-amount-duration' target='_blank'>here</a>");
var distributionDiv = <HTMLDivElement>L.DomUtil.create('div', '', distributionRowDiv);
distributionDiv.setAttribute('data-uk-button-radio', '');
var distributionButtonGrid = <HTMLDivElement>L.DomUtil.create('div', 'uk-grid uk-grid-small', distributionDiv);
var distributionbuttonsDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-width-1-2', distributionButtonGrid);
distributionButtonGrid.id = 'guidefo5';
var distributionButtonGroup = <HTMLDivElement>L.DomUtil.create('div', 'uk-button-group', distributionbuttonsDiv);
self.distribution2DButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-button-small', distributionButtonGroup);
self.distribution2DButton.textContent = 'Surface';
self.distribution3DButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-button-small', distributionButtonGroup);
self.distribution3DButton.textContent = 'Volume';
var amountRowDiv: any = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
amountRowDiv.id = 'guideos8';
amountRowDiv.guideFn = function () {
self.amountInput.value = '100';
}
super.addLabelDiv(amountRowDiv, "Outlet amount", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-totalamount' target='_blank'>here</a>");
var amountValueDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-width-1-1', amountRowDiv);
self.amountInput = <HTMLInputElement>L.DomUtil.create('input', 'uk-width-1-4', amountValueDiv);
self.amountInput.type = 'number';
self.amountInput.step = '10';
self.amountInput.min = '0';
var amountUnitDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-width-1-2 uk-form-select select', amountValueDiv);
amountUnitDiv.setAttribute('data-uk-form-select', '');
var selectedAmountUnit = <HTMLSpanElement>L.DomUtil.create('span', '', amountUnitDiv);
self.amountSelect = <HTMLSelectElement>L.DomUtil.create('select', '', amountUnitDiv);
addOption(self.amountSelect, 'm3', '');
addOption(self.amountSelect, 'tonnes', 'tonnes');
self.amountInput.onchange = function () {
validate();
};
var spreadingRowDiv: any = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
spreadingRowDiv.id = 'guideos9';
spreadingRowDiv.guideFn = function () {
......@@ -161,7 +143,7 @@ class ITDistribution extends STWkit.AccordionCard {
spreadingButtonGrid.id = 'guidefo5';
var spreadingButtonGroup = <HTMLDivElement>L.DomUtil.create('div', 'uk-button-group', spreadingbuttonsDiv);
self.spreading2DButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-button-small', spreadingButtonGroup);
self.spreading2DButton.textContent = 'Horizontal';
self.spreading2DButton.textContent = 'Constant depth';
self.spreading3DButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-button-small', spreadingButtonGroup);
self.spreading3DButton.textContent = 'Three-dimensional';
......
......@@ -39,21 +39,21 @@ var L;
self.cardMap[locationid].show();
var periodid = self.initials + 'periodCard';
self.cardMap[periodid] = new STWkit.PeriodCard(periodid, 'Simulation period', this.accordionDiv, self.lang, map, self.domain, self.forcingmodel);
var distributionid = self.initials + 'distributionCard';
self.cardMap[distributionid] = new ITDistribution(distributionid, 'Distribution and spreading', this.accordionDiv, self.lang, map);
var spreadingid = self.initials + 'distributionCard';
self.cardMap[spreadingid] = new ITSpreading(spreadingid, 'Spreading', this.accordionDiv, self.lang, map);
_super.prototype.setup.call(this, map);
var chain = [];
chain[locationid] = periodid;
chain[periodid] = distributionid;
chain[distributionid] = '';
chain[periodid] = spreadingid;
chain[spreadingid] = '';
self.cardMap[locationid].oncallback = function (gonext) {
_super.prototype.callback.call(_this, chain, locationid, gonext);
};
self.cardMap[periodid].oncallback = function (gonext) {
_super.prototype.callback.call(_this, chain, periodid, gonext);
};
self.cardMap[distributionid].oncallback = function (gonext) {
_super.prototype.callback.call(_this, chain, distributionid, gonext);
self.cardMap[spreadingid].oncallback = function (gonext) {
_super.prototype.callback.call(_this, chain, spreadingid, gonext);
};
};
InstantTracer.prototype.ready = function (name) {
......
{"version":3,"file":"leaflet-itracer-control.js","sourceRoot":"","sources":["leaflet-itracer-control.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,yCAAyC;AACzC,yCAAyC;AACzC,wCAAwC;AACxC,wCAAwC;AACxC,yCAAyC;AACzC,iDAAiD;;;;;;;;;;;AAIjD,IAAO,CAAC,CAmEP;AAnED,WAAO,CAAC;IAAC,IAAA,OAAO,CAmEf;IAnEQ,WAAA,OAAO;QACZ;YAAmC,iCAAkB;YAejD,uBAAY,OAAO;gBAAnB,YACI,kBAAM,OAAO,CAAC,SAMjB;gBALG,KAAI,CAAC,IAAI,GAAG,OAAO,CAAC;gBACpB,KAAI,CAAC,OAAO,GAAG,SAAS,CAAC;gBACzB,KAAI,CAAC,IAAI,GAAG,SAAS,CAAC;gBACtB,KAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;;YAEzB,CAAC;YAEO,6BAAK,GAAb,UAAc,GAAG;gBAAjB,iBA0BC;gBAzBG,IAAI,IAAI,GAAG,IAAI,CAAC;gBAChB,IAAI,CAA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I,CAAC,KAAK,EAAE,CAAC;YACjB,CAAC;YAEL,oBAAC;QAAD,CAAC,AAjED,CAAmC,MAAM,CAAC,WAAW,GAiEpD;QAjEY,qBAAa,gBAiEzB,CAAA;IACL,CAAC,EAnEQ,OAAO,GAAP,SAAO,KAAP,SAAO,QAmEf;AAAD,CAAC,EAnEM,CAAC,KAAD,CAAC,QAmEP"}
\ No newline at end of file
......@@ -42,21 +42,21 @@ module L.Control {
self.cardMap[locationid].show();
var periodid = self.initials+'periodCard';
self.cardMap[periodid] = new STWkit.PeriodCard(periodid, 'Simulation period', this.accordionDiv, self.lang, map, self.domain, self.forcingmodel);
var distributionid = self.initials+'distributionCard';
self.cardMap[distributionid] = new ITDistribution(distributionid, 'Distribution and spreading', this.accordionDiv, self.lang, map);
var spreadingid = self.initials+'distributionCard';
self.cardMap[spreadingid] = new ITSpreading(spreadingid, 'Spreading', this.accordionDiv, self.lang, map);
super.setup(map);
var chain = [];
chain[locationid] = periodid;
chain[periodid] = distributionid;
chain[distributionid] = '';
chain[periodid] = spreadingid;
chain[spreadingid] = '';
self.cardMap[locationid].oncallback = (gonext) => {
super.callback(chain, locationid, gonext);
};
self.cardMap[periodid].oncallback = (gonext) => {
super.callback(chain, periodid, gonext);
};
self.cardMap[distributionid].oncallback = (gonext) => {
super.callback(chain, distributionid, gonext);
self.cardMap[spreadingid].oncallback = (gonext) => {
super.callback(chain, spreadingid, gonext);
};
}
......
Supports Markdown
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