   sc = 1
   t0 = [0, 0]
   tr = [0, 0]
+  f0 = 1
   location = null
 
   projection = d3.geo.albers()



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


  zoom = d3.behavior.zoom()
      .scaleExtent([1, 1000])

  simplify = d3.geo.transform(
    point: (x, y, z) ->
      if z? and z >= f0 / sc / 300
        [a, b] = projection([x, y])
        return @stream.point(a, b)
  )

  path = d3.geo.path()
      .projection(simplify)

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

