Changes between Version 19 and Version 20 of Styles


Ignore:
Timestamp:
2009-08-15T16:37:12+02:00 (16 years ago)
Author:
es_ka
Comment:

added section "JOSM styles for newbies" and rearranged page

Legend:

Unmodified
Added
Removed
Modified
  • Styles

    v19 v20  
    1010[[TranslatedPages]]
    1111
     12= JOSM Styles =
     13
    1214The JOSM map display (MapPaint) uses XML style files to convert the user provided tags to a map like display including e.g. colouring, line thickness and icons.
    1315
    1416== Alternative Styles ==
    1517
    16 By changing the XML style file (or files) you can customize your JOSM's map display as you like.
     18By changing the XML style file (or files) you can customize your JOSM's map display as you like. It is even possible to show more features (e.g. 'maxspeed' values) in the editor's map by adding a special style file.
    1719
    1820URLs for new style files can be entered by editing this page and then are automatically available in JOSM mappaint preferences (after a few minutes).
     
    2123
    2224Note: In the settings the internal style can also be reached using "resource://styles/standard/elemstyles.xml".
     25
     26== Create your own style ==
     27
     28You don't like the standard style? Change it to your own liking:
     29
     30 * Either use one of the above styles or the [http://josm.openstreetmap.de/svn/trunk/styles/standard/elemstyles.xml standard] one as a base for own styles
     31 * Now you can edit the file (the [http://josm.openstreetmap.de/svn/trunk/styles/standard/elemstyles.xml standard style] contains a format description)
     32 * When you made new icons, either add a path to these in mappaint.icon.sources or use absolute URL to a webspace containing the icons
     33 * Enter your style in the JOSM mappaint preferences.
     34 * ... restart JOSM and your new style will be used!
     35 * When the style should be available for other users as well, then add it to the above list of this page.
     36
     37=== Style Collection ===
     38If you have an interesting style that might be useful for others, but are not compatible with the automatic access mechanism, just add a note here. Preferred is using the automatic usage
     39as described above (list in the source at top of this wiki page).
     40
     41 * The OSM2Go [http://repository.maemo.org/extras/pool/chinook/free/source/o/osm2go/ source archives] of version 0.6-4 contains a potlatch like JOSM style and version 0.6-5 contains an additional Mapnik like JOSM style in the data directory. These were written for OSM2Go and have not been tested with JOSM.
     42 * There is a style corresponding to the German hiking map for [http://topo.geofabrik.de/osmc_style.zip download] ([http://wiki.openstreetmap.org/wiki/DE:OSMC_Reitkarte#JOSM_Stil Installation hints]).
     43
     44== JOSM styles for newbies (HOWTO) ==
     45
     46To make any changes to JOSM's styles, go to the preferences panel (Menu: Edit->Preferences or hit [F12]). Then click the 3rd button on the left ("Settings for map projection and data interpretation") and select the "Map Paint Styles" tab.
     47There you can find three text boxes: "Map Paint Styles", "Defaults" and "Icon paths".
     48
     49The upper one ("Map Paint Styles") contains the currently selected *special* styles, but it maybe empty if you're just beginning to tweak JOSM's map paint stye :-)
     50The middle one contains all "Default" style sets for special purposes which are available. Let's assume that you're interested in sea maps, then you probably will make use of the style "Sea Map Freie Tonne": Just highlight this line by clicking on it and push the "Copy Defaults" button, the selected line will show up in the upper box and will be active after the next JOSM start. You can add multiple styles as well, if you want.
     51To delete a special style you don't use anymore, just select it in the upper box and hit the "Delete" button.
     52
     53Well, let's continue with advanced style usage! You created your own style (see below on this page)? Just click "Add" and enter either path and filename or URL of your style file.
    2354
    2455== Rendering ==
     
    4980Direction arrows in this mode are only drawn for selected items, this gives you a a significant speedup while moving the map.
    5081
    51 === Create your own style ===
    52 You don't like the standard style? Change it to your own liking:
    53 
    54  * Either use one of the above styles or the [http://josm.openstreetmap.de/svn/trunk/styles/standard/elemstyles.xml standard] one as a base for own styles
    55  * Now you can edit the file (the [http://josm.openstreetmap.de/svn/trunk/styles/standard/elemstyles.xml standard style] contains a format description)
    56  * When you made new icons, either add a path to these in mappaint.icon.sources or use absolute URL to a webspace containing the icons
    57  * Enter your style in the JOSM mappaint preferences.
    58  * ... restart JOSM and your new style will be used!
    59  * When the style should be available for other users as well, then add it to the above list of this page.
    60 
    61 === Style Collection ===
    62 If you have an interesting style that might be useful for others, but are not compatible with the automatic access mechanism, just add a note here. Preferred is using the automatic usage
    63 as described above (list in the source at top of this wiki page).
    64 
    65  * The OSM2Go [http://repository.maemo.org/extras/pool/chinook/free/source/o/osm2go/ source archives] of version 0.6-4 contains a potlatch like JOSM style and version 0.6-5 contains an additional Mapnik like JOSM style in the data directory. These were written for OSM2Go and have not been tested with JOSM.
    66  * There is a style corresponding to the German hiking map for [http://topo.geofabrik.de/osmc_style.zip download] ([http://wiki.openstreetmap.org/wiki/DE:OSMC_Reitkarte#JOSM_Stil Installation hints]).
    67 
    6882== Preferences ==
    6983In the preferences editor you handle new style files as well as paths to the icons. Note that styles can be either additional or individual. If a style itself has a new internal name, then