mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-28 10:51:45 +02:00
Automatically select matching preset
This commit is contained in:
@@ -101,6 +101,13 @@ iD.ui.inspector = function() {
|
||||
inspectorbody.append('div')
|
||||
.attr('class', 'inspector-buttons pad1 fillD')
|
||||
.call(drawButtons);
|
||||
|
||||
var presetMatch = presetData.matchTags(entity);
|
||||
if (presetMatch) {
|
||||
inspectorpreset.call(presetUI
|
||||
.preset(presetMatch)
|
||||
.change(inspector.tags()));
|
||||
}
|
||||
}
|
||||
|
||||
function drawButtons(selection) {
|
||||
|
||||
Reference in New Issue
Block a user