     # Navigate to preview
     $("#goToPreviewButton").on 'click', ->
       window.location = "/preview?box=#{serializedSelection()}"
+
+$ ->
+  $('#bubble').hide()
+  $('.waitForLoad').show();

require("./utils/rectangle_editor")

config = require('../config/app.json')

$ ->
  $('.waitForLoad').show();

BoxParam = require("./utils/boxparam.coffee")
resolutions = [

    BoxParam.encode({sw, ne, zoom: map.getZoom()})

  do ->

    writeBoxToUrl = debounce(->
      history.replaceState({}, null, "/?box=#{serializedSelection()}")
