Changes between Version 161 and Version 174 of Styles


Ignore:
Timestamp:
(multiple changes)
Author:
(multiple changes)
Comment:
(multiple changes)

Legend:

Unmodified
Added
Removed
Modified
  • Styles

    v161 v174  
    55[[JOSMImage(dialogs/mapstyle,middle,margin-right=20,48,link=)]] The JOSM [wikitr:/Help/MapView map display] can be easily customized with different styles. Many styles are included with JOSM by default.
    66
    7 There are ''base styles'' (e.g. [source:/trunk/resources/styles/standard/elemstyles.mapcss JOSM standard] or [source:/trunk/resources/styles/standard/potlatch2.mapcss Potlatch 2]) that cover a wide range of features each. They can be combined with ''add-on styles'' that cover more special topics. See the [#Availablestyleslist available styles list] below.
     7There are ''base styles'' (e.g. [source:/trunk/resources/styles/standard/elemstyles.mapcss JOSM standard] or [wiki:/Styles/Potlatch2 Potlatch 2]) that cover a wide range of features each. They can be combined with ''add-on styles'' that cover more special topics. See the [#Availablestyleslist available styles list] below.
    88
    99Further customization is possible via [#AdvancedPreferences style options] or by [#CreateStyle creating your own style].
     
    2222''Instructions:''
    2323
    24 1. Open the [wikitr:/Help/Preferences/Map#MapPaintStyles Map Paint preferences]
     241. Open the [wikitr:/Help/Preferences/MapPaintPreference Map Paint Styles preferences]
    2525 * via the header of the Map Paint Styles panel with the [[JOSMImage(dialogs/mappaintpreference)]] [wikitr:/Help/Dialog/MapPaint#MapStyleSettings Preferences] button or [[Image(addstyle.gif,right,250px,title=animation of how to activate and choose an example style,margin=10,link=)]]
    2626 * via [wikitr:/Help/Menu/View View menu] → ''Map paint styles'' → ''Map paint preferences'' or
    27  * via the general preferences dialog [wikitr:/Help/Menu/Edit Menu Edit] → [wikitr:/Help/Action/Preferences Preferences] → [[JOSMImage(preferences/map,24,middle,link=)]] [wikitr:/Help/Preferences/Map Map Settings] (3rd button on the left) → Map Paint Styles (2nd tab))
     27 * via the general preferences dialog [wikitr:/Help/Menu/Edit Menu Edit] → [wikitr:/Help/Action/Preferences Preferences] → [[JOSMImage(dialogs/mapstyle,24,middle,link=)]] [wikitr:/Help/Preferences/MapPaintPreference Map Paint Styles]
    28281. Choose a style in the list of ''Available styles'' (left side)
    29291. Activate it by clicking the [[JOSMImage(preferences/activate-right)]] blue right arrow button between the lists.
     
    5757  a. press `Enter` after adjusting the name
    5858 1. don't forget to enclose your mappaint code by a code block (`#!style type="mapcss"` needs to be on a **new line** after `{{{`):
    59   1. `{{{`
    60   1. `#!style type="mapcss"`
    61   1. ...
    62   1. `}}}`
     59   {{{
     60   {{{
     61   #!style type="mapcss"`
     62   …
     63   }}}
     64   }}}
    6365 1. for automatic version adjustment you have to use `[[revision]]_[[date]]` in your version variable:
    6466  * `[[revision]]` - is the latest version number of the wiki page
     
    6971* '''or''' edit the page StylesSource and add URLs for new style files to the list at the top. (JOSM wiki based Styles (see above) is the preferred method.)
    7072 * **Note**: Only URLs with file-extension (e.g. *.mapcss, *.zip, *.php) are supported.
    71 In both cases, the new style will be automatically listed in the table above after a few minutes. Then it will also be available in the JOSM mappaint preferences (after clicking the reload button).
     73In both cases, the new style will be automatically listed in the table above after a few minutes. Then it will also be available in the JOSM mappaint preferences (after clicking the reload button). \\
     74**Note**: The [/jenkins/job/JOSM-Integration/ JOSM-Integration test] will run on all styles and report problems.
    7275
    7376== Icons ==#Icons
     
    7780Icons can be tested with the [wikitr:/Styles/IconTester icon tester].
    7881
    79 === Icon handling ===
     82=== Icon handling === #Iconhandling
    8083There are different forms to handle icons:
    8184
    82 * Icons distributed with JOSM can be entered directly with the path (relative to JOSM's internal image directory).
     85* Icons distributed with JOSM can be entered directly with the path (relative to JOSM's [source:/trunk/resources/images internal image directory]).
    8386* Use a path relative to your local style file. (This works only for Styles, not for Presets.)
    84 * 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].)
     87* Use a path relative to a directory specified at the bottom in the [wikitr:/Help/Preferences/MapPaintPreference Map Paint Styles preferences] or [wikitr:/Help/Preferences/TaggingPresetPreference Tagging Presets preferences].)
    8588* New icons can be directly referenced using a https- or http-link. These are downloaded and cached internally.
    8689* zip files are supported too.
     
    9295 * Example for SVG: `data:image/svg+xml;base64,...databytes...`
    9396 * [wikitr:/Help/Base64 More information] about `data:image/...` in JOSM.
    94 * When the JOSM wiki is used for designing of new styles you have some additional options:
     97* When the JOSM wiki is used for designing of new styles or presets you have some additional options:
    9598 * Each file attached to the wiki page is automatically included in the zip file downloaded by JOSM.
    9699 * If you don't want a file in the zip file, add the text **(NOZIP)** in the description of the attachment.
    97100 * If you add a zip file and want its contents included, you may add **(EXTRACT)** in the description of the attachment.
     101* Empty image paths are not allowed.
    98102
    99103== Translation ==
    100104Styles, 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.
    101 To create these files there exist scripts in the SVN directory [osm:source:applications/editors/josm/i18n/ i18n].
     105To create these files there exist scripts in the SVN directory [source:osm/applications/editors/josm/i18n/ i18n].
    102106See also [wikitr:/Translations#Software software translation section] in translation documentation.
    103107
    104108== Updating styles in JOSM ==
    105 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:
     109Once 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 (#8933). To immediately force an update you can do the following steps:
    106110* Open the [wikitr:/Help/Action/Preferences Preferences]
    107111* Make sure [wikitr:/Help/ExpertMode Expert mode] is enabled
     
    126130
    127131== Styles managed in JOSM wiki ==
    128 [[TitleIndex(Styles/)]]
     132[[TitleIndexTr(Styles/)]]
    129133
    130134