Selecting relations is now supported
authorJohn Firebaugh <john.firebaugh@gmail.com>
Sat, 27 Apr 2013 00:54:38 +0000 (17:54 -0700)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Fri, 3 May 2013 17:52:44 +0000 (10:52 -0700)
app/views/site/_id.html.erb

index 5452cc4fe6493882c4569682675c7a88dc7e8533..c31ea23dc1b1426c0c8e466d3cf8db691fd99026 100644 (file)
@@ -13,7 +13,7 @@
     <% end -%>
 
     var hash;
-    if (coord.object && coord.object.type !== 'relation') {
+    if (coord.object) {
       hash = '#id=' + coord.object.type[0] + coord.object.id;
     } else {
       hash = '#map=' + (coord.zoom || 17) + '/' + coord.lon + '/' + coord.lat