Put back the selected class when redrawing selected lines

This commit is contained in:
Bryan Housel
2017-03-21 14:19:57 -04:00
parent 85ed3cc2d3
commit 0228f934b3
+3 -1
View File
@@ -57,7 +57,9 @@ export function svgLines(projection, context) {
// works because osmEntity.key is defined to include the entity v attribute.
lines.enter()
.append('path')
.attr('class', function(d) { return 'way line ' + klass + ' ' + d.id; })
.attr('class', function(d) {
return 'way line ' + klass + ' ' + d.id + (isSelected ? ' selected' : '');
})
.call(svgTagClasses())
.merge(lines)
.sort(waystack)