From 515094cb56f500cfaefa82bd68ccf90f3f906ed3 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 8 Dec 2017 14:36:45 -0500 Subject: [PATCH] Only add viewfields for an all-way stop on a highway intersection. Sometimes people tag all-way stop signs at the junction node, othertimes people tag all-way stop signs at the stop sign location. What we're doing here is: - if `stop=all` tagged at the junction, show viewfield in all directions - if `stop=all` tagged at the sign location, show viewfield according to `direction=` tag --- modules/svg/vertices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/svg/vertices.js b/modules/svg/vertices.js index fa449fdc2..dc8eb4dc1 100644 --- a/modules/svg/vertices.js +++ b/modules/svg/vertices.js @@ -76,7 +76,7 @@ export function svgVertices(projection, context) { if (entity.id in directions) return directions[entity.id]; var dir = (entity.tags['traffic_signals:direction'] || entity.tags.direction || '').toLowerCase(); - var stop = (entity.tags.stop || '').toLowerCase(); + var stop = ((entity.isHighwayIntersection(graph) && entity.tags.stop) || '').toLowerCase(); var goBackward = (dir === 'backward' || dir === 'both' || dir === 'all' || stop === 'all'); var goForward = (dir === 'forward' || dir === 'both' || dir === 'all' || stop === 'all'); if (!goForward && !goBackward) return;