This commit is contained in:
John Firebaugh
2013-01-11 07:09:07 -08:00
parent 6aa43f44d0
commit 68a430cf70
+5 -5
View File
@@ -58,7 +58,7 @@ iD.Map = function() {
function drawVector(difference) {
if (surface.style(transformProp) != 'none') return;
var filter, all, ways = [], lines = [], areas = [], points = [], vertices = [],
var filter, all,
extent = map.extent(),
graph = history.graph();
@@ -84,8 +84,10 @@ iD.Map = function() {
filter = function(d) { return d.accuracy ? d.way in only : d.id in only; };
}
if (all.length > 10000) return editOff();
else editOn();
if (all.length > 10000) {
editOff();
return;
}
surface
.call(iD.svg.Points(), graph, all, filter, projection)
@@ -99,8 +101,6 @@ iD.Map = function() {
surface.selectAll('.layer-g *').remove();
}
function editOn() { }
function connectionLoad(err, result) {
history.merge(result);
redraw(Object.keys(result.entities));