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