   mqurl = "http://open.mapquestapi.com/nominatim/v1/reverse?format=json&osm_type=#{type}@osm_id=#{id}"
   msgClose()
   request = $.ajax {url: mqurl}
-  request.success (data) -> 
+  request.success (data) ->
     locstr = nomToString(data.address)
     msg locstr
   request.fail(ajaxErrorHandler)

  near = "#{map.getCenter().lng}|#{map.getCenter().lat}" if not near
  url = "/api/c/challenges/#{challenge}/tasks?near=#{near}"
  request = $.ajax {url: url}
  request.done (data) ->
    currentTask = data[0]
    showTask(data[0])
  request.fail (ajaxErrorHandler)

changeMapLayer = (layerUrl, layerAttrib = tileAttrib) ->
  ###

  ###
  for feature in features
    if feature.properties.selected is true
      selectedFeature = feature
      geojsonLayer.addData feature
    extent = getExtent(selectedFeature)
    map.fitBounds(extent)
