Opened 6 years ago
Last modified 3 years ago
#17324 new defect
Adding bridge preset to highways not working
Reported by: | anonymous | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
Steps to reproduce:
- Select a highway (eg. residential)
- Search for bridge in presets
- Apply bridge preset to the selected way
- Nothing happens
Attachments (0)
Change History (9)
comment:1 by , 6 years ago
follow-up: 3 comment:2 by , 6 years ago
With an untagged way the presets defaults to bridge=yes while with a tagged way you have to select what kind of bridge it is.
No idea if that is intended.
comment:3 by , 6 years ago
comment:4 by , 6 years ago
Replying to GerdP:
[...] with a tagged way you have to select what kind of bridge it is.
I see two possible solutions:
- solution: Gray out the apply button until something is changed in the preset editor (or whatever it called)
- solution: Use the same defaults (
bridge=yes
andlayer=1
) as with untagged ways or at leastbridge=yes
.
comment:5 by , 6 years ago
I've now learned that the behaviour depends on a preference setting:
taggingpreset.fill-default-for-tagged-primitives
This is false by default. In Expertmode you can change it to true to get what you want.
follow-ups: 7 8 comment:6 by , 6 years ago
The current behavior (ignoring defaults) is intended as users maybe do not expect that opening a preset from the Tags/Membership panel, changing nothing themself and closing with the apply preset button changes the object by adding tags. I can't find the ticket where Dirk explained that to me when I was confused about this ;)
comment:7 by , 6 years ago
Replying to GerdP:
I've now learned that the behaviour depends on a preference setting:
taggingpreset.fill-default-for-tagged-primitives
This is false by default. In Expertmode you can change it to true to get what you want.
Thanks, it's working. But I don't want to be selfish. It would be great if all JOSM users would know about this flag (or fixed the issue :)
Replying to Klumbumbus:
The current behavior (ignoring defaults) is intended as users maybe do not expect that opening a preset from the Tags/Membership panel, changing nothing themself and closing with the apply preset button changes the object by adding tags. I can't find the ticket where Dirk explained that to me when I was confused about this ;)
Oh okay, this way it makes sense. Please, not forget that the presets can bring forth by searching (default shortcut is F3). This way it's not acceptable, that apply button does nothing. Also, I think by searching most people would like to add new tags, not modifying them.
The scenario you described above can be easily solved by:
- Greying out the apply button until something is changed in the preset editor AND/OR
- Checking where that preset editor activity called from. If from Tags/Membership panel -> disable defaults, else no change (enable).
follow-up: 9 comment:8 by , 3 years ago
Replying to Klumbumbus:
The current behavior (ignoring defaults) is intended as users maybe do not expect that opening a preset from the Tags/Membership panel, changing nothing themself and closing with the apply preset button changes the object by adding tags. I can't find the ticket where Dirk explained that to me when I was confused about this ;)
Although it's working if you add the bridge preset to an untagged way.