diff --git a/js/id/renderer/map.js b/js/id/renderer/map.js index 6e8205f88..7b8abeb1d 100644 --- a/js/id/renderer/map.js +++ b/js/id/renderer/map.js @@ -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) diff --git a/js/id/svg/vertices.js b/js/id/svg/vertices.js index b270d3f77..075656af1 100644 --- a/js/id/svg/vertices.js +++ b/js/id/svg/vertices.js @@ -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);