Changes between Version 144 and Version 145 of Styles


Ignore:
Timestamp:
2019-02-24T08:34:00+01:00 (7 years ago)
Author:
Hb---
Comment:

wikitr

Legend:

Unmodified
Added
Removed
Modified
  • Styles

    v144 v145  
    33= JOSM Map Styles =
    44[[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.
     5The JOSM [wikitr:/Help/MapView map display] can be easily customized with different styles. Many styles are included with JOSM by default.
    66
    77There 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.
     
    1414
    1515JOSM 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)
    1919
    2020Note that, unless you are working with add-on styles, likely you want to have only one style ☑ checked at a time.
     
    2424
    2525''Instructions:''
    26 1. open the [Help/Preferences/Map#MapPaintStyles Map Paint Styles Preferences] by either
    27    * 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
     261. 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))
     301. Choose a style in the list of ''Available styles''
     311. Activate it by clicking the [[Image(source:trunk/images/preferences/activate-right.png,middle)]] blue right arrow button between the lists.
     321. Exit and confirm by clicking the OK button
    3333
    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".
    3535
    3636==== Adding own styles ====
     
    4444You don't like the standard style? Change it to your own liking:
    4545
    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.
    4747* Or create a style from scratch and add it in the JOSM mappaint preferences.
    4848
    4949JOSM 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.
    5050 * 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.
    5353
    5454== Make your style available to other users ==
     
    7676* Icons distributed with JOSM can be entered directly with the path (relative to JOSM's internal image directory).
    7777* 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].)
    7979* New icons can be directly referenced using a http-link. These are downloaded and cached internally.
    8080* zip files are supported too.
     
    8585 * Example for PNG: {{{data:image/png;base64,...databytes...}}}
    8686 * 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.
    8888* When the JOSM wiki is used for designing of new styles you have some additional options:
    8989 * Each file attached to the wiki page is automatically included in the zip file downloaded by JOSM.
     
    101101== Updating styles in JOSM ==
    102102Once 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 Expert Mode] is enabled
    105 * 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]
    106106* Search for keys starting with: `mirror.https://josm.openstreetmap.de/josmfile?page_Styles/` (or `mirror.` for other external sources)
    107107* Select the style you want to update
     
    111111
    112112To 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]
    114114* Right click on a style
    115115* Choose Info
     
    122122
    123123== Rendering ==
    124 Mappaint renders the map data so it looks much more like a map (colors, icons, annotations, ...) - compared to the JOSM wireframe mode.
     124Mappaint renders the map data so it looks much more like a map (colors, icons, annotations, ...) - compared to the JOSM Wireframe view.
    125125
    126126=== Nodes ===
     
    143143
    144144== 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).
     145Some 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).
    146146
    147147In addition, you can use the following hidden preferences:
     
    168168
    169169----
    170 Back to [wiki:/Help main help]
     170Back to [wikitr://Help Main help]