We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9d3bd6 commit d33ac21Copy full SHA for d33ac21
js/app.js
@@ -64,6 +64,8 @@ var loadComplete = function(e) {
64
var hysplit = {};
65
var refresh_hysplit = function() {
66
$.getJSON("http://spacenear.us/tracker/datanew.php?type=hysplit&format=json", function(data) {
67
+ var refresh = false;
68
+
69
for(var k in data) {
70
if(k in hysplit) {
71
// if the jobid is the same, skip to next one
@@ -75,8 +77,11 @@ var refresh_hysplit = function() {
75
77
} else {
76
78
hysplit[k] = new google.maps.KmlLayer({url:"http://ready.arl.noaa.gov/hypubout/HYSPLITtraj_" + data[k] + ".kmz", preserveViewport:true });
79
hysplit[k].jobid = data[k];
80
+ refresh = true;
81
}
82
83
84
+ if(refresh) refreshUI();
85
});
86
87
0 commit comments