Changes between Version 134 and Version 135 of Styles
- Timestamp:
- 2016-09-26T15:23:25+02:00 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles
v134 v135 5 5 The JOSM [[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/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.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. 8 8 9 Further customization is possible via [ [#AdvancedPreferences|style options]] or by [[#CreateStyle|creating your own style]].9 Further customization is possible via [#AdvancedPreferences style options] or by [#CreateStyle creating your own style]. 10 10 11 11 == Choose styles ==#ChooseStyles … … 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]] or17 * in the [ [Help/Menu/View|"View" menu]] ( → "Map paint styles") or16 * in the [Help/Dialog/MapPaint map paint style dialog] or 17 * in the [Help/Menu/View "View" menu] ( → "Map paint styles") or 18 18 * (less comfortable) in the Map Paint Styles Preferences (see section below) 19 19 … … 25 25 ''Instructions:'' 26 26 1. open the [Help/Preferences/Map#MapPaintStyles Map Paint Styles Preferences] by either 27 * clicking the [[Image(source:trunk/images/dialogs/mappaintpreference.png )]] [[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 preferences window ([ [Help/Menu/Edit|Menu Edit]] → [[Help/Action/Preferences|Preferences]] → [[Image(source:trunk/images/preferences/map.png,15)]] [[Help/Preferences/Map|Map Settings]] (3rd button on the left) → Map Paint Styles (2nd tab))30 2. select a style in the list of "available styles" (left side)31 3. activate it by clicking the [[Image(source:trunk/images/preferences/activate-right.png)]] blue right arrow button (in the centre)32 4. exit and confirm by clicking the OK button27 * clicking the [[Image(source:trunk/images/dialogs/mappaintpreference.png,middle)]] [Help/Dialog/MapPaint#MapStyleSettings Settings] button in the map style dialog (shown in the animation) or 28 * via [Help/Menu/View "View" menu] → "Map paint styles" → "Map paint preferences" or 29 * (less comfortable) via the general preferences window ([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. select a 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 button 33 33 34 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". 35 35 36 36 ==== Adding own styles ==== 37 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 [[Image(source:trunk/images/dialogs/add.png)]] plus sign on the right and enter either path and filename or URL of your style file.37 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 [[Image(source:trunk/images/dialogs/add.png,middle)]] plus sign on the right and enter either path and filename or URL of your style file. 38 38 39 39 == Available styles list == … … 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.png)]]"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 [Help/Dialog/MapPaint map paint style dialog], right click one of the styles and select [[Image(source:/trunk/images/copy.png,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 [ [Help/Styles/MapCSSTutorial|Short tutorial]] should get you started.52 * The [ [Help/Styles/MapCSSImplementation|JOSM implementation reference]] lists the supported features in more detail.51 * A [Help/Styles/MapCSSTutorial Short tutorial]] should get you started. 52 * The [Help/Styles/MapCSSImplementation JOSM implementation reference]] lists the supported features in more detail. 53 53 54 54 == Make your style available to other users == … … 135 135 136 136 == Advanced Preferences == 137 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).137 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). 138 138 139 139 In addition, you can use the following hidden preferences:
