Allow selecting a relation

This commit is contained in:
John Firebaugh
2013-04-26 11:34:24 -07:00
parent a147496cc7
commit e5dd800aff
4 changed files with 4 additions and 10 deletions

View File

@@ -2637,7 +2637,8 @@
"point",
"vertex",
"line",
"area"
"area",
"relation"
],
"fields": []
},

View File

@@ -1,6 +1,6 @@
{
"name": "Other",
"tags": {},
"geometry": ["point", "vertex", "line", "area"],
"geometry": ["point", "vertex", "line", "area", "relation"],
"fields": []
}

View File

@@ -15,7 +15,7 @@
"uniqueItems": true,
"items": {
"type": "string",
"enum": ["point", "vertex", "line", "area"]
"enum": ["point", "vertex", "line", "area", "relation"]
},
"required": true
},

View File

@@ -4,13 +4,6 @@ iD.modes.Select = function(context, selection) {
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 keybinding = d3.keybinding('select'),
timeout = null,
behaviors = [