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:
Bryan Housel
2018-11-30 12:12:40 -05:00
parent d177ab7fcf
commit f7c29a96ef
2 changed files with 1716 additions and 1593 deletions

View File

@@ -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);
}

File diff suppressed because it is too large Load Diff