kopia lustrzana https://github.com/DL7AD/pecanpico9
Removed time limit in decoder
rodzic
b51b45b839
commit
b110dd5b26
|
@ -33,7 +33,7 @@ class MyDB extends SQLite3 {
|
||||||
AND position.lat != 0
|
AND position.lat != 0
|
||||||
AND position.lon != 0
|
AND position.lon != 0
|
||||||
AND position.isnew = 1
|
AND position.isnew = 1
|
||||||
AND position.time + 86400*14 > CAST(strftime('%s', 'now') as DECIMAL)
|
-- AND position.time + 86400*14 > CAST(strftime('%s', 'now') as DECIMAL)
|
||||||
GROUP BY position.call,position.time
|
GROUP BY position.call,position.time
|
||||||
ORDER BY position.time ASC
|
ORDER BY position.time ASC
|
||||||
");
|
");
|
||||||
|
|
|
@ -68,17 +68,20 @@ function drawItems() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Line between points
|
// Line between points
|
||||||
if(last)
|
if(last) {
|
||||||
var line = new google.maps.Polyline({
|
if(last.lat != last.lng || value.lat != value.lng) {
|
||||||
path: [last,value],
|
var line = new google.maps.Polyline({
|
||||||
geodesic: true,
|
path: [last,value],
|
||||||
strokeColor: last.org == 'log' || value.org == 'log' ? '#FF0000' : '#008000',
|
geodesic: true,
|
||||||
strokeOpacity: 0.4,
|
strokeColor: last.org == 'log' || value.org == 'log' ? '#FF0000' : '#008000',
|
||||||
strokeWeight: 5,
|
strokeOpacity: 0.4,
|
||||||
map: map
|
strokeWeight: 5,
|
||||||
});
|
map: map
|
||||||
|
});
|
||||||
|
console.log(last,value);
|
||||||
|
}
|
||||||
items.push(line);
|
items.push(line);
|
||||||
|
}
|
||||||
last = value;
|
last = value;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue