From 0228f934b32f5c0fa1a2eac94423bae9118b1cdb Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Tue, 21 Mar 2017 14:19:57 -0400 Subject: [PATCH] Put back the `selected` class when redrawing selected lines --- modules/svg/lines.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/svg/lines.js b/modules/svg/lines.js index 94ca0206a..c788986ff 100644 --- a/modules/svg/lines.js +++ b/modules/svg/lines.js @@ -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)