mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user