mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-22 13:44:13 +00:00
Send some more info to taginfo about how the tags are used
(closes #5536) We now include in the description: - 🄵 if it's a field - 🄿 if it's a preset - '(unsearchable)' if it's that
This commit is contained in:
@@ -339,7 +339,8 @@ function generateTaginfo(presets, fields) {
|
||||
tag.value = preset.tags[last];
|
||||
}
|
||||
if (preset.name) {
|
||||
tag.description = [ preset.name ];
|
||||
var legacy = (preset.searchable === false) ? ' (unsearchable)' : '';
|
||||
tag.description = [ '🄿 ' + preset.name + legacy ];
|
||||
}
|
||||
if (preset.geometry) {
|
||||
setObjectType(tag, preset);
|
||||
@@ -373,14 +374,14 @@ function generateTaginfo(presets, fields) {
|
||||
if (value === 'undefined' || value === '*' || value === '') return;
|
||||
var tag = { key: key, value: value };
|
||||
if (field.label) {
|
||||
tag.description = [ field.label ];
|
||||
tag.description = [ '🄵 ' + field.label ];
|
||||
}
|
||||
coalesceTags(taginfo, tag);
|
||||
});
|
||||
} else {
|
||||
var tag = { key: key };
|
||||
if (field.label) {
|
||||
tag.description = [ field.label ];
|
||||
tag.description = [ '🄵 ' + field.label ];
|
||||
}
|
||||
coalesceTags(taginfo, tag);
|
||||
}
|
||||
|
||||
3302
data/taginfo.json
3302
data/taginfo.json
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user