       if bounds = gmap.getLatLngBounds()
         $('#search_bounding_box').val(bounds.toString())
         searchRelics()
+
+    gmap.onNextMovement ->
+    gmap.setCenter(new google.maps.LatLng(52, 20))
+    gmap.setZoom(6)
+    searchRelics()

    else
      alert('Nie znaleziono trasy! Spróbuj ponownie.')

searchRelics = (callback) ->
  search_params = $('#new_search').serializeObject().search
  search_params.api_key = "oz"
  search_params.per_page = 1000

  window.parent.postMessage(JSON.stringify(
    event: "on_params_changed", params: search_params
  ), "*")

  if search_params.start.length && search_params.end.length
    searchRoute search_params, (route) ->
      search_params.bounding_box = gmap.getLatLngBounds().toString()
      performSearch search_params, (result) ->
        process(search_params, result.clusters, result.relics, route.path)
  else
    performSearch search_params, (result) ->
      renderResults(result.clusters, result.relics)

  false

