[josm-dev] new confirmation dialog for presets

Dirk Stöcker openstreetmap at dstoecker.de
Sat Sep 13 09:55:48 UTC 2014


On Sat, 13 Sep 2014, Malcolm Herring wrote:

> There is a conflict here. There are circumstances where a confirmation dialog 
> is wanted by the preset author - this is when there are <label> and/or <link> 
> that are required to be displayed.
>
> Maybe a solution is to auto-detect this situation - if there are only <key> 
> elements, then the tags are set without confirmation, but if there are also 
> <label> or <link> elements, then a confirmation is required. Maybe also in 
> the <item> header, a confirm="yes/no/auto" parameter might be useful.
>
> See http://josm.openstreetmap.de/ticket/10499

There is no need for any "confirm" tag. It's very simply: If the preset 
contains anything to display, then it is displayed. If not, then not.

The regression fix in above bug simply is that labels and links erroneous
have been detected as nothing. This is fixed now again as it was before.

One-Click presets are there since 4 years using this method:
https://josm.openstreetmap.de/wiki/Presets/OneClick

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)



More information about the josm-dev mailing list