From d63f9c83813f4d8e42bf0e8231007bc4f118f477 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 20 Jun 2013 13:58:28 -0700 Subject: [PATCH] Set precision to 0. Mitigates a performance regression with D3 3.2. --- js/id/core/entity.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/id/core/entity.js b/js/id/core/entity.js index c97545ee9..cffb8eb5f 100644 --- a/js/id/core/entity.js +++ b/js/id/core/entity.js @@ -36,7 +36,8 @@ iD.Entity.key = function(entity) { iD.Entity.areaPath = d3.geo.path() .projection(d3.geo.mercator() - .scale(12016420.517592335)); + .scale(12016420.517592335) + .precision(0)); iD.Entity.prototype = { tags: {},