Permalink
Browse files

Don't try to select non-multipolygon relations

  • Loading branch information...
1 parent d573d42 commit a4d7b20027f7fac812f7f09e110cb0b1b9de778f @ansis ansis committed Apr 2, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 js/id/modes/select.js
View
@@ -4,6 +4,13 @@ iD.modes.Select = function(context, selection, initial) {
button: 'browse'
};
+ // Selecting non-multipolygon relations is not supported
+ selection = selection.filter(function(d) {
+ return context.entity(d).geometry(context.graph()) !== 'relation';
+ });
+
+ if (!selection.length) return iD.modes.Browse(context);
+
var inspector = iD.ui.Inspector(context, singular()),
keybinding = d3.keybinding('select'),
timeout = null,

0 comments on commit a4d7b20

Please sign in to comment.