From: John Firebaugh Date: Sat, 27 Apr 2013 00:54:38 +0000 (-0700) Subject: Selecting relations is now supported X-Git-Tag: live~5125^2~3 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/cfbb80d2d491dcb282896c85efd6cce035a0707c?hp=fd8a77552600ed2bff0bda0f0fd524a07998df4f Selecting relations is now supported --- diff --git a/app/views/site/_id.html.erb b/app/views/site/_id.html.erb index 5452cc4fe..c31ea23dc 100644 --- a/app/views/site/_id.html.erb +++ b/app/views/site/_id.html.erb @@ -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