mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Allow selecting a relation
This commit is contained in:
@@ -2637,7 +2637,8 @@
|
||||
"point",
|
||||
"vertex",
|
||||
"line",
|
||||
"area"
|
||||
"area",
|
||||
"relation"
|
||||
],
|
||||
"fields": []
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Other",
|
||||
"tags": {},
|
||||
"geometry": ["point", "vertex", "line", "area"],
|
||||
"geometry": ["point", "vertex", "line", "area", "relation"],
|
||||
"fields": []
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["point", "vertex", "line", "area"]
|
||||
"enum": ["point", "vertex", "line", "area", "relation"]
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user