Don't unzorro ways that are overly connected (closes #2598)

This commit is contained in:
Bryan Housel
2015-04-22 22:36:55 -04:00
parent d61af929df
commit de5bac0a85

View File

@@ -51,6 +51,9 @@ iD.actions.Move = function(moveIds, tryDelta, projection, cache) {
unmoved = _.find(parents, function(way) { return !cache.moving[way.id]; });
if (!unmoved) return;
// exclude ways that are overly connected..
if (_.intersection(moved.nodes, unmoved.nodes).length > 2) return;
if (moved.isArea() || unmoved.isArea()) return;
cache.intersection[node.id] = {