Added flags to json for valid position and heading

As MalcolmRobb suggested.

	modified:   dump1090.c
	modified:   public_html/script.js
This commit is contained in:
terribl 2013-05-11 23:36:11 +03:00
parent ebadf90a57
commit e65e873c13
2 changed files with 17 additions and 6 deletions
public_html

View file

@ -118,8 +118,8 @@ function fetchData() {
stillhere[plane.hex] = true;
plane.flight = $.trim(plane.flight);
if (plane.lat != 0 && plane.lon != 0) {
// Show only planes with position
// Show only planes with position
if (plane.validposition == 1) {
var marker = null;
PlanesOnMap++;
@ -175,7 +175,8 @@ function fetchData() {
}
}
refreshTableInfo() ;
refreshTableInfo();
refreshSelectedInfo();
});
}