Show vertices of way being drawn (fixes #1367)

This commit is contained in:
John Firebaugh
2013-04-24 10:24:35 -07:00
parent c50c3121d8
commit 965cfc65e8
3 changed files with 9 additions and 1 deletions

View File

@@ -107,7 +107,7 @@ window.iD = function () {
};
context.selection = function() {
if (mode && mode.id === 'select') {
if (mode && mode.selection) {
return mode.selection();
} else {
return [];

View File

@@ -31,5 +31,9 @@ iD.modes.DrawArea = function(context, wayId, baseGraph) {
context.uninstall(behavior);
};
mode.selection = function() {
return [wayId];
};
return mode;
};

View File

@@ -31,5 +31,9 @@ iD.modes.DrawLine = function(context, wayId, direction, baseGraph) {
context.uninstall(behavior);
};
mode.selection = function() {
return [wayId];
};
return mode;
};