Commit 136dd04a authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

added meanLat and meanLng to inputjson data

parent bcaa3321
......@@ -2,7 +2,7 @@
/// <reference path="def/leaflet.d.ts" />
/// <reference path="def/moment.d.ts" />
/// <reference path="def/leaflet-forcing-boundary.d.ts" />
/// <reference path="def/reqwest.d.ts" />
/// <reference path="def/reqwest.d.ts" />import { GeoJSON } from "leaflet";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
......@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
})();
var EXLocation = (function (_super) {
__extends(EXLocation, _super);
function EXLocation(id, parentDiv, lang, langData, map, forcing, obs, type, initials) {
function EXLocation(id, parentDiv, lang, langData, map, forcing, obs, type, subtype, initials) {
var _this = this;
var options = {};
options['single'] = true;
......@@ -27,6 +27,8 @@ var EXLocation = (function (_super) {
options['initials'] = initials;
_this = _super.call(this, id, 'Specify time and location', parentDiv, lang, langData, map, forcing, options) || this;
var self = _this;
self.type = type;
self.subtype = subtype;
var fieldset = L.DomUtil.create('fieldset', 'uk-margin-top');
_this.locationForm.insertBefore(fieldset, _this.locationForm.firstChild);
var satCallbackFn = function (latlngs, geojsonfeature, timestamp, id) {
......@@ -169,7 +171,17 @@ var EXLocation = (function (_super) {
"type": "MANUAL",
"date": moment.utc(self.obsDateInput.value + ' ' + self.obsTimeInput.value, self.datetimeFormat).valueOf()
};
var layer = L.GeoJSON.geometryToLayer(geojson.features[0]);
var center = null;
if (layer._latlng)
center = layer._latlng;
else
center = layer.getBounds().getCenter();
geojson.features[0].properties["primary"] = 'PADM';
geojson.features[0].properties["type"] = self.type;
geojson.features[0].properties["subtype"] = self.subtype;
geojson.features[0].properties["meanLat"] = center.lat;
geojson.features[0].properties["meanLng"] = center.lng;
geojson.features[0].properties["observation"] = [];
geojson.features[0].properties["observation"].push(observation);
};
......@@ -683,7 +695,7 @@ var L;
this.container = L.DomUtil.create('div', self.name + '-control');
this.accordionDiv = L.DomUtil.create('div', 'uk-accordion', this.container);
var locationid = self.initials + 'locationCard';
self.cardMap[locationid] = new EXLocation(locationid, this.accordionDiv, self.lang, self.langData, map, self.forcing, self.obs, self.type, self.initials);
self.cardMap[locationid] = new EXLocation(locationid, this.accordionDiv, self.lang, self.langData, map, self.forcing, self.obs, self.type, self.subtype, self.initials);
self.cardMap[locationid].show();
var periodid = self.initials + 'periodCard';
var periodoptions = {};
......
......@@ -2,7 +2,7 @@
/// <reference path="def/leaflet.d.ts" />
/// <reference path="def/moment.d.ts" />
/// <reference path="def/leaflet-forcing-boundary.d.ts" />
/// <reference path="def/reqwest.d.ts" />
/// <reference path="def/reqwest.d.ts" />import { GeoJSON } from "leaflet";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
......@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
})();
var EXLocation = (function (_super) {
__extends(EXLocation, _super);
function EXLocation(id, parentDiv, lang, langData, map, forcing, obs, type, initials) {
function EXLocation(id, parentDiv, lang, langData, map, forcing, obs, type, subtype, initials) {
var _this = this;
var options = {};
options['single'] = true;
......@@ -27,6 +27,8 @@ var EXLocation = (function (_super) {
options['initials'] = initials;
_this = _super.call(this, id, 'Specify time and location', parentDiv, lang, langData, map, forcing, options) || this;
var self = _this;
self.type = type;
self.subtype = subtype;
var fieldset = L.DomUtil.create('fieldset', 'uk-margin-top');
_this.locationForm.insertBefore(fieldset, _this.locationForm.firstChild);
var satCallbackFn = function (latlngs, geojsonfeature, timestamp, id) {
......@@ -169,7 +171,17 @@ var EXLocation = (function (_super) {
"type": "MANUAL",
"date": moment.utc(self.obsDateInput.value + ' ' + self.obsTimeInput.value, self.datetimeFormat).valueOf()
};
var layer = L.GeoJSON.geometryToLayer(geojson.features[0]);
var center = null;
if (layer._latlng)
center = layer._latlng;
else
center = layer.getBounds().getCenter();
geojson.features[0].properties["primary"] = 'PADM';
geojson.features[0].properties["type"] = self.type;
geojson.features[0].properties["subtype"] = self.subtype;
geojson.features[0].properties["meanLat"] = center.lat;
geojson.features[0].properties["meanLng"] = center.lng;
geojson.features[0].properties["observation"] = [];
geojson.features[0].properties["observation"].push(observation);
};
......
This diff is collapsed.
......@@ -2,7 +2,9 @@
/// <reference path="def/leaflet.d.ts" />
/// <reference path="def/moment.d.ts" />
/// <reference path="def/leaflet-forcing-boundary.d.ts" />
/// <reference path="def/reqwest.d.ts" />
/// <reference path="def/reqwest.d.ts" />import { GeoJSON } from "leaflet";
class EXLocation extends STWkit.LocationCard {
......@@ -11,8 +13,11 @@ class EXLocation extends STWkit.LocationCard {
private locationForm: HTMLFormElement;
public obsDateInput: HTMLInputElement;
public obsTimeInput: HTMLInputElement;
private type: string;
private subtype: string;
constructor(id, parentDiv, lang, langData, map, forcing, obs, type, initials) {
constructor(id, parentDiv, lang, langData, map, forcing, obs, type, subtype, initials) {
var options: any = {};
options['single'] = true;
options['line'] = true;
......@@ -24,6 +29,8 @@ class EXLocation extends STWkit.LocationCard {
super(id, 'Specify time and location', parentDiv, lang, langData, map, forcing, options);
var self = this;
self.type = type;
self.subtype = subtype;
var fieldset = <HTMLFieldSetElement>L.DomUtil.create('fieldset', 'uk-margin-top');
this.locationForm.insertBefore(fieldset, this.locationForm.firstChild);
......@@ -183,7 +190,14 @@ class EXLocation extends STWkit.LocationCard {
"date": moment.utc(self.obsDateInput.value + ' ' + self.obsTimeInput.value, self.datetimeFormat).valueOf()
};
var layer:any = L.GeoJSON.geometryToLayer(geojson.features[0]);
var center = null;
if (layer._latlng) center = layer._latlng; else center = layer.getBounds().getCenter()
geojson.features[0].properties["primary"] = 'PADM';
geojson.features[0].properties["type"] = self.type;
geojson.features[0].properties["subtype"] = self.subtype;
geojson.features[0].properties["meanLat"] = center.lat;
geojson.features[0].properties["meanLng"] = center.lng;
geojson.features[0].properties["observation"] = [];
geojson.features[0].properties["observation"].push(observation);
}
......
......@@ -38,7 +38,7 @@ var L;
this.container = L.DomUtil.create('div', self.name + '-control');
this.accordionDiv = L.DomUtil.create('div', 'uk-accordion', this.container);
var locationid = self.initials + 'locationCard';
self.cardMap[locationid] = new EXLocation(locationid, this.accordionDiv, self.lang, self.langData, map, self.forcing, self.obs, self.type, self.initials);
self.cardMap[locationid] = new EXLocation(locationid, this.accordionDiv, self.lang, self.langData, map, self.forcing, self.obs, self.type, self.subtype, self.initials);
self.cardMap[locationid].show();
var periodid = self.initials + 'periodCard';
var periodoptions = {};
......
{"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,CAgGP;AAhGD,WAAO,CAAC;IAAC,IAAA,OAAO,CAgGf;IAhGQ,WAAA,OAAO;QACZ;YAA8B,4BAAkB;YAgB5C,kBAAY,OAAO;gBAAnB,YACI,kBAAM,OAAO,CAAC,SASjB;gBARG,KAAI,CAAC,IAAI,GAAG,KAAK,CAAC;gBAClB,KAAI,CAAC,OAAO,GAAG,SAAS,CAAC;gBACzB,KAAI,CAAC,IAAI,GAAG,UAAU,CAAC;gBACvB,KAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;gBACrB,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;oBAChB,KAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;gBACzB,CAAC;;YAEL,CAAC;YAEO,wBAAK,GAAb,UAAc,GAAG;gBAAjB,iBAmDC;gBAlDG,IAAI,IAAI,GAAG,IAAI,CAAC;gBAChB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,GAAC,UAAU,CAAC,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ACO,uBAAI,GAAZ;gBACI,IAAI,CAAC,KAAK,EAAE,CAAC;YACjB,CAAC;YAEL,eAAC;QAAD,CAAC,AA9FD,CAA8B,MAAM,CAAC,WAAW,GA8F/C;QA9FY,gBAAQ,WA8FpB,CAAA;IACL,CAAC,EAhGQ,OAAO,GAAP,SAAO,KAAP,SAAO,QAgGf;AAAD,CAAC,EAhGM,CAAC,KAAD,CAAC,QAgGP"}
\ No newline at end of file
......@@ -43,7 +43,7 @@ module L.Control {
this.container = L.DomUtil.create('div', self.name+'-control');
this.accordionDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-accordion', this.container);
var locationid = self.initials+'locationCard';
self.cardMap[locationid] = new EXLocation(locationid, this.accordionDiv, self.lang, self.langData, map, self.forcing, self.obs, self.type, self.initials);
self.cardMap[locationid] = new EXLocation(locationid, this.accordionDiv, self.lang, self.langData, map, self.forcing, self.obs, self.type, self.subtype, self.initials);
self.cardMap[locationid].show();
var periodid = self.initials+'periodCard';
var periodoptions = {};
......
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