Apply the crossing tag of the path to the node even if it's not a footpath when connecting crossing ways

This commit is contained in:
Quincy Morgan
2019-04-30 11:53:03 -07:00
parent 07573091ad
commit 9d6b461d0e
+1 -3
View File
@@ -164,9 +164,7 @@ export function validationCrossingWays() {
return {};
}
var pathFeature = entity1IsPath ? entity1 : entity2;
if (pathFeature.tags.highway === 'footway' &&
pathFeature.tags.footway === 'crossing' &&
['marked', 'unmarked'].indexOf(pathFeature.tags.crossing) !== -1) {
if (['marked', 'unmarked'].indexOf(pathFeature.tags.crossing) !== -1) {
// if the path is a crossing, match the crossing type
return { highway: 'crossing', crossing: pathFeature.tags.crossing };
}