''If you want to learn installation steps for presets, see [Help/Preferences/Map#TaggingPresets "Tagging Presets" tab in Preferences > Map Settings]''[[br]] ''If you want to extend presets with your own see - [wiki:TaggingPresets TaggingPresets]''[[br]] ''If you want to publish a new item to the list below - [#PublishanewAvailablepresetsitem follow the instructions below the list]'' [[TranslatedPages]] [[PageOutline(1-10,Table of contents)]] = What are presets? = **Presets** in JOSM are menu-driven shortcuts to tag common object types in OpenStreetMap. They provide you with a user friendly interface to edit one or more objects at a time, suggest additional keys and values you may wish to add to those objects, and most importantly, prevent you from having to enter keys and values by hand. There are three types of Presets available to you in JOSM. Adding or removing any of these items requires restarting JOSM. 1. The **Internal Preset** list, defined in [https://josm.openstreetmap.de/browser/trunk/data/defaultpresets.xml defaultpresets.xml], is the default set of presets available in the JOSM [https://josm.openstreetmap.de/wiki/Help/Menu/Presets Presets] menu. Changes to the Internal Presets requires modification of the JOSM source code. 2. JOSM user-community created (and published) **Available presets**, which can be enabled through the [Help/Preferences/Map#TaggingPresets "Tagging Presets" tab in Preferences > Map Settings]. The full list of these Available presets, and how to publish a new one you create, appears below. 3. **Custom Tagging Presets** files, for cases where you want to use customized Presets but they are not published to JOSM as an Available preset. Customized presets can be added through the [Help/Preferences/Map#TaggingPresets "Tagging Presets" tab in Preferences > Map Settings] menu, either by URL, or by filename on your local filesystem. The format of a Custom Tagging Presets .xml file appears at [wiki:TaggingPresets TaggingPresets]. = JOSM Available presets = [[Styles(en|presets|short description|author|description|version|More details)]] == Publish a new Available presets item == See [wiki:TaggingPresets] for the syntax of customized preset files. Be sure to validate a preset file before publishing it! {{{ #!comment Note for translators: - The reference below to change the source of this page should be modified, so it tells the reader to modify the English page. }}} === JOSM wiki Available preset (preferred method) === * In order to add a new wiki based preset, simply create a new wiki page similar to the [#List existing wiki presets]. * i.e. go to https://josm.openstreetmap.de/wiki/Presets/MyPresetName (Change the URL so it matches the name of your preset. Change only the last part after `...Presets/`.) * click 'create this page' * add content similar to existing preset wikis, e.g. [wiki:Presets/OneClick] * don't forget to enclose your preset code by a code block (`#!preset` needs to be on a new line after `{{{`): * `{{{` * `#!preset` * ... * `}}}` * save the wiki page * after a few minutes the new wiki preset will show up in the list and in JOSM automatically * for automatic version adjustment you have to use at least one of the two variables: * {{{[[revision]]}}} - is the latest version number of the wiki page * {{{[[date]]}}} - is the date of the last edit * recommended usage: {{{"1.[[revision]]_[[date]]"}}} (converts to e.g. {{{1.13_2014-02-24}}}) === Externally hosted Available preset === * A new externally hosted preset URLs can be published by editing [[PresetsSource|this page]]. * **Note**: Only URLs with file-extension (e.g. *.mapcss, *.xml, *.zip, *.php) are supported. See [wiki:Styles#CreateStyle] for a description how the JOSM wiki helps to create own styles or presets and how attached files and icons are handled. == Updating Available presets in JOSM == Once an Available preset is published, it can take up to 10 days until the item appears in JOSM automatically. To immediately force an update you can perform the following steps: * Make sure [wiki:Help/ExpertMode Expert Mode] is enabled * Open the [wiki:Help/Action/Preferences Preferences] * Open the [wiki:Help/Preferences/Advanced Advanced Preferences] * Search for keys starting with: `mirror.https://josm.openstreetmap.de/josmfile?page_Presets/` (or `mirror.` for other external sources) * Select the preset you want to update * Click on Reset at the bottom of the window * Click on OK to save the changes (and to close the preference window) * Restart JOSM == Available presets managed in the JOSM wiki ==#List [[TitleIndex(Presets/)]] ---- Back to [wiki:/Help main help][[BR]] Back to [wiki:Help/Menu/Presets Presets menu]