| 3 | | = JOSMプリセット = |
| | 7 | = プリセットとは = |
| | 8 | JOSMの**プリセット**は、OpenStreetMapで一般的なオブジェクトタイプにタグを付けるメニュー駆動のショートカットです。一度に1つまたは複数のオブジェクトを編集し、それらのオブジェクトに追加する可能性のある追加のキーと値を提案し、手でキーと値を入力する必要がなくなります。 |
| | 9 | |
| | 10 | JOSMには3種類のプリセットが用意されています。これらの項目を追加または削除するには、JOSMを再起動する必要があります。 |
| | 11 | 1. [https://josm.openstreetmap.de/browser/trunk/data/defaultpresets.xml defaultpresets.xml]で定義されている**Internal Preset**リストは、JOSM[https://josm.openstreetmap.de/wiki/Help/Menu/Presets プリセット]メニューで使用できるプリセットのデフォルトセットです。内部プリセットを変更するには、JOSMソースコードを変更する必要があります。 |
| | 12 | 2. JOSMのユーザーコミュニティが作成(および公開)している**利用可能なプリセット**、環境設定 > マップ設定 の「タグ付けプリセット」タブで有効にすることができます。これらの使用可能なプリセットの完全なリストと、作成する新しいプリセットを公開する方法は以下のとおりです。 |
| | 13 | 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 [wikitr: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 [wikitr:TaggingPresets TaggingPresets]. |
| | 14 | |
| | 15 | = JOSMで利用可能なプリセット = |
| 7 | | == インストール == |
| 8 | | 上記の一覧に含まれているプリセットについては、JOSMの設定の[wiki:/Ja:Help/Preferences/Map マップ設定]から選択して有効化できます。 |
| | 21 | === JOSM wiki Available preset (preferred method) === |
| | 22 | * In order to add a new wiki based preset, simply create a new wiki page similar to the [#List existing wiki presets]. |
| | 23 | * 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/`.) |
| | 24 | * click 'create this page' |
| | 25 | * add content similar to existing preset wikis, e.g. [wikitr:Presets/OneClick] |
| | 26 | * don't forget to enclose your preset code by a code block (`#!preset` needs to be on a new line after `{{{`): |
| | 27 | * `{{{` |
| | 28 | * `#!preset` |
| | 29 | * ... |
| | 30 | * `}}}` |
| | 31 | * save the wiki page |
| | 32 | * after a few minutes the new wiki preset will show up in the list and in JOSM automatically |
| | 33 | * for automatic version adjustment you have to use at least one of the two variables: |
| | 34 | * {{{[[revision]]}}} - is the latest version number of the wiki page |
| | 35 | * {{{[[date]]}}} - is the date of the last edit |
| | 36 | * recommended usage: {{{"1.[[revision]]_[[date]]"}}} (converts to e.g. {{{1.13_2014-02-24}}}) |
| | 37 | |
| | 38 | === Externally hosted Available preset === |
| | 39 | * A new externally hosted preset URLs can be published by editing [[PresetsSource|this page]]. |
| | 40 | * **注意**: ファイル拡張子(e.g. *.mapcss, *.xml, *.zip, *.php)の付いたURLのみサポートされます。 |
| | 41 | |
| | 42 | JOSM wiki を使ってスタイルやプリセットを作る方法とその際の添付ファイルやアイコンの扱いについては [wikitr:Styles#CreateStyle] を参照してください。 |
| | 43 | |
| | 44 | == Updating Available presets in JOSM == |
| | 45 | 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: |
| | 46 | * Make sure [wikitr:Help/ExpertMode Expert Mode] is enabled |
| | 47 | * Open the [wikitr:Help/Action/Preferences Preferences] |
| | 48 | * Open the [wikitr:Help/Preferences/Advanced Advanced Preferences] |
| | 49 | * Search for keys starting with: `mirror.https://josm.openstreetmap.de/josmfile?page_Presets/` (or `mirror.` for other external sources) |
| | 50 | * Select the preset you want to update |
| | 51 | * Click on Reset at the bottom of the window |
| | 52 | * Click on OK to save the changes (and to close the preference window) |
| | 53 | * Restart JOSM |
| 11 | | == 新しいプリセットの作成 == |
| 12 | | 自分のファイルを作りたい場合、詳しくは[wiki:TaggingPresets] か [source:trunk/data/defaultpresets.xml 標準プリセット]を見てください。 |
| 13 | | * 外部に置いた新しいプリセットのURLは[wiki:Presets Presets(英)]に記入することができます。 |
| 14 | | * [#List 以下]の一覧にある既存のページと同じようにページを作成することによって、wikiベースのプリセットを作ることもできます。 |
| 15 | | * **注意**: ファイル拡張子(e.g. *.mapcss, *.xml, *.zip, *.php)の付いたURLのみサポートされます。 |
| 16 | | |
| 17 | | JOSM wiki を使ってスタイルやプリセットを作る方法とその際の添付ファイルの扱いについては [wiki:Styles#CreateStyle] を参照してください。 |
| 18 | | |
| 19 | | |
| 20 | | == JOSM wiki で管理されているプリセット ==#List |
| | 56 | == JOSM wiki で管理されている有効なプリセット ==#List |