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

$ = 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)

      .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()
