mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
Show vertices of way being drawn (fixes #1367)
This commit is contained in:
@@ -107,7 +107,7 @@ window.iD = function () {
|
||||
};
|
||||
|
||||
context.selection = function() {
|
||||
if (mode && mode.id === 'select') {
|
||||
if (mode && mode.selection) {
|
||||
return mode.selection();
|
||||
} else {
|
||||
return [];
|
||||
|
||||
@@ -31,5 +31,9 @@ iD.modes.DrawArea = function(context, wayId, baseGraph) {
|
||||
context.uninstall(behavior);
|
||||
};
|
||||
|
||||
mode.selection = function() {
|
||||
return [wayId];
|
||||
};
|
||||
|
||||
return mode;
|
||||
};
|
||||
|
||||
@@ -31,5 +31,9 @@ iD.modes.DrawLine = function(context, wayId, direction, baseGraph) {
|
||||
context.uninstall(behavior);
|
||||
};
|
||||
|
||||
mode.selection = function() {
|
||||
return [wayId];
|
||||
};
|
||||
|
||||
return mode;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user