       tileURL = data.tileurl
       tileAttrib = data.tileasttribution if data.tileattribution?
       initmap()
+
 @init = ->
   ###
   # Find a challenge and set the map up

        when "i"
          openIn('id')


  # Determine the user's preferences
  challenge = $(document).getUrlParam("challenge")
  if
  difficulty = "beginner" if not difficulty?
  if not location?


  # Now make a request for a task

      setDelay 3, msgClose
    msgTaskText()

@getTaskByChallenge = (challenge, near = null) ->
  ###
  # Gets another task from the current challenge, close to the
  # location (if supplied)
  ###
    if not currentChallenge?
      #
    if near
      url = "/c/#{currentChallenge.slug}/task?near=#{near}"
    else
