Make merge threshold consistent for almost_junction and tag_suggests_area connection fixes

This commit is contained in:
Quincy Morgan
2019-02-06 13:12:58 -05:00
parent 88ecbcc069
commit 7765baf03b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ export function validationAlmostJunction() {
var edgeWayNodes = context.graph().childNodes(edgeWay);
var closestNodeInfo = geoSphericalClosestNode(edgeWayNodes, crossLoc);
// if there is already a point nearby, just connect to that
if (closestNodeInfo.distance < 0.8) {
if (closestNodeInfo.distance < 0.75) {
context.perform(
actionMergeNodes([closestNodeInfo.node.id, endNode.id], closestNodeInfo.node.loc),
t('issues.fix.connect_almost_junction.undo_redo')
+1 -1
View File
@@ -39,7 +39,7 @@ export function validationTagSuggestsArea() {
var firstToLastDistanceMeters = geoSphericalDistance(nodes[0].loc, nodes[nodes.length-1].loc);
var connectEndpointsOnClick;
// if the distance is very small, attempt to merge the endpoints
if (firstToLastDistanceMeters < 0.5) {
if (firstToLastDistanceMeters < 0.75) {
testNodes = _clone(nodes);
testNodes.pop();
testNodes.push(testNodes[0]);