     height = parseInt(d3.select('body').style('height'))
 
     projection.scale(s0 = d3.min([width / boxWidth, height / boxHeight]))
+    f0 = (db.bbox[2] - db.bbox[0]) / boxWidth / s0
 
     svg.select('.zoomrect')
         .attr('width', width)

  sc = 1
  t0 = [0, 0]
  tr = [0, 0]
  location = null

  projection = d3.geo.albers()



initialize = (db) ->
  topojson.presimplify(db.topo)
  topojson.presimplify(db.dem)

  segmentLayer = topojson.feature(db.topo, db.topo.objects.segments).features
  segmentMap = index(segmentLayer)

