cleanup & update

This commit is contained in:
Sacha Weatherstone
2023-12-26 21:16:48 +10:00
parent f7ba8ad967
commit bfc8271372
6 changed files with 201 additions and 2375 deletions
-8
View File
@@ -1,8 +0,0 @@
import { LatLon } from "geodesy/mgrs.js";
export const toMGRS = (lat?: number, lng?: number) => {
if (lat && lng && lat !== 0 && lng !== 0) {
return new LatLon(lat / 1e7, lng / 1e7).toUtm().toMgrs().toString();
}
return "No Fix.";
};