mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 13:59:27 +02:00
+12
-4
@@ -32,10 +32,6 @@ iD.Map = function(context) {
|
||||
context.history()
|
||||
.on('change.map', redraw);
|
||||
|
||||
context.on('select.map', function() {
|
||||
redraw();
|
||||
});
|
||||
|
||||
selection.call(zoom);
|
||||
|
||||
supersurface = selection.append('div')
|
||||
@@ -78,6 +74,18 @@ iD.Map = function(context) {
|
||||
}
|
||||
});
|
||||
|
||||
context.on('select.map', function() {
|
||||
if (map.editable() && !transformed) {
|
||||
var all = context.intersects(map.extent()),
|
||||
filter = d3.functor(true),
|
||||
extent = map.extent(),
|
||||
graph = context.graph();
|
||||
surface.call(vertices, graph, all, filter, map.zoom());
|
||||
surface.call(midpoints, graph, all, filter, extent);
|
||||
dispatch.drawn(map);
|
||||
}
|
||||
});
|
||||
|
||||
map.size(selection.size());
|
||||
map.surface = surface;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user