mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 05:49:16 +02:00
+4
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user