selectControl.activate();
<% if ! @bbox.nil? %>
- map.setExtent(proj(new OpenLayers.Bounds(<%= @bbox %>)));
+ map.zoomToExtent(proj(new OpenLayers.Bounds(<%= @bbox %>)));
<% else %>
- map.setExtent(proj(bounds));
+ map.zoomToExtent(proj(bounds));
<% end %>
}