         $scope.district_element.attr('class', 'selected')
         $scope.bounding_box = $scope.district_element[0][0].getBoundingClientRect()
         $scope.district_element.call($scope.zoomIn)
-        
- 
+
     $scope.drawMap = () ->
       ready = (error, us, congress) ->
         $scope.usMap.append("defs").append("path").attr("id", "land").datum(topojson.feature(us, us.objects.land)).attr "d", path

      bbox = element.getBBox()
      x = bbox.x + bbox.width/2
      y = bbox.y + bbox.height/2
      scale = 10
      $scope.usMap.transition().duration(750).attr("transform", "translate(" + 960 / 2 + "," + 600 / 2 + ")scale(" + scale + ")translate(" + -x + "," + -y + ")").style "stroke-width", 1.5 / scale + "px"

    $scope.drawMap()


    $scope.setDistrict = (error, data) ->
      if not error
        unless data.length
          return $scope.warning = "No district was found for #{$scope.selected_zip}."
        $scope.state_district = {state: data[0].state, district: data[0].district}
      else
        console.log "Error: ", error

