[hamradio-commits] [dump1090] 174/389: Few bugs
Matthew Ernisse
mernisse-guest at moszumanska.debian.org
Wed Nov 5 00:19:52 UTC 2014
This is an automated email from the git hooks/post-receive script.
mernisse-guest pushed a commit to branch master
in repository dump1090.
commit 7b99ad5f6cea9ddbbbdbe9ba8ab4078433c6a11a
Author: terribl <terri at rannalla.net>
Date: Tue May 14 13:04:31 2013 +0300
Few bugs
---
public_html/script.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/public_html/script.js b/public_html/script.js
index a2af763..e78d9b2 100644
--- a/public_html/script.js
+++ b/public_html/script.js
@@ -75,8 +75,8 @@ function selectPlane(selectedPlane) {
function refreshGeneralInfo() {
var i = document.getElementById('geninfo');
- i.innerHTML += PlanesOnMap + ' planes on map.<br>';
- i.innerHTML = PlanesOnGrid + ' planes on grid.';
+ i.innerHTML = PlanesOnMap + ' planes on map.<br>';
+ i.innerHTML += PlanesOnGrid + ' planes on grid.';
}
function refreshSelectedInfo() {
@@ -178,8 +178,8 @@ function fetchData() {
// Declare our plane that we are working with from our old data set
var myplane = Planes[plane.hex];
- // If the lat/long is not 0, we should make a marker for it
- if (plane.lat != 0 && plane.lon != 0) {
+ // If the has valid position, we should make a marker for it
+ if (plane.validposition) {
if (myplane.marker != null) {
marker = myplane.marker;
var icon = marker.getIcon();
@@ -222,7 +222,7 @@ function fetchData() {
} else {
// This is a new plane
// Do we have a lat/long that is not 0?
- if (plane.lat != 0 && plane.lon != 0) {
+ if (plane.validposition) {
// Add new plane to map
marker = new google.maps.Marker({
position: new google.maps.LatLng(plane.lat, plane.lon),
@@ -242,7 +242,7 @@ function fetchData() {
}
// If we have lat/long, we must have a marker, so lets set the marker title
- if (plane.lat != 0 && plane.lon != 0) {
+ if (plane.validposition) {
if (plane.flight.length == 0) {
marker.setTitle(plane.hex)
} else {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git
More information about the pkg-hamradio-commits
mailing list