mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-27 02:12:24 +02:00
Clean up
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user