From 97d74b2846a77e45f221a15326d9bfec4125d3e5 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 17 May 2013 16:30:54 -0700 Subject: [PATCH] Remove entity length condition Rendering performance stalls before this limit anyway. --- js/id/renderer/map.js | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/js/id/renderer/map.js b/js/id/renderer/map.js index 60dd6ef36..9464a69a8 100644 --- a/js/id/renderer/map.js +++ b/js/id/renderer/map.js @@ -133,17 +133,14 @@ iD.Map = function(context) { }; } - if (all.length > 100000) { - editOff(); - } else { - surface - .call(points, graph, all, filter) - .call(vertices, graph, all, filter, extent, map.zoom()) - .call(lines, graph, all, filter) - .call(areas, graph, all, filter) - .call(midpoints, graph, all, filter, extent) - .call(labels, graph, all, filter, dimensions, !difference); - } + surface + .call(points, graph, all, filter) + .call(vertices, graph, all, filter, extent, map.zoom()) + .call(lines, graph, all, filter) + .call(areas, graph, all, filter) + .call(midpoints, graph, all, filter, extent) + .call(labels, graph, all, filter, dimensions, !difference); + dispatch.drawn(map); }