angular.module('bolt.controller', [])

.controller('BoltController', function($scope, Geo){
  $scope.currentCoords = {
    lat: null,
    lng: null
  };
  $scope.getCurrentCoords = function() {
    console.log('ran');
    Geo.getCurrentCoords(function(coordsObj) {
      $scope.currentCoords = coordsObj;
      console.log('$scope.currentCoords.lat: ', $scope.currentCoords.lat);
      console.log('$scope.currentCoords.lng: ', $scope.currentCoords.lng);
    });
  };

  // setInterval($scope.getCurrentCoords, 500);
})

angular.module('bolt.controller', [])

.controller('BoltController', function($scope, Geo){
  $scope.currentCoords = {
    lat: null,
    lng: null
  };
  // $scope.getCurrentCoords = function() {
  //   console.log('ran');
  //   Geo.getCurrentCoords(function(coordsObj) {
  //     $scope.currentCoords = coordsObj;
  //     console.log('$scope.currentCoords.lat: ', $scope.currentCoords.lat);
  //     console.log('$scope.currentCoords.lng: ', $scope.currentCoords.lng);
  //   });
  // };

  $scope.makeInitialMap = function() {
    console.log('in controller');
    Geo.makeInitialMap();
  };

  $scope.makeInitialMap();

  $scope.updateCurrentPosition = function() {
    Geo.updateCurrentPosition();
  };

  setInterval($scope.updateCurrentPosition, 1000);
})

Add functionality to update current position marker
Add functionality to update current position marker
