Merge branch 'develop' into tag_as_not

This commit is contained in:
Milos Brzakovic
2021-09-27 19:03:46 +02:00
committed by GitHub
50 changed files with 3714 additions and 1555 deletions
+4 -9
View File
@@ -395,6 +395,9 @@ export function validationCrossingWays(context) {
crossingTypeID += '_connectable';
}
// Differentiate based on the loc rounded to 4 digits, since two ways can cross multiple times.
var uniqueID = '' + crossing.crossPoint[0].toFixed(4) + ',' + crossing.crossPoint[1].toFixed(4);
return new validationIssue({
type: type,
subtype: subtype,
@@ -417,15 +420,7 @@ export function validationCrossingWays(context) {
featureTypes: featureTypes,
connectionTags: connectionTags
},
// differentiate based on the loc since two ways can cross multiple times
hash: crossing.crossPoint.toString() +
// if the edges change then so does the fix
edges.slice().sort(function(edge1, edge2) {
// order to assure hash is deterministic
return edge1[0] < edge2[0] ? -1 : 1;
}).toString() +
// ensure the correct connection tags are added in the fix
JSON.stringify(connectionTags),
hash: uniqueID,
loc: crossing.crossPoint,
dynamicFixes: function(context) {
var mode = context.mode();