Validate connected ways when validating a way to avoid stale connectivity issues (close #6335)

This commit is contained in:
Quincy Morgan
2019-05-08 14:56:49 -04:00
parent 86c6805cf7
commit 1d797b8fc6

View File

@@ -299,6 +299,12 @@ export function coreValidator(context) {
entity.members.forEach(function(member) {
acc.add(member.id);
});
} else if (entity.type === 'way') { // include connected ways
entity.nodes.forEach(function(nodeID) {
graph._parentWays[nodeID].forEach(function(wayID) {
acc.add(wayID);
});
});
}
checkParentRels.forEach(function(entity) { // include parent relations