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

updating types

parent 89be26fe
......@@ -21,8 +21,8 @@ app.get('/demo/input/785b50c5-4804-462d-8a24-1dc2c9fd14f8', function (req, res)
"type": "Feature",
"properties": {
"uuid": "785b50c5-4804-462d-8a24-1dc2c9fd14f8",
"type": "object",
"subtype": "itracer",
"type": "points",
"subtype": "instant",
"meanLng": 20.214843749999996,
"meanLat": 58.95000823335702,
"simulation": {
......@@ -64,58 +64,6 @@ app.get('/demo/input/785b50c5-4804-462d-8a24-1dc2c9fd14f8', function (req, res)
);
});
app.get('/demo/input/24ef2cac-ef78-406c-b59a-db625f38919e', function (req, res) {
res.send(
{
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"properties": {
"uuid": "24ef2cac-ef78-406c-b59a-db625f38919e",
"domain": "HELCOM",
"model": "NEMO",
"type": "object",
"subtype": "itracer",
"meanLng": 20.522460937500004,
"meanLat": 58.51665179936381,
"simulation": {
"startDate": 1504080000000,
"stopDate": 1504252800000,
"mode": "Normal",
"forecast": "NEMO",
"forwardCalculation": true,
"amount": "10",
"amountUnit": "m3",
"oilclass": "Oil classes",
"substance": "Medium oils (100-1000 cSt)",
"fresh": true,
"instantaneous": true,
"uncertainty": false,
"winddrag": "0",
"depth": "0",
"duration": "",
"durationUnit": ""
},
"observation": [{
"id": null,
"provider": "USER",
"providerDataRef": null,
"providerImgRef": null,
"providerType": null,
"type": "MANUAL",
"date": 1504080000000
}]
},
"geometry": {
"type": "Point",
"coordinates": [20.522460937500004, 58.51665179936381]
}
}]
}
);
});
app.get('/demo/availableTimes/ms/HELCOM_NEMO', function (req, res) {
......
......@@ -337,7 +337,7 @@ var L;
var _this = this;
options.uncertainty = false;
_this = _super.call(this, options) || this;
_this.type = 'point';
_this.type = 'points';
_this.subtype = 'instant';
_this.name = 'itracer';
_this.initials = 'it';
......
......@@ -25,7 +25,7 @@ var L;
var _this = this;
options.uncertainty = false;
_this = _super.call(this, options) || this;
_this.type = 'point';
_this.type = 'points';
_this.subtype = 'instant';
_this.name = 'itracer';
_this.initials = 'it';
......
{"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,CAwEP;AAxED,WAAO,CAAC;IAAC,IAAA,OAAO,CAwEf;IAxEQ,WAAA,OAAO;QACZ;YAAmC,iCAAkB;YAejD,uBAAY,OAAO;gBAAnB,iBAQC;gBAPG,OAAO,CAAC,WAAW,GAAG,KAAK,CAAC;gBAC5B,QAAA,kBAAM,OAAO,CAAC,SAAC;gBACf,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,iBA8BC;gBA7BG,IAAI,IAAI,GAAG,IAAI,CAAC;gBAChB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,GAAC,UAAU,CAAC,CAAC;gBAC/D,IAAI,CAAC,YAAY,GAAmB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;gBAC5F,IAAI,UAAU,GAAG,IAAI,CAAC,QAAQ,GAAC,cAAc,CAAC;gBAC9C,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,IAA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gBACb,iBAAM,KAAK,YAAC,IAAI,CAAC,CAAC;YACtB,CAAC;YAEO,6BAAK,GAAb;gBACI,iBAAM,KAAK,WAAE,CAAC;YAClB,CAAC;YACO,4BAAI,GAAZ;YACA,CAAC;YACO,4BAAI,GAAZ;gBACI,IAAI,CAAC,KAAK,EAAE,CAAC;YACjB,CAAC;YAEL,oBAAC;QAAD,CAAC,AAtED,CAAmC,MAAM,CAAC,WAAW,GAsEpD;QAtEY,qBAAa,gBAsEzB,CAAA;IACL,CAAC,EAxEQ,OAAO,GAAP,SAAO,KAAP,SAAO,QAwEf;AAAD,CAAC,EAxEM,CAAC,KAAD,CAAC,QAwEP"}
\ No newline at end of file
......@@ -27,7 +27,7 @@ module L.Control {
constructor(options) {
options.uncertainty = false;
super(options);
this.type = 'point';
this.type = 'points';
this.subtype = 'instant';
this.name = 'itracer';
this.initials = 'it';
......
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