+ 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 %>
+ }
+