diff --git a/js/id/svg/gpx.js b/js/id/svg/gpx.js index ec94c7821..44625ae87 100644 --- a/js/id/svg/gpx.js +++ b/js/id/svg/gpx.js @@ -68,15 +68,15 @@ iD.svg.Gpx = function(projection, context, dispatch) { labels.enter() .append('text') - .attr('class', 'gpx') - .text(function(d) { - return d.properties.desc || d.properties.name; - }); + .attr('class', 'gpx'); labels.exit() .remove(); labels + .text(function(d) { + return d.properties.desc || d.properties.name; + }) .attr('x', function(d) { var centroid = path.centroid(d); return centroid[0] + 7;