1
0
Fork 0
fgdata/Phi/topics/Environment/Weather/LayerData.js
Torsten Dreyer 190e8449ce Phi: move URL to the browsers root directory
- rename the directory from webgui to Phi
- let the webserver's root point to Phi instead of Docs
- redirect old /gui/ url to the new location (/)
2015-04-18 13:03:46 +02:00

43 lines
1.2 KiB
JavaScript

define([
'knockout',
], function(ko) {
function LayerData() {
var self = this;
self.index = 0;
self.altitude = ko.observable(0);
self.windDir = ko.observable(0);
self.windSpeed = ko.observable(0);
self.visibility = ko.observable(0);
self.temperature = ko.observable(0);
self.dewpoint = ko.observable(0);
self.turbulence = [
{
id : 0,
text : 'none'
}, {
id : 1,
text : 'light'
}, {
id : 2,
text : 'moderate'
}, {
id : 3,
text : 'severe'
}
];
self.turbulenceValue = ko.observable(0);
}
LayerData.prototype.PropertyMap = {
"index": "index",
"elevation-ft": "altitude",
"wind-from-heading-deg": "windDir",
"wind-speed-kt": "windSpeed",
"visibility-m": "visibility",
"temperature-degc": "temperature",
"dewpoint-degc": "dewpoint",
};
return LayerData;
});