Google map view enhanced: color by altitude and more.

This commit is contained in:
antirez
2013-01-16 20:25:28 +01:00
parent 21fc9de47a
commit 03759a3eb0
2 changed files with 22 additions and 10 deletions

View File

@ -1872,8 +1872,9 @@ char *aircraftsToJson(int *len) {
if (a->lat != 0 && a->lon != 0) {
l = snprintf(p,buflen,
"{\"hex\":\"%s\", \"lat\":%f, \"lon\":%f, \"track\":%d},\n",
a->hexaddr, a->lat, a->lon, a->track);
"{\"hex\":\"%s\", \"flight\":\"%s\", \"lat\":%f, "
"\"lon\":%f, \"altitude\":%d, \"track\":%d},\n",
a->hexaddr, a->flight, a->lat, a->lon, a->altitude, a->track);
p += l; buflen -= l;
/* Resize if needed. */
if (buflen < 256) {