Adjacent segments should only be nope'd on the active (drawing) way

(closes #4713)
This commit is contained in:
Bryan Housel
2018-01-20 00:09:04 -05:00
parent 2d282c7b08
commit 94f89f67c2
+2 -1
View File
@@ -204,6 +204,7 @@ export function svgRelationMemberTags(graph) {
export function svgSegmentWay(way, graph, activeID) {
var isActiveWay = (way.nodes.indexOf(activeID) !== -1);
var features = { passive: [], active: [] };
var start = {};
var end = {};
@@ -217,7 +218,7 @@ export function svgSegmentWay(way, graph, activeID) {
if (start.type !== undefined) {
if (start.node.id === activeID || end.node.id === activeID) {
// push nothing
} else if (start.type === 2 || end.type === 2) { // one adjacent vertex
} else if (isActiveWay && (start.type === 2 || end.type === 2)) { // one adjacent vertex
pushActive(start, end, i);
} else if (start.type === 0 && end.type === 0) { // both active vertices
pushActive(start, end, i);