From 59795e41ab5ad39cad6933a2c4a28ebc3589e077 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 14 Jan 2019 17:27:34 -0500 Subject: [PATCH] Don't style the active vertex in line drawing mode as a large endpoint (closes #5711) --- modules/svg/vertices.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/svg/vertices.js b/modules/svg/vertices.js index 521a32a09..2d2abf2be 100644 --- a/modules/svg/vertices.js +++ b/modules/svg/vertices.js @@ -46,6 +46,7 @@ export function svgVertices(projection, context) { var wireframe = context.surface().classed('fill-wireframe'); var zoom = geoScaleToZoom(projection.scale()); var z = (zoom < 17 ? 0 : zoom < 18 ? 1 : 2); + var activeID = context.activeID(); function getIcon(d) { @@ -56,6 +57,7 @@ export function svgVertices(projection, context) { icons[entity.id] = entity.hasInterestingTags() && context.presets().match(entity, graph).icon; + return icons[entity.id]; } @@ -79,7 +81,7 @@ export function svgVertices(projection, context) { var r = rads[i ? 3 : z]; // slightly increase the size of unconnected endpoints #3775 - if (entity.isEndpoint(graph) && !entity.isConnected(graph)) { + if (entity.id !== activeID && entity.isEndpoint(graph) && !entity.isConnected(graph)) { r += 1.5; }