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

refactor help links

parent d69c23f3
......@@ -158,13 +158,17 @@
// if (forcing.features.length > 0) properties["forcing"] = forcing;
class SimpleCardControl extends STWkit.CardControl {
constructor(options) {super(options);}
constructor(options) {super(options);
this.type = 'objects';
this.subtype = 'instant';
}
setup(map) {
this.container = STWkit.DomUtil.create('div', +self.name+'-control');
this.accordionDiv = STWkit.DomUtil.create('div', 'uk-accordion', this.container);
var locationoptions = {};
var initials = 'fo';
var type = 'object';
var type = 'objects';
var subtype = 'instant';
locationoptions['single'] = true;
locationoptions['multiple'] = true;
locationoptions['line'] = true;
......@@ -173,6 +177,7 @@
// locationoptions['polygon']['name'] = 'Area';
locationoptions['circle'] = false;
locationoptions['type'] = type;
locationoptions['subtype'] = subtype;
// locationoptions['outlettype'] = false;
locationoptions['initials'] = initials;
var locationid = 'locationCard';
......@@ -180,12 +185,14 @@
this.cardMap[locationid].show();
var periodoptions = {};
periodoptions['type'] = type;
periodoptions['subtype'] = subtype;
periodoptions['initials'] = initials;
// periodoptions['forwardbackward'] = false;
var periodid = 'periodCard';
this.cardMap[periodid] = new STWkit.PeriodCard(periodid, 'Simulation period', this.accordionDiv, this.lang, map, this.domain, this.forcingmodel, periodoptions);
var oiltypeoptions = {};
oiltypeoptions['type'] = type;
oiltypeoptions['subtype'] = subtype;
oiltypeoptions['initials'] = initials;
// oiltypeoptions['stateofoil'] = false;
var oiltypeid = 'oiltypeCard';
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
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