   resize = ->
     map.width = parseInt(d3.select('body').style('width'))
     map.height = parseInt(d3.select('body').style('height'))
-
-    clip.extent([[0, 0], [map.width, map.height]])
 
     projection.scale(map.s0 = d3.min([map.width / boxWidth, map.height / boxHeight]))
     f0 = (bbox[2] - bbox[0]) / boxWidth / map.s0

    projection
        .scale(map.s0 * map.sc)
        .translate([t0[0] * map.sc + tr[0], t0[1] * map.sc + tr[1]])

  map.centerAt = (pos) ->
    new_sc = 8000000 / map.s0

  clip = d3.geo.clipExtent()

  map.path = d3.geo.path()
      .projection(stream: (s) -> simplify.stream(clip.stream(projection.stream(s))))

  svg = d3.select('body').append('svg')

