added geotools module

pull/2708/head
Hugh Barney 2023-04-22 01:12:49 +01:00
parent bff6a4d145
commit 07fd9ffe62
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,7 @@
(function () {
var timeout;
var last_fix;
var geo = require("geotools");
var resetLastFix = function() {
last_fix = {
@ -49,13 +50,12 @@
var gpsText = function() {
if (last_fix === undefined)
return '----- , -----';
return '';
if (!last_fix.fix)
return formatTime(last_fix.time);
// use basic lat,lon for now
return last_fix.lat.toFixed(3) + ' , ' + last_fix.lon.toFixed(3);
return gpsToOSMapRef(last_fix),
};
var info = {