misc fixes/tweaks for map rendering

master
Gordon Williams 2022-11-25 17:05:30 +00:00
parent c0a89a375e
commit a9b12f0dba
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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(",");