support desc attribute in gpx files (closes #2113)

This commit is contained in:
Bryan Housel
2014-07-01 00:17:00 -04:00
parent 52903c509d
commit 08d29e5a8c

View File

@@ -40,7 +40,7 @@ iD.GpxLayer = function(context) {
.append('text')
.attr('class', 'gpx')
.text(function(d) {
return d.properties.name;
return d.properties.desc || d.properties.name;
})
.attr('x', function(d) {
var centroid = path.centroid(d);