mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 22:48:10 +02:00
Merge branch 'develop' into tag_as_not
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user