+TopLayers = []
+
 configureFeedBehaviour = ->
   $('ul.breadcrumb li.sub-link').click ->
     selected_view = $(this).data "view"

      return {color: feature.properties.color};
    onEachFeature: (feature, layer) ->
      layer.bindPopup feature.properties.description + "<br><span style=\"float: right; font-size: 0.8em;\">(#{time_diff})</span>"
  }).addTo(map)

  addFeedItem(time_diff, map, v)


    time_diff = time_diff_in_hours + " hours ago"
    if time_diff_in_hours == 0
      time_diff = time_diff_in_minutes + " minutes ago"
  layer = L.geoJson(v.geo.features[0], {
    pointToLayer: (feature, latlon) ->
      markerIcon = L.icon
        iconUrl: 'images/marker-icon.png'
