Changes between Version 144 and Version 145 of Styles
- Timestamp:
- 2019-02-24T08:34:00+01:00 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles
v144 v145 3 3 = JOSM Map Styles = 4 4 [[Image(source:trunk/images/dialogs/mapstyle.svg,middle,margin-right=20)]] 5 The JOSM [ [Help/MapView|map display]] can be easily customized with different styles. Many styles are included with JOSM by default.5 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 7 There are ''base styles'' (e.g. [source:trunk/styles/standard/elemstyles.mapcss JOSM standard] or [source:trunk/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. … … 14 14 15 15 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 16 * in the [Help/Dialog/MapPaint map paint style dialog] or 17 * in the [Help/Menu/View "View" menu] ( → "Map paint styles") or 18 * (less comfortable)in the Map Paint Styles Preferences (see section below)16 * in the [wikitr:/Help/Dialog/MapPaint map paint style dialog] or 17 * in the [wikitr:/Help/Menu/View "View" menu] ( → "Map paint styles") or 18 * in the Map Paint Styles Preferences (see section below) 19 19 20 20 Note that, unless you are working with add-on styles, likely you want to have only one style ☑ checked at a time. … … 24 24 25 25 ''Instructions:'' 26 1. open the [Help/Preferences/Map#MapPaintStyles Map PaintStyles Preferences]by either27 * clickingthe [[Image(source:trunk/images/dialogs/mappaintpreference.png,middle)]] [Help/Dialog/MapPaint#MapStyleSettings Settings] button in the map style dialog (shown in the animation) or28 * via [Help/Menu/View "View"menu] →"Map paint styles" → "Map paint preferences"or29 * (less comfortable)via the general preferenceswindow ([Help/Menu/Edit Menu Edit] → [Help/Action/Preferences Preferences] → [[Image(source:trunk/images/preferences/map.png,20,middle)]] [Help/Preferences/Map Map Settings] (3rd button on the left) → Map Paint Styles (2nd tab))30 1. selecta style in the list of"available styles" (left side)31 1. activate it by clicking the [[Image(source:trunk/images/preferences/activate-right.png,middle)]] blue right arrow button(in the centre)32 1. exit and confirm by clicking the OK button26 1. Open the [wikitr:/Help/Preferences/Map#MapPaintStyles Map Paint preferences] 27 * directly from the in the header of the Map Paint Styles panel with the [[Image(source:trunk/images/dialogs/mappaintpreference.png,middle,link=)]] [wikitr:/Help/Dialog/MapPaint#MapStyleSettings Preferences] button in the panles header 28 * via [wikitr:/Help/Menu/View View menu] → ''Map paint styles'' → ''Map paint preferences'' or 29 * via the general preferences dialog [wikitr:/Help/Menu/Edit Menu Edit] → [wikitr:/Help/Action/Preferences Preferences] → [[Image(source:trunk/images/preferences/map.png,20,middle,link=)]] [wikitr:/Help/Preferences/Map Map Settings] (3rd button on the left) → Map Paint Styles (2nd tab)) 30 1. Choose a style in the list of ''Available styles'' 31 1. Activate it by clicking the [[Image(source:trunk/images/preferences/activate-right.png,middle)]] blue right arrow button between the lists. 32 1. Exit and confirm by clicking the OK button 33 33 34 ''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 [wiki :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".34 ''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". 35 35 36 36 ==== Adding own styles ==== … … 44 44 You don't like the standard style? Change it to your own liking: 45 45 46 * In the [Help/Dialog/MapPaint map paint style dialog], right click one of the styles and select [[Image(source:/trunk/images/copy.svg,middle)]] "save as...". A copy will be added to the list of styles. You can open the file in a text editor and reload after doing some changes. 46 * In the [wikitr:/Help/Dialog/MapPaint map paint style dialog], right click one of the styles and select [[Image(source:/trunk/images/copy.svg,middle)]] "save as...". A copy will be added to the list of styles. You can open the file in a text editor and reload after doing some changes. 47 47 * Or create a style from scratch and add it in the JOSM mappaint preferences. 48 48 49 49 JOSM supports styles in the MapCSS format. It is a style language similar to [https://en.wikipedia.org/wiki/Cascading_Style_Sheets CSS] originally developed for Potlatch 2. 50 50 * General information can be found in the [osmwiki:Category:MapCSS osm wiki]. 51 * A [wiki :Help/Styles/MapCSSTutorial Short tutorial] should get you started.52 * The [wiki :Help/Styles/MapCSSImplementation JOSM implementation reference] lists the supported features in more detail.51 * A [wikitr:/Help/Styles/MapCSSTutorial Short tutorial] should get you started. 52 * The [wikitr:/Help/Styles/MapCSSImplementation JOSM implementation reference] lists the supported features in more detail. 53 53 54 54 == Make your style available to other users == … … 76 76 * Icons distributed with JOSM can be entered directly with the path (relative to JOSM's internal image directory). 77 77 * Use a path relative to your local style file. (This works only for Styles, not for Presets.) 78 * Use a path relative to a directory specified at the bottom in the [wiki :Help/Preferences/Map#MapPaintStyles Styles preferences page] or [wiki:Help/Preferences/Map#TaggingPresets Presets preferences page].)78 * 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].) 79 79 * New icons can be directly referenced using a http-link. These are downloaded and cached internally. 80 80 * zip files are supported too. … … 85 85 * Example for PNG: {{{data:image/png;base64,...databytes...}}} 86 86 * Example for SVG: {{{data:image/svg+xml;base64,...databytes...}}} 87 * [wiki :Help/Base64 More information] about {{{data:image/...}}} in JOSM.87 * [wikitr:/Help/Base64 More information] about {{{data:image/...}}} in JOSM. 88 88 * When the JOSM wiki is used for designing of new styles you have some additional options: 89 89 * Each file attached to the wiki page is automatically included in the zip file downloaded by JOSM. … … 101 101 == Updating styles in JOSM == 102 102 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: 103 * Open the [wiki :Help/Action/Preferences Preferences]104 * Make sure [wiki :Help/ExpertMode ExpertMode] is enabled105 * Open the [wiki :Help/Preferences/Advanced Advanced Preferences]103 * Open the [wikitr:/Help/Action/Preferences Preferences] 104 * Make sure [wikitr:/Help/ExpertMode Expert view] is enabled 105 * Open the [wikitr:/Help/Preferences/Advanced Advanced Preferences] 106 106 * Search for keys starting with: `mirror.https://josm.openstreetmap.de/josmfile?page_Styles/` (or `mirror.` for other external sources) 107 107 * Select the style you want to update … … 111 111 112 112 To check the version of the style in JOSM do the following steps 113 * Open the [wiki :Help/Dialog/MapPaint Map Paint Styles Dialog]113 * Open the [wikitr:/Help/Dialog/MapPaint Map Paint Styles Dialog] 114 114 * Right click on a style 115 115 * Choose Info … … 122 122 123 123 == Rendering == 124 Mappaint renders the map data so it looks much more like a map (colors, icons, annotations, ...) - compared to the JOSM wireframemode.124 Mappaint renders the map data so it looks much more like a map (colors, icons, annotations, ...) - compared to the JOSM Wireframe view. 125 125 126 126 === Nodes === … … 143 143 144 144 == Advanced Preferences == 145 Some styles may have options. They are available via a right click (context menu) on the style's entry inside the [Help/Dialog/MapPaint map paint style dialog] window. E.g. JOSM's current default map style (MapCSS) has the option to display nodes at low zoom levels "less obtrusive" (enabled by default). 145 Some styles may have options. They are available via a right click (context menu) on the style's entry inside the [wikitr:/Help/Dialog/MapPaint map paint style dialog] window. E.g. JOSM's current default map style (MapCSS) has the option to display nodes at low zoom levels "less obtrusive" (enabled by default). 146 146 147 147 In addition, you can use the following hidden preferences: … … 168 168 169 169 ---- 170 Back to [wiki :/Help main help]170 Back to [wikitr://Help Main help]
