X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/13289d404188bd397ee72852f66c415a2bb87066..dd3b577bd5bbe4f9d9d1cac8e0f328a16b75f7f5:/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 3391a102b..f82f19d84 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -15,7 +15,7 @@ $("#sidebar_title").html("<%= t 'site.sidebar.search_results' %>"); <% if params[:action] == 'index' -%> - var extent = getMapExtent(); + var extent = unproj(map.getExtent()); $("#sidebar_content").load("<%= url_for :controller => :geocoder, :action => :search %>", { query: $("#query").val(),