Error Writing latlon

This commit is contained in:
portree_kid 2020-02-28 08:05:30 +01:00
parent bad59e3405
commit 2d70c156c6

View File

@ -152,7 +152,7 @@ var convertLat = function (latlng) {
var convertLon = function (latlng) { var convertLon = function (latlng) {
console.log(latlng.lng); console.log(latlng.lng);
var NS = latlng.lat > 0 ? 'E' : 'W'; var NS = latlng.lng > 0 ? 'E' : 'W';
var deg = mathjs.floor(mathjs.abs(latlng.lng)); var deg = mathjs.floor(mathjs.abs(latlng.lng));
var min = (mathjs.abs(latlng.lng) - deg) * 60; var min = (mathjs.abs(latlng.lng) - deg) * 60;
// console.log(NS + deg + " " + min); // console.log(NS + deg + " " + min);