misc fixes/tweaks for map rendering
parent
c0a89a375e
commit
a9b12f0dba
|
|
@ -250,6 +250,7 @@ TODO:
|
||||||
options = {
|
options = {
|
||||||
compression:false, output:"raw",
|
compression:false, output:"raw",
|
||||||
mode:"3bit",
|
mode:"3bit",
|
||||||
|
diffusion:"bayer2"
|
||||||
};
|
};
|
||||||
/* If in 3 bit mode, go through all the data beforehand and
|
/* If in 3 bit mode, go through all the data beforehand and
|
||||||
turn the saturation up to maximum, so when thresholded it
|
turn the saturation up to maximum, so when thresholded it
|
||||||
|
|
|
||||||
|
|
@ -267,7 +267,7 @@
|
||||||
return Promise.resolve(settings.recording);
|
return Promise.resolve(settings.recording);
|
||||||
},plotTrack:function(m) { // m=instance of openstmap module
|
},plotTrack:function(m) { // m=instance of openstmap module
|
||||||
// Plots the current track in the currently set color
|
// 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();
|
var settings = loadSettings();
|
||||||
// keep function to draw track in RAM
|
// keep function to draw track in RAM
|
||||||
function plot(g) { "ram";
|
function plot(g) { "ram";
|
||||||
|
|
@ -276,6 +276,7 @@
|
||||||
if (l===undefined) return; // empty file?
|
if (l===undefined) return; // empty file?
|
||||||
var mp, c = l.split(",");
|
var mp, c = l.split(",");
|
||||||
var la=c.indexOf("Latitude"),lo=c.indexOf("Longitude");
|
var la=c.indexOf("Latitude"),lo=c.indexOf("Longitude");
|
||||||
|
if (la<0 || lb<0) return; // no GPS!
|
||||||
l = f.readLine();
|
l = f.readLine();
|
||||||
while (l && !c[la]) {
|
while (l && !c[la]) {
|
||||||
c = l.split(",");
|
c = l.split(",");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue