     if ROUTE?
       updateWaypointInputs ROUTE, -> searchRelics()
 
-  gmap.onNextMovement ->
-  gmap.setCenter(new google.maps.LatLng(52, 20))
-  gmap.setZoom(6)
   searchRelics()

    event: "on_params_changed", params: store_params()
  ), "*")

  if not search_params.waypoints.isEmpty()
    searchRoute search_params, (polygon) ->
      search_params.polygon = polygon.join(';')
      $('#search_polygon').val(search_params.polygon)

    window.gmap = new google.maps.Map $('#map_canvas')[0],
      mapTypeId: google.maps.MapTypeId.HYBRID

  gmap.onNextMovement ->
  gmap.setCenter(new google.maps.LatLng(52, 20))
  gmap.setZoom(6)

  if renderOnly?
    do searchRelics
    return
