]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/search.js
Use reverse geocoders for any lat/lon queries
[rails.git] / app / assets / javascripts / index / search.js
index 2f92e6282ec45fa49f13e3f4bd0e9bd4d8577428..dc4df821e8598e03d35b693c72c6251163859ae6 100644 (file)
@@ -24,6 +24,7 @@ function initializeSearch(map) {
     $("#sidebar_title").html(I18n.t('site.sidebar.search_results'));
     $("#sidebar_content").load($(this).attr("action"), {
       query: $("#query").val(),
+      zoom: map.getZoom(),
       minlon: bounds.getWest(),
       minlat: bounds.getSouth(),
       maxlon: bounds.getEast(),