]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_search.html.erb
Point blog link at the aggregator.
[rails.git] / app / views / site / _search.html.erb
index 6e291bfd048d0c60e8cdb3c5baf4ce083b90b859..dab031c7b0fc3ea2935d0be132af39b1af09a4c6 100644 (file)
@@ -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] %>