Selecting relations is now supported

This commit is contained in:
John Firebaugh 2013-04-26 17:54:38 -07:00
parent fd8a775526
commit cfbb80d2d4

View 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