     })
   tip.toggle
 
+# Setup map
 map = po.map()
 .container(document.getElementById("map").appendChild(po.svg("svg")))
 .center({lon: 8.596677185140349, lat: 46.77841693384364})


styleCounties = po.stylist()
  .attr("class", "county")

loadTooltips = (e) ->
  for f in e.features

.on("move", moveTooltips)
.on("resize", moveTooltips)

# Add map background tiles
map.add(po.image()
.url(po.url("http://{S}tile.cloudmade.com/1a1b06b230af4efdbb989ea99e9841af/998/256/{Z}/{X}/{Y}.png")
.hosts(["a.", "b.", "c.", ""])))

# DOM Loaded:
$ ->
  map_offset = $("#map").offset()
  $("#map").css({
    #height: $(document).height() - map_offset.top
  })
  
  # Load points, then add them to the map
  $.get "media/data/vbs-belastete-standorte.json", (data) ->
    # console.log data
    
