From 99696cfac0986ae754a9c40bafc83e350fbeea3a Mon Sep 17 00:00:00 2001 From: Bjorge Dijkstra Date: Thu, 18 Feb 2016 20:17:01 +0100 Subject: [PATCH 1/4] minor html syntax fixes for map view --- public_html/gmap.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public_html/gmap.html b/public_html/gmap.html index 33b082e..a027f56 100644 --- a/public_html/gmap.html +++ b/public_html/gmap.html @@ -72,7 +72,7 @@ DUMP1090 - + @@ -146,7 +146,7 @@ Track: n/a - Last seen: n/a + Last seen: n/a @@ -161,6 +161,7 @@
+ @@ -171,6 +172,7 @@ + From 1d723b0731342969c0b8c2dfdac84ec3663f3cab Mon Sep 17 00:00:00 2001 From: Bjorge Dijkstra Date: Thu, 18 Feb 2016 20:20:35 +0100 Subject: [PATCH 2/4] Remove sensor parameter from google maps api url, it is no longer required. https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required --- public_html/gmap.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/gmap.html b/public_html/gmap.html index a027f56..61daec7 100644 --- a/public_html/gmap.html +++ b/public_html/gmap.html @@ -5,7 +5,7 @@ - + From 3a98bf0d004249654f24048ec232abef3b9edf35 Mon Sep 17 00:00:00 2001 From: Bjorge Dijkstra Date: Thu, 18 Feb 2016 20:28:49 +0100 Subject: [PATCH 3/4] Remove invalid css property 'align' from timestamps div --- public_html/gmap.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/gmap.html b/public_html/gmap.html index 61daec7..f62d063 100644 --- a/public_html/gmap.html +++ b/public_html/gmap.html @@ -42,7 +42,7 @@
ICAO FlightTrack Msgs Age
From a283ab2786d3c04afb35035618db77bc4337d886 Mon Sep 17 00:00:00 2001 From: Bjorge Dijkstra Date: Thu, 18 Feb 2016 20:47:17 +0100 Subject: [PATCH 4/4] Fix check for valid distance in drawCircle() --- public_html/script.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/public_html/script.js b/public_html/script.js index ce21e36..823f228 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -894,10 +894,11 @@ function resetMap() { function drawCircle(marker, distance) { if (typeof distance === 'undefined') { return false; - - if (!(!isNaN(parseFloat(distance)) && isFinite(distance)) || distance < 0) { - return false; - } + } + + distance = parseFloat(distance); + if (isNaN(distance) || !isFinite(distance) || distance < 0) { + return false; } distance *= 1000.0;