Fix vertex rendering

This commit is contained in:
John Firebaugh
2013-04-25 15:43:16 -07:00
parent 4e50f39f7f
commit 86988a09a3
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ iD.Map = function(context) {
} else {
surface
.call(points, graph, all, filter)
.call(vertices, graph, all, map.zoom())
.call(vertices, graph, all, filter, map.zoom())
.call(lines, graph, all, filter, dimensions)
.call(areas, graph, all, filter)
.call(midpoints, graph, all, filter, extent)
+2 -1
View File
@@ -145,7 +145,7 @@ iD.svg.Vertices = function(projection, context) {
.remove();
}
function drawVertices(surface, graph, entities, zoom) {
function drawVertices(surface, graph, entities, filter, zoom) {
var selected = siblingAndChildVertices(context.selection(), graph),
vertices = [];
@@ -163,6 +163,7 @@ iD.svg.Vertices = function(projection, context) {
}
surface.select('.layer-hit').selectAll('g.vertex.vertex-persistent')
.filter(filter)
.data(vertices, iD.Entity.key)
.call(draw, graph, zoom)
.classed('vertex-persistent', true);