Disable circularize and orthogonalize operations when way is <80% contained in the viewport

This commit is contained in:
Bryan Housel
2014-03-27 22:47:34 -04:00
parent 414bc13252
commit 1df54a700a
6 changed files with 38 additions and 4 deletions
+6
View File
@@ -51,6 +51,12 @@ describe("iD.geo.Extent", function () {
});
});
describe("#area", function () {
it("returns the area", function () {
expect(iD.geo.Extent([0, 0], [5, 10]).area()).to.eql(50);
});
});
describe("#padByMeters", function () {
it("does not change centerpoint of an extent", function () {
var min = [0, 0], max = [5, 10];