Changes between Version 161 and Version 174 of Styles
- Timestamp:
- (multiple changes)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles
v161 v174 5 5 [[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. 6 6 7 There are ''base styles'' (e.g. [source:/trunk/resources/styles/standard/elemstyles.mapcss JOSM standard] or [ source:/trunk/resources/styles/standard/potlatch2.mapcssPotlatch 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.7 There 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. 8 8 9 9 Further customization is possible via [#AdvancedPreferences style options] or by [#CreateStyle creating your own style]. … … 22 22 ''Instructions:'' 23 23 24 1. Open the [wikitr:/Help/Preferences/Map #MapPaintStylesMap Paint preferences]24 1. Open the [wikitr:/Help/Preferences/MapPaintPreference Map Paint Styles preferences] 25 25 * 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=)]] 26 26 * 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/MapMap 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] 28 28 1. Choose a style in the list of ''Available styles'' (left side) 29 29 1. Activate it by clicking the [[JOSMImage(preferences/activate-right)]] blue right arrow button between the lists. … … 57 57 a. press `Enter` after adjusting the name 58 58 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 }}} 63 65 1. for automatic version adjustment you have to use `[[revision]]_[[date]]` in your version variable: 64 66 * `[[revision]]` - is the latest version number of the wiki page … … 69 71 * '''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.) 70 72 * **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). 73 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). \\ 74 **Note**: The [/jenkins/job/JOSM-Integration/ JOSM-Integration test] will run on all styles and report problems. 72 75 73 76 == Icons ==#Icons … … 77 80 Icons can be tested with the [wikitr:/Styles/IconTester icon tester]. 78 81 79 === Icon handling === 82 === Icon handling === #Iconhandling 80 83 There are different forms to handle icons: 81 84 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]). 83 86 * 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].) 85 88 * New icons can be directly referenced using a https- or http-link. These are downloaded and cached internally. 86 89 * zip files are supported too. … … 92 95 * Example for SVG: `data:image/svg+xml;base64,...databytes...` 93 96 * [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: 95 98 * Each file attached to the wiki page is automatically included in the zip file downloaded by JOSM. 96 99 * If you don't want a file in the zip file, add the text **(NOZIP)** in the description of the attachment. 97 100 * 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. 98 102 99 103 == Translation == 100 104 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. 101 To create these files there exist scripts in the SVN directory [ osm:source:applications/editors/josm/i18n/ i18n].105 To create these files there exist scripts in the SVN directory [source:osm/applications/editors/josm/i18n/ i18n]. 102 106 See also [wikitr:/Translations#Software software translation section] in translation documentation. 103 107 104 108 == 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: 109 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 (#8933). To immediately force an update you can do the following steps: 106 110 * Open the [wikitr:/Help/Action/Preferences Preferences] 107 111 * Make sure [wikitr:/Help/ExpertMode Expert mode] is enabled … … 126 130 127 131 == Styles managed in JOSM wiki == 128 [[TitleIndex(Styles/)]] 132 [[TitleIndexTr(Styles/)]] 129 133 130 134
