+
<%= t 'browse.changeset_details.bounding_box' %>
<% unless changeset_details.has_valid_bbox? %>
-
<%= t 'browse.changeset_details.no_bounding_box' %> |
- <% else
- minlon = changeset_details.min_lon/GeoRecord::SCALE.to_f
- minlat = changeset_details.min_lat/GeoRecord::SCALE.to_f
- maxlon = changeset_details.max_lon/GeoRecord::SCALE.to_f
- maxlat = changeset_details.max_lat/GeoRecord::SCALE.to_f
- %>
-
-
- |
+
<%= t 'browse.changeset_details.no_bounding_box' %>
+ <% else bbox = changeset_details.bbox.to_unscaled %>
+
+
<%=bbox.max_lat -%>
+
<%=bbox.min_lon -%>
+
(<%= link_to t('browse.changeset_details.box'), root_path(:minlon => bbox.min_lon, :minlat => bbox.min_lat, :maxlon => bbox.max_lon, :maxlat => bbox.max_lat, :box => 'yes'), :title => t('browse.changeset_details.show_area_box') %>)
+
<%=bbox.max_lon -%>
+
<%= bbox.min_lat -%>
+
<% end %>
-