mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
Make merge threshold consistent for almost_junction and tag_suggests_area connection fixes
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user