-###
+1###
 # This file contains all the MapRoulette client/javascript code
 ###
 root = exports ? this

  # Reverse geocodes the center of the (currently displayed) map
  ###
  mqurl = "http://open.mapquestapi.com/nominatim/v1/reverse?format=json&lat=" + map.getCenter().lat + " &lon=" + map.getCenter().lng

  #close any notifications that are still hanging out on the page.
  msgClose()

  # this next bit fires the RGC request and parses the result in a
  # decent way, but it looks really ugly.
  $.getJSON mqurl, (data) ->

map = undefined
geojsonLayer = null

setDelay = (seconds, func) ->
  ###
  # Wraps setTimeout to make it easiet to write in Coffeescript
    ###
  # setTimeout takes miliseconds, so we multiply them by 1000
  setTimeout func, seconds * 1000

jQuery.fn.extend
  ###
