       .on("load", loadTooltips)
       .on("show", showTooltips)
       .features(features)
-    
+  
+  # Load county shapes, then add them to the map
   $.get "media/maps/schweiz_gemeinden_geojson.json", (data) ->
     # console.log data
     p = po.geoJson()

$ = jQuery
po = org.polymaps

radius = 5

tips = {}

features = []

# loadFeatures = (e) ->
#   console.log e.features
#   for f in e.features
#     f.element.setAttribute("r", radius)
#     if f.data.properties.data['Vorgehen_Code'] is "3"
#       $(f.element).addClass("green")
#       console.log("green")

styleFeatures = po.stylist()
  .attr("r", radius)


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

# Tooltip Event Handlers

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