From a9b12f0dbac0841509dfe525976d69cfa4d5ee9b Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Fri, 25 Nov 2022 17:05:30 +0000 Subject: [PATCH] misc fixes/tweaks for map rendering --- apps/openstmap/interface.html | 1 + apps/recorder/widget.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/openstmap/interface.html b/apps/openstmap/interface.html index 81406d807..e44474d63 100644 --- a/apps/openstmap/interface.html +++ b/apps/openstmap/interface.html @@ -250,6 +250,7 @@ TODO: options = { compression:false, output:"raw", mode:"3bit", + diffusion:"bayer2" }; /* If in 3 bit mode, go through all the data beforehand and turn the saturation up to maximum, so when thresholded it diff --git a/apps/recorder/widget.js b/apps/recorder/widget.js index 070675e05..9d61cfee5 100644 --- a/apps/recorder/widget.js +++ b/apps/recorder/widget.js @@ -267,7 +267,7 @@ return Promise.resolve(settings.recording); },plotTrack:function(m) { // m=instance of openstmap module // Plots the current track in the currently set color - if (!activeRecorders) return; // not recording & not recording GPS + if (!activeRecorders.length) return; // not recording var settings = loadSettings(); // keep function to draw track in RAM function plot(g) { "ram"; @@ -276,6 +276,7 @@ if (l===undefined) return; // empty file? var mp, c = l.split(","); var la=c.indexOf("Latitude"),lo=c.indexOf("Longitude"); + if (la<0 || lb<0) return; // no GPS! l = f.readLine(); while (l && !c[la]) { c = l.split(",");