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

      setDelay 3, msgClose
    msgTaskText()

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

        when "i"
          openIn('id')

  # Try to grab parameters from the url
  challenge = $(document).getUrlParam("challenge")
  difficulty = $(document).getUrlParam("difficulty")
  near = $(document).getUrlParam("near")
  difficulty = "easy" if not difficulty?
  if challenge?
    # If we know the challenge, we can use that to set the page up
  else
    # We'll need to grab a task and then use the information from that
    # task to populate the page


  # Now make a request for a task
