Opened 5 years ago
Last modified 5 years ago
#19077 reopened enhancement
Presets: label suffix/unit at end of text input box
Reported by: | simon04 | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | preset unit suffix label i18n | Cc: | skyper |
Description
Attachments (3)
Change History (16)
by , 5 years ago
Attachment: | 2020-04-12-192637_348x313_scrot.png added |
---|
by , 5 years ago
Attachment: | 19077.patch added |
---|
follow-up: 2 comment:1 by , 5 years ago
Keywords: | i18n added |
---|---|
Milestone: | → 20.04 |
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 5 years ago
comment:3 by , 5 years ago
It is not so good for cases like maxspeed where you set no unit if kph but set the unit if mph.
comment:4 by , 5 years ago
I think about a combo for units right (for some languages left) of the value in order to choose the unit. For demanded units like in #11253 with an option to always include the unit otherwise omit the default unit (first position in the list) which should be the default setting.
follow-up: 6 comment:5 by , 5 years ago
Milestone: | 20.04 |
---|---|
Owner: | changed from | to
Status: | assigned → new |
I see a lot of trouble to get this feature done properly: unit conversion yes/no, splitting apart and joining tags, with/without space between value and unit, tags with multiple values (220kV;380kV
), expert users are annoyed because they have to use two separate input fields, …
I won't work on this feature in the foreseeable future.
comment:6 by , 5 years ago
comment:7 by , 5 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
If anyone is interested to work on this, feel free to reopen.
comment:8 by , 5 years ago
I have a new idea. It is less intrusive than the original solution and maybe easier to implement. Wikipedia plugin already does this on wikidata
keys:
So the idea is, to put the default unit next to the value. If an explicit unit is provided, there is no need to show anything. Because of this, it would work on combo keys. This can maybe be applied to MapCSS as well because a number without context doesn't mean anything.
I see possible problems with this approach. There are generic keys, like capacity
which used from parking slots to storage tanks. To show cubic metre for a storage tank first there should be information about the preset, that is not a parking slot, but a thing with volume (=cubic metre).
For default units, see https://wiki.openstreetmap.org/wiki/Map_Features/Units
What do you think?
by , 5 years ago
Attachment: | wikipedia_example.png added |
---|
the grey text is added by Wikipedia plugin
follow-up: 13 comment:9 by , 5 years ago
Milestone: | → 20.05 |
---|---|
Resolution: | wontfix |
Status: | closed → reopened |
@gaben, your suggestion is somewhat similar to comment:1. Still, there isn't a big advantage compared to what we're doing now – writing the default units in parentheses.
Let's reopen this ticket for some further discussion/evaluation.
comment:11 by , 5 years ago
Milestone: | 20.05old → 20.05 |
---|
comment:12 by , 5 years ago
Milestone: | 20.05 |
---|
comment:13 by , 5 years ago
@simon04: Yeah maybe, it depends. When someone doing QA, it is better to see all the information at once. Currently, to see those units what you mentioned, one should open the preset editor which is an unnecessary extra step in my opinion.
Presumably, we'd also need to support
<combo>
. Maybe we'd also need i18n.I'm not convinced that this feature is a big improvement – WONTFIX? Any thoughts?