You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -558,11 +558,14 @@ The user can pick from any of the options, or type their own value.
558
558
559
559
The `strings` object contains values that the field wants to be translated on Transifex.
560
560
561
-
[Combo field types](#combodropdown-fields) can accept key-label pairs in the `options`value of the `strings` property.
561
+
[Combo field types](#combodropdown-fields) can accept custom translations for `options`values via the `strings` property.
562
562
These values populate the `options` property if it isn't otherwise specified.
563
563
If `autoSuggestions` is `true` (as per default), then raw and labeled values might be mixed
564
564
in the dropdown suggestions.
565
565
566
+
The options can either be a string or `{"title": "…", "description": "…"}` object where the description is shown on mouse over
567
+
in iD to give additional context on a value ([Example](https://github.com/openstreetmap/id-tagging-schema/blob/main/data/fields/parking.json)).
568
+
566
569
```js
567
570
{
568
571
"key":"smoothness",
@@ -584,6 +587,20 @@ in the dropdown suggestions.
584
587
}
585
588
```
586
589
590
+
```js
591
+
//…
592
+
"strings": {
593
+
"options": {
594
+
"excellent": {
595
+
"title":"Thin Rollers: rollerblade, skateboard",
596
+
"description":"As-new asphalt or concrete, smooth paving stones with seamless connections, etc."
597
+
},
598
+
//…
599
+
}
600
+
}
601
+
//–
602
+
```
603
+
587
604
[Checkbox field tyes](#checkboxes) use the options keys to specify the values of the OSM tag corresponding
588
605
to the different states of the checkbox input element, in the following order:
589
606
1. fields of type `check`: _unset state_ (must use the option `undefined`), _checked state_,
0 commit comments