= Tagging Presets =
Since revision 117, Josm supports distributed tagging presets (formerly known as "annotation presets"). This is a XML config file that describes a GUI for entering tags (or properties, annotations, sometimes called map features). The XML files can be placed anywhere in the web or at the users local file system.
= Setup =
Every user can choose to add any url (or filename) into his preferences. An example URL is
http://ostertag.name/osm/annotations/uk-highway.xml (a file on ostertag.name). Alternatively there are some larger files checked in here:
http://trac.openstreetmap.org/browser/applications/editors/josm/annotation_presets
The image on the right shows an example of some urls (these URLs were since moved though)
[[Image(josm-preferences.png)]]
After the sources are specified (and after a restart), the tagging presets can be selected from the uppermost combo box in the properties dialog.
[[Image(josm-tagging-presets.png)]]
I plan to include some tagging preset files which are good looking, clean and usable for general purpose to ship with the JOSM code. (Read this as: "I am awaiting your files!" ;-) ).
In the lang-de plugin, a basic tagging preset for typical german tagging is included.
== Example ==
Here is another example of how it looks like:
[[Image(tagging_screenshot.png)]]
And this is the code that created the example :
{{{
}}}
== XML Format description ==
The tagging preset description is in a very simple XML format. The format is not validated.
=== Tags ===
The following tags are used:
''''''::
Has to be the main tag of the file. No Attributes are recognized. The old tag "annotations" is still possible but deprecated.
''''''::
Every item is one annotation set to select from. ''name'', ''icon'' and ''type'' are optional attribute.
'''