       for deal in deals
         if deal.deal.categoryname not in $scope.uniqueCategories
           $scope.uniqueCategories.push deal.deal.categoryname
-        $scope.addMarker '',deal
+        $scope.addMarker '',deal.deal.shop.loc
+
       prom.resolve()
     prom.promise
 

  $scope.addMarker = ($event, $params) ->
    $scope.myMarkers.push new google.maps.Marker(
      map: $scope.myMap
      position: new google.maps.LatLng($params.deal.shop.loc.latitude, $params.deal.shop.loc.longitude)
      deal: $params
    )
    return

      else
        $scope.filteredDeals = $scope.deals
    for deal in $scope.filteredDeals
          $scope.addMarker '',deal.deal.shop.loc

  #   $scope.filteredDeals_old = $scope.filteredDeals

