         .data(map.features)
     mapPaths.enter().append('path')
       .attr('d', path)
-    mapPaths.exit().remove()
-
-    minX = d3.min(map.features[0].geometry.coordinates[0], (d) ->
-      d[0]
-    )
-    minY = d3.max(map.features[0].geometry.coordinates[0], (d) ->
-      d[1]
-    )
 
     bounds =  path.bounds(map)
     resizeMap(bounds)

        $placeholder = $(element).find('.placeholder-image')
        $placeholder.remove() if $placeholder
        if newVal != oldVal # to prevent init redraw
          renderDataMap(scope, newVal, scope.data)
          stopProgressBar()
      )

    svg.attr('height', ratio * svgHeight)


  removeExistingMap = ->
    mapPaths = mapGroup.selectAll('path')
      .data([])
    mapPaths.exit().remove()


  renderDataMap = (scope, map, data) ->
    path = d3.geo.path().projection(scope.projection || defaults.projection)

