missed a variable that needed to be hooked into the global $scope.map