Changes between Version 167 and Version 174 of Styles
- Timestamp:
- (multiple changes)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles
v167 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]. … … 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 … … 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 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].) … … 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. … … 127 130 128 131 == Styles managed in JOSM wiki == 129 [[TitleIndex(Styles/)]] 132 [[TitleIndexTr(Styles/)]] 130 133 131 134
