+ :with => "'lat=' + args['lat'] + '&lon=' + args['lon'] + '&zoom=' + args['zoom']") %>
+ }
+
+ function setSearchViewbox() {
+ <% if params[:action] == 'index' %>
+ var extent = getMapExtent();
+
+ $("minlon").value = extent.left;
+ $("minlat").value = extent.bottom;
+ $("maxlon").value = extent.right;
+ $("maxlat").value = extent.top;
+ <% end %>