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

guide pos fixes

parent 8b4aae10
...@@ -15,13 +15,15 @@ var __extends = (this && this.__extends) || (function () { ...@@ -15,13 +15,15 @@ var __extends = (this && this.__extends) || (function () {
})(); })();
var OSLocation = (function (_super) { var OSLocation = (function (_super) {
__extends(OSLocation, _super); __extends(OSLocation, _super);
function OSLocation(id, parentDiv, lang, langData, map, forcing, obs, domain, type, subtype, initials) { function OSLocation(id, parentDiv, lang, langData, map, forcing, obs, domain, guide, type, subtype, initials) {
var _this = this; var _this = this;
var options = {}; var options = {};
options['single'] = true; options['single'] = true;
options['line'] = false; options['line'] = false;
options.polygon = {}; options.polygon = {};
options['polygon']['show'] = false; options['polygon']['show'] = false;
options['guide'] = guide;
options['domain'] = domain;
options['type'] = type; options['type'] = type;
options['subtype'] = subtype; options['subtype'] = subtype;
options['initials'] = initials; options['initials'] = initials;
...@@ -299,6 +301,9 @@ var L; ...@@ -299,6 +301,9 @@ var L;
_this.subtype = 'timevarying'; _this.subtype = 'timevarying';
_this.name = 'oilspill'; _this.name = 'oilspill';
_this.initials = 'os'; _this.initials = 'os';
if (options.guide) {
_this.guide = options.guide;
}
return _this; return _this;
} }
OilSpill.prototype.setup = function (map) { OilSpill.prototype.setup = function (map) {
...@@ -307,7 +312,7 @@ var L; ...@@ -307,7 +312,7 @@ var L;
this.container = L.DomUtil.create('div', self.name + '-control'); this.container = L.DomUtil.create('div', self.name + '-control');
this.accordionDiv = L.DomUtil.create('div', 'uk-accordion', this.container); this.accordionDiv = L.DomUtil.create('div', 'uk-accordion', this.container);
var locationid = self.initials + 'locationCard'; var locationid = self.initials + 'locationCard';
self.cardMap[locationid] = new OSLocation(locationid, this.accordionDiv, self.lang, self.langData, map, self.forcing, self.obs, self.domain, self.type, self.subtype, self.initials); self.cardMap[locationid] = new OSLocation(locationid, this.accordionDiv, self.lang, self.langData, map, self.forcing, self.obs, self.domain, self.guide, self.type, self.subtype, self.initials);
self.cardMap[locationid].show(); self.cardMap[locationid].show();
var periodid = self.initials + 'periodCard'; var periodid = self.initials + 'periodCard';
var periodoptions = {}; var periodoptions = {};
......
...@@ -23,6 +23,7 @@ var OSLocation = (function (_super) { ...@@ -23,6 +23,7 @@ var OSLocation = (function (_super) {
options.polygon = {}; options.polygon = {};
options['polygon']['show'] = false; options['polygon']['show'] = false;
options['guide'] = guide; options['guide'] = guide;
options['domain'] = domain;
options['type'] = type; options['type'] = type;
options['subtype'] = subtype; options['subtype'] = subtype;
options['initials'] = initials; options['initials'] = initials;
......
This diff is collapsed.
...@@ -20,6 +20,7 @@ class OSLocation extends STWkit.LocationCard { ...@@ -20,6 +20,7 @@ class OSLocation extends STWkit.LocationCard {
options.polygon = {}; options.polygon = {};
options['polygon']['show'] = false; options['polygon']['show'] = false;
options['guide'] = guide; options['guide'] = guide;
options['domain'] = domain;
options['type'] = type; options['type'] = type;
options['subtype'] = subtype; options['subtype'] = subtype;
options['initials'] = initials; options['initials'] = initials;
......
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