Lasso only nodes for now (fixes #734)

Given the (lack of) operations available on mixed node/way
selections, this seems just as good as selecting contained
ways as well.
This commit is contained in:
John Firebaugh
2013-02-13 16:53:40 -08:00
parent e3d9d3a4c4
commit d7d3f174ae

View File

@@ -49,7 +49,9 @@ iD.behavior.Lasso = function(context) {
.on('mouseup.lasso', null);
if (d3.event.clientX !== pos[0] || d3.event.clientY !== pos[1]) {
var selected = context.graph().intersects(extent);
var selected = context.graph().intersects(extent).filter(function (entity) {
return entity.type === 'node';
});
if (selected.length) {
context.enter(iD.modes.Select(context, _.pluck(selected, 'id')));