replace map on GPS page to be more accurate.

pull/96/head
bradanlane 2015-10-20 15:14:25 -04:00
rodzic 63922bccdd
commit 865ba680c8
1 zmienionych plików z 0 dodań i 6 usunięć

Wyświetl plik

@ -23,10 +23,6 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) {
function setGeoReferenceMap(la, lo) {
// Mercator projection
// var map = "img/world.png";
// var map_width = 3929;
// var map_height = 2184;
// var map_zero_x = 1868;
// var map_zero_y = 1412;
var map_width = 2530;
var map_height = 1603;
var map_zero_x = 1192;
@ -71,8 +67,6 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) {
// $scope.gps_accuracy = accuracies[status.NACp];
// "LastFixLocalTime":"2015-10-11T16:47:03.523085162Z"
// status.Lat = 42.47; status.Lng = -83.66;
$scope.gps_lat = status.Lat.toPrecision(6); // result is string
$scope.gps_lon = status.Lng.toPrecision(6); // result is string
$scope.gps_alt = Math.round(status.Alt);