Changes between Version 108 and Version 109 of Styles


Ignore:
Timestamp:
2014-12-13T16:49:50+01:00 (11 years ago)
Author:
aseerel4c26
Comment:

(major edit) explain more how to change the selected style, clearer structure, making this page more easy to understand. See https://blog.openstreetmap.org/2014/12/12/josm-new-logo/comment-page-1/#comment-113896

Legend:

Unmodified
Added
Removed
Modified
  • Styles

    v108 v109  
    88= JOSM Map Styles =
    99[[Image(source:trunk/images/dialogs/mapstyle.png,middle,margin-right=20)]]
    10 The JOSM map display can be customized with different styles.
     10The JOSM [[Help/MapView|map display]] can be easily customized with different styles. Many styles are included with JOSM by default. 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 [[#Available styles list]] below). Further customization is possible via style options, see section [[#AdvancedPreferences|section Advanced Preferences]].
    1111
     12== Choose styles ==#ChooseStyles
    1213
    13 == Choose Styles ==
    14 JOSM offers a preselection of styles, that can be turned on or off in the [[Help/Dialog/MapPaint|map style dialog]]. 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:
     14   ''State overview'' of a map style: available style → active style → ☑ chosen style (actually used for the map painting)
     15
     16JOSM comes with a set of 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
     17* in the [[Help/Dialog/MapPaint|map paint style dialog]] or
     18* in the [[Help/Menu/View|"View" menu]] ( → "Map paint styles") or
     19* (less comfortable) in the Map Paint Styles Preferences (see section below)
     20
     21Note that unless you are working with add-on styles, likely you want to have only one style ☑ checked at a time.
     22
     23==== Activating more styles ====
     24To add more styles to your list of "active styles"
     251. open the [Help/Preferences/Map#MapPaintStyles Map Paint Styles Preferences] by either
     26   * clicking the [[Image(source:trunk/images/dialogs/mappaintpreference.png)]] [[Help/Dialog/MapPaint#MapStyleSettings|Settings]] button in the map style dialog or via
     27   * [[Help/Menu/View|"View" menu]] ( → "Map paint styles" → "Map paint preferences") or
     28   * (less comfortable) via the general preferences window (Menu Edit → Preferences → [[Image(source:trunk/images/preferences/map.png,15)]] Map Settings (3rd button on the left) → Map Paint Styles (2nd tab))
     292. select a style in the (left) list of "available styles"
     303. activate it by clicking the [[Image(source:trunk/images/preferences/activate-right.png)]] blue right arrow button in the center
     314. exit and confirm by clicking the OK button
     32
     33Examples:   
     34* [https://help.openstreetmap.org/upfiles/josmmapstyles-selectold.png Screenshot showing how to activate the old (XML) JOSM default style]
     35* Let's assume that you're interested in sea maps, then you probably will make use of the style "SeaMap FreieTonne": Just highlight this entry in the "Available Styles" list by clicking on it and press the [[Image(source:trunk/images/preferences/activate-right.png)]] blue right arrow button in the center. Now it should be one of your "Active Styles". To actually use it you now need to choose it (check box ☑).
     36
     37''Further reading:'' Well, let's continue with advanced style usage! You already [[#CreateStyle|created your own style]]? 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.
     38
     39== Available styles list ==
    1540
    1641[[Styles(en|styles|short description|author|description|version|More details)]]
    17 
    18 To add more styles to your list, open the map style preferences by clicking the [[Image(source:trunk/images/dialogs/mappaintpreference.png)]] [[Help/Dialog/MapPaint#MapStyleSettings|Settings]] button in the map style dialog.
    19 
    20 ''(Alternatively you can navigate directly to the [Help/Preferences/Map#MapPaintStyles Map Paint Styles Preferences]: Edit -> Preferences -> [[Image(source:trunk/images/preferences/map.png,15)]] Map Settings (3rd button on the left) -> Map Paint Styles (2nd tab))''
    21 
    22 ''Example'':
    23  Let's assume that you're interested in sea maps, then you probably will make use of the style "SeaMap FreieTonne": Just highlight this entry in the "Available Styles" list by clicking on it and press the [[Image(source:trunk/images/preferences/activate-right.png)]] blue right arrow button in the center. Now it should be one of your "Active Styles". Well, let's continue with advanced style usage! You created your own style ([#CreateStyle see below])? 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.
    24 
    2542
    2643== Create your own style ==#CreateStyle
    2744You don't like the standard style? Change it to your own liking:
    2845
    29 * In the [[Help/Dialog/MapPaint|map 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)]]"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.
    3047* Or create a style from scratch and add it in the JOSM mappaint preferences.
    3148
     
    102119
    103120== Advanced Preferences ==
    104 You can use the following hidden preferences:
     121Some styles may have options. They are available via a right click 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 disable the "less obtrusive" nodes at low zoom levels.
     122
     123In addition you can use the following hidden preferences:
    105124* {{{mappaint.fillalpha}}}
    106125 * alpha "opacity level", that is used to fill areas. An integer value between 0 (transparent) and 255 (solid) with the default of 50.