Initial 1.3.x rework

This commit is contained in:
Sacha Weatherstone
2022-07-26 08:52:23 +10:00
parent ff6019098b
commit a2280ab96e
163 changed files with 6383 additions and 14397 deletions
+8
View File
@@ -0,0 +1,8 @@
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.";
};