Include node coordinates on the data browser view for a node. Fixes #1856.
authorTom Hughes <tom@compton.nu>
Sat, 30 May 2009 11:05:15 +0000 (11:05 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 30 May 2009 11:05:15 +0000 (11:05 +0000)
app/views/browse/_node_details.rhtml

index 492aa06db43f44de461eb2a834ff01010bc8b45c..bbfe2ead760d72f0ec3e77d867d48f67a7c4e34d 100644 (file)
@@ -2,6 +2,11 @@
 
   <%= render :partial => "common_details", :object => node_details %>
 
+  <tr>
+    <th>Coordinates:</th>
+    <td><div class="geo"><a href="/?lat=<%= h(node_details.lat) %>&lon=<%= h(node_details.lon) %>&zoom=18"><span class="latitude"><%= h(node_details.lat) %></span>, <span class="longitude"><%= h(node_details.lon) %></span></a></div></td>
+  </tr>
+
   <% unless node_details.ways.empty? and node_details.containing_relation_members.empty? %>
     <tr valign="top">
       <th>Part of:</th>