Search:
Login
Preferences
Help/Guide
About Trac
Register
Forgot your password?
Wiki
Timeline
Changelog
Browse Source
View Tickets
New Ticket
Roadmap
Builds
Sonar
Search
Context Navigation
+0
Start Page
Index
History
Editing Ja:Styles
Adjust edit area height:
8
12
16
20
24
28
32
36
40
Edit side-by-side
[[TranslatedPages(revision=147,outdated=Translation is incomplete)]] [[PageOutline(2-10,目次)]] = JOSM マップスタイル = [[JOSMImage(dialogs/mapstyle,middle,margin-right=20)]] JOSMの[wikitr:/Help/MapView マップ表示]はスタイルを指定することでカスタマイズできます。多くのスタイルが既定でJOSMに含まれています。 それぞれの機能の広い範囲をカバーする''基本スタイル''(例えば、 [source:trunk/resources/styles/standard/elemstyles.mapcss JOSM standard] または [source:trunk/resources/styles/standard/potlatch2.mapcss Potlatch 2])があります。 より特別なトピックをカバーする''アドオンスタイル''と組み合わせることができます。下の[#Availablestyleslist 使用可能なスタイルリスト]をご覧ください。 [#AdvancedPreferences スタイルのオプション]や[#CreateStyle 独自のスタイルを作成]することで、さらにカスタマイズすることができます。 == スタイルの選択 ==#ChooseStyles JOSM has ''three lists'' of ''map styles:'' available styles (all styles from the style repository) → active styles (your favourites) → ☑ chosen styles (actually used for the map painting). JOSM comes with some styles being in the "active styles" list by default. You can choose styles from this list of "active styles" to be actually used for the map painting by clicking the check box (☑) at the desired style's line * in the [wikitr:/Help/Dialog/MapPaint map paint style dialog] or * in the [wikitr:/Help/Menu/View "View" menu] ( → "Map paint styles") or * in the Map Paint Styles Preferences (see section below) Note that, unless you are working with add-on styles, likely you want to have only one style ☑ checked at a time. === 他のスタイルを有効にする === [[Image(wiki:Styles:addstyle.gif, right, 250px, title=animation of how to activate and choose an example style)]] ''説明:'' 1. [wikitr:/Help/Preferences/Map#MapPaintStyles 地図表示スタイル]を開く * directly from the in the header of the Map Paint Styles panel with the [[JOSMImage(dialogs/mappaintpreference,middle,link=)]] [wikitr:/Help/Dialog/MapPaint#MapStyleSettings Preferences] button in the panles header * via [wikitr:/Help/Menu/View View menu] → ''Map paint styles'' → ''Map paint preferences'' or * via the general preferences dialog [wikitr:/Help/Menu/Edit Menu Edit] → [wikitr:/Help/Action/Preferences Preferences] → [[JOSMImage(preferences/map,20,middle,link=)]] [wikitr:/Help/Preferences/Map Map Settings] (3rd button on the left) → Map Paint Styles (2nd tab)) 1. Choose a style in the list of ''Available styles'' 1. Activate it by clicking the [[JOSMImage(preferences/activate-right,middle)]] blue right arrow button between the lists. 1. Exit and confirm by clicking the OK button ''Example:'' Let's assume that you want to add [osmwiki:Key:maxspeed maxspeed=*] tags to OSM, then you probably will make use of the style [wikitr:/Styles/Maxspeed Maxspeed] (which displays the value of maxspeed on roads with different colors). The screencast/animation on the right side (click to enlarge) shows how to add this style to your list of "active styles". ==== 独自スタイルを追加する ==== You can add own styles (from any URL/file) to the list of active styles – for example a style file which you have [#CreateStyle created yourself]. Just click the [[JOSMImage(dialogs/add,middle)]] plus sign on the right and enter either path and filename or URL of your style file. == 使用可能なスタイルリスト ==#Availablestyleslist [[Styles(ja|スタイル|概要|作者|説明|バージョン|詳細)]] == 独自スタイルの作成 ==#CreateStyle 標準のスタイルは気に入りませんか? 自分の好きなスタイルに変えてしまいましょう: * [wikitr:/Help/Dialog/MapPaint マップスタイルダイアログ]上でスタイルの一つを右クリックして[[JOSMImage(copy,middle,20)]]"名前を付けて保存..."を選択します。 スタイルのコピーが一覧に追加されます。 このスタイルのファイルはテキストエディタで開いて編集した後に再読み込みさせることができます。 * あるいは一からスタイルを作成してJOSMのマップ設定から追加することもできます。 JOSMではMapCSS フォーマットでスタイルを定義できます。 [https://ja.wikipedia.org/wiki/Cascading_Style_Sheets CSS]に似たスタイル定義言語で、元々はPotlatch 2用ですがマップスタイル用の標準を目指して開発されたものです。 * 全般的な情報は[osmwiki:Category:MapCSS osm wiki]に書かれています。 * [wikitr:/Help/Styles/MapCSSTutorial 短いチュートリアル]から始めることができます。 * [wikitr:/Help/Styles/MapCSSImplementation JOSM implementation reference]にはサポートされている機能の詳細が一覧で示されています。 異なるフォーマットのスタイルには互換性があり、同時に読み込むことが可能です。 == 作成したスタイルを公開する == * [[Styles/Modified]] のようなwikiページを作成します。 * don't forget to enclose your mappaint code by a code block (`#!style type="mapcss"` needs to be on a new line after `{{{`): * `{{{` * `#!style type="mapcss"` * ... * `}}}` * バージョン情報を自動的に照合するため、二つの内部変数を利用できます: * {{{[[revision]]}}} - wikiページの最新版のバージョン番号 * {{{[[date]]}}} - 最終更新日 * 推奨使用方法: {{{"1.[[revision]]_[[date]]"}}} (例えば{{{1.13_2014-02-24}}}のように変換されます) * **注意**: 大量の(アイコンの)外部リンクを追加することはスパムフィルタによって止められます。 可能ならwikiページにアイコンを添付してください([#Iconhandling 以下参照])。 * '''または''' このwikiページを編集して新しいスタイルファイルのURLをページ上部に追加します。 * **注意**: ファイル拡張子(例: *.mapcss, *.xml, *.xml, *.zip, *.php)の付いたURLのみサポートされます。 どちらの方法を使った場合も、数分後には自動的に上の一覧に表示されるようになります。 JOSMのマップ設定にも同様に表示されるようになります(リロードボタンをクリックします)。 == アイコン ==#Icons 拡張子 .png と .svg のファイルをサポートしています。 === アイコンの取り扱い === アイコンの取り扱いにはいくつかの方法があります: * JOSMと一緒に配布されているアイコンは、直接パス指定(JOSMの内部イメージディレクトリからの相対指定)することで参照することができます(JOSMの内部イメージディレクトリからの相対指定)。 * ローカルのスタイルファイルからの相対パス指定を利用できます。(これはプリセットではなくスタイルでのみ機能します。) * Use a path relative to a directory specified at the bottom in the [wikitr:/Help/Preferences/Map#MapPaintStyles Styles preferences page] or [wikitr:/Help/Preferences/Map#TaggingPresets Presets preferences page]. * HTTPリンクで新しいアイコンを直接参照できます。 アイコンはダウンロード後に内部にキャッシュされます。 * zip files are supported too. * zipファイルは少なくとも一つのmapcss(スタイル用)またはxml(プリセット用)の拡張子を持ったファイルを含んでいる必要があります。 * アイコン名とパスはzipディレクトリの最上位からの相対指定です。 * 複数のファイルを含む場合、ファイル名に"style"を入れておくのが望ましいです (スタイルとプリセットを一つのアーカイブにまとめることを可能にするため)。 * Inline encoding as described in [[http://tools.ietf.org/html/rfc2397|RFC 2397]] is supported too. * Example for PNG: {{{data:image/png;base64,...databytes...}}} * Example for SVG: {{{data:image/svg+xml;base64,...databytes...}}} * [wikitr:/Help/Base64 More information] about {{{data:image/...}}} in JOSM. * JOSM wikiを使って新しいスタイルをデザインする場合はさらにいくつかのオプションがあります: * wikiページに添付されたファイルは、JOSMがダウンロードするzipファイルに自動的に含められます。 * zipファイルに含めたくないファイルがある場合は、添付の説明欄に **(NOZIP)** の文字列を追加してください。 * zipファイルを添付して、その中身を(ダウンロードさせるzipに)含めたいときは、添付の説明欄に **(EXTRACT)** の文字列を追加してください。 == 翻訳 == Styles, Rules, Presets and Plugins use the same translation mechanism as JOSM core. The files must be delivered as Zip and contain a directory called `data` with the .lang files. To create these files there exist scripts in the SVN directory [source:osm/applications/editors/josm/i18n/ i18n]. See also [wikitr:/Translations#Software software translation section] in translation documentation. == JOSMでスタイルを更新する == Once a style was updated in the wiki (or another external source) it takes up to 10 days until the style gets updated in JOSM automatically. To immediately force an update you can do the following steps: * Open the [wikitr:/Help/Action/Preferences Preferences] * Make sure [wikitr:/Help/ExpertMode Expert mode] is enabled * Open the [wikitr:/Help/Preferences/Advanced Advanced Preferences] * Search for keys starting with: `mirror.https://josm.openstreetmap.de/josmfile?page_Styles/` (or `mirror.` for other external sources) * Select the style 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 To check the version of the style in JOSM do the following steps * Open the [wikitr:/Help/Dialog/MapPaint Map Paint Styles Dialog] * Right click on a style * Choose Info * Click on Source Tab * Search for `version:` at the beginning of the source code == JOSM wiki で管理しているスタイル == [[TitleIndex(Styles/)]] == レンダリング == mappaintはJOSMのワイヤフレームモードと比べてより地図らしい表示(色、アイコン、注記、...)で情報をレンダリングします。 === ノード === [osmwiki:JA:Map_Features マップの地物]のタグに対応するほとんどのノードには、それぞれに適したアイコンが表示されます。 例: {{{amenity=parking}}}に対して青字に白文字の"P"。 不足していたり不完全な場合に使われる特別なアイコンがあります: [[Image(wiki:Styles:Mappaint_no_icon.png)]] 不足しているアイコン[[br]] 全ての地物のアイコンはまだそろっていません。 例: ほとんどの{{{natural=*}}}タグに対応するアイコンはまだありません。 このような"不足しているアイコン"を見つけた場合は、タグに対応する16*16ピクセルの素敵なアイコンをぜひ作ってください。 作品を投稿するには[/newticket 新規チケット]をオープンして画像ファイルかzipファイルを添付してください。 [[Image(wiki:Styles:Mappaint_deprecated.png)]] 警告アイコン[[br]] かつて使われていたものの現在は利用すべきではないタグが使われているか、ノードには適さないタグが使われていることを示します (例: {{{highway=motorway}}}はノードには意味がありません)。 全ての非推奨タグにこのアイコンが表示されるわけではありません。 === ウェイ === 地物のページのタグに対応するほとんどのウェイには、個々の色や太さ、線のスタイル(例: 線路の破線)が設定されています。 === エリア === エリアは環状になったウェイです。 地物のページのタグに対応するほとんどのエリアは個々の色で塗りつぶされます(ある程度透過するようになっています)。 == 高度な設定 ==#AdvancedPreferences 一部のスタイルにはオプションがあります。これらは[wikitr:/Help/Dialog/MapPaint 地図描画スタイルダイアログ]ウィンドウ内のスタイルのエントリ上で右クリック(コンテキストメニュー)して利用できます。例えば、JOSMの現在の既定のマップスタイル(MapCSS)には、低ズームレベルで「目立たない」ノードを表示するオプションがあります(デフォルトで有効)。 追加で以下の非公開の設定を使うことができます: * {{{mappaint.fillalpha}}} * エリアの塗りつぶしに使われる”不透明度"です。 0(透明)から255(不透明)の間の整数で指定します。 デフォルト値は50です。 * {{{mappaint.fillareas}}} (show areas) * 10000000 (デフォルト値) - エリアは対応する色で塗りつぶされ、名前も表示されます * 0 - エリアは線で囲まれるだけで、名前も表示されません * その他の値 - エリアは対応する色で塗りつぶされます。 指定した値(メートル単位)以下のズームレベルでは名前も表示されます * {{{mappaint.showicons}}} * アイコンを表示するかどうかを指定します - {{{mappaint.fillareas}}} と同じ値です * {{{mappaint.shownames}}} * 名前を表示するかどうかを指定します - {{{mappaint.fillareas}}} と同じ値です * {{{mappaint.strokes}}} * ストロークで表示するか設定された線で表示するかを指定します - {{{mappaint.fillareas}}} と同じ値です * ~~{{{mappaint.useRealWidth}}}~~ * ~~true - ウェイを elemstyle.xml ファイルで指定された幅の大きさに従った現実のサイズで表示します~~ * ~~false (デフォルト) - ウェイをどのズームレベルでも同じ幅で表示します~~ * {{{mappaint.zoomLevelDisplay}}} * true - 各要素の表示・非表示はズームレベルに従います * false (デフォルト) - 全ての要素を表示します * {{{mappaint.fontsize}}} * mappaintのテキストサイズを指定します(デフォルト値は8) ---- [wikitr:/Help ヘルプ]に戻る
Note:
See
WikiFormatting
and
TracWiki
for help on editing wiki content.
Change information
Your email or username:
E-mail address and name can be saved in the
Preferences
Comment about this change (optional):
Note:
See
TracWiki
for help on using the wiki.