X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fd70409adb3bac0d92fca7072e612c2f9299676e..639a994c9b851b94d4c65aa96af732eefc8453fb:/app/views/site/_search.html.erb?ds=inline diff --git a/app/views/site/_search.html.erb b/app/views/site/_search.html.erb index 6e291bfd0..dab031c7b 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -6,10 +6,11 @@ function describeLocation() { var position = getPosition(); + var zoom = getZoom(); <%= remote_function(:loading => "startSearch()", :url => { :controller => :geocoder, :action => :description }, - :with => "'lat=' + position.lat + '&lon=' + position.lon") %> + :with => "'lat=' + position.lat + '&lon=' + position.lon + '&zoom=' + zoom") %> } <% if params[:query] %>