| 5 | | Eigene Anzeigestile können auf der [wiki:Styles englischen Seite] ergänzt werden. Weiterführende Informationen zum Erstellen eigener Stile sind auch dort zu finden. |
| | 15 | Notiz: Der interne Stil kann in den Einstellungen durch "resource://data/elemstyles.xml" erreicht werden. |
| | 16 | |
| | 17 | == Einen eigenen Stil erstellen == |
| | 18 | |
| | 19 | Der Standardstil gefällt nicht? Passen Sie ihn Ihren Vorstellungen an: |
| | 20 | |
| | 21 | * Nutzen Sie einen der obigen Stile oder den [http://josm.openstreetmap.de/svn/trunk/styles/standard/elemstyles.xml Standardstil] als Basis für eigene Stile |
| | 22 | * Jetzt können Sie die Datei bearbeiten (der [http://josm.openstreetmap.de/svn/trunk/styles/standard/elemstyles.xml Standardstil] enthält eine Formatbeschreibung) |
| | 23 | * Falls Sie Symbole erstellt haben, schauen Sie im nächsten Abschnitt, wie diese zu handhaben sind. |
| | 24 | * Ergänzen Sie Ihren Stil in den JOSM-Karteneinstellungen. |
| | 25 | * ... Starten Sie JOSM neu und Ihr Stil wird benutzt! |
| | 26 | * Soll der Stil auch für andere verfügbar sein, so ergänzen Sie ihn in der obigen Liste auf der [wiki:Styles englischen Seite]. |
| | 27 | |
| | 28 | === Symboleinbindung === |
| | 29 | There are 3 different forms to handle icons: |
| | 30 | |
| | 31 | * Icons distributed with JOSM can be entered directly with the path (relative to JOSM's internal image directory). |
| | 32 | * New icons can be directly referenced using a http-link. These are downloaded and cached internally. |
| | 33 | * Since JOSM version 2289 Zip-Files are supported. |
| | 34 | * The zip file must contain at least one file with extension xml. |
| | 35 | * Icon names and path are relative to the topmost zip directory. |
| | 36 | * If there are multiple XML files, a file with "style" in the name is preferred (to allow packaging styles and presets in one archive). |
| | 37 | |
| | 38 | === Style Collection === |
| | 39 | 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 |
| | 40 | as described above (list in the source at top of this wiki page). |
| | 41 | |
| | 42 | * 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. |
| | 43 | * Hiking Map Style: There is a rather different style corresponding to the design of a [http://topo.geofabrik.de German hiking map]. Available as [http://topo.geofabrik.de/OSMCStyleJOSMSetup.exe Windows installer] or [http://topo.geofabrik.de/osmc_style.zip zip] with [http://wiki.openstreetmap.org/wiki/DE:OSMC_Reitkarte#JOSM_Stil Installation hints] for Linux. |
| | 44 | |
| | 45 | == JOSM styles for newbies (HOWTO) == |
| | 46 | |
| | 47 | To 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. |
| | 48 | There you can find three text boxes: "Map Paint Styles", "Defaults" and "Icon paths". |
| | 49 | |
| | 50 | The 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 :-) |
| | 51 | The 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. |
| | 52 | To delete a special style you don't use anymore, just select it in the upper box and hit the "Delete" button. |
| | 53 | |
| | 54 | Well, 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. |
| | 55 | |
| | 56 | == Rendering == |
| | 57 | |
| | 58 | Mappaint renders the map data so it looks much more like a map (colors, icons, annotations, ...) - compared to the JOSM wireframe mode. |
| | 59 | |
| | 60 | === Nodes === |
| | 61 | |
| | 62 | Most nodes that corresponds to tags in the [http://wiki.openstreetmap.org/wiki/Map_Features Map Features] page will show an appropriate icon, e.g. a "P" on blue ground for amenity=parking. |
| | 63 | |
| | 64 | There are some special icons for missing/incomplete things: |
| | 65 | |
| | 66 | [[Image(wiki:Styles:Mappaint_no_icon.png)]] missing icon |
| | 67 | We don't have the right icon for every node tag in map features yet, e.g. icons for most natural=xy tags are still missing. If you encounter such a "missing icon", feel free to create a nice 16*16 pixel icon that matches the tag and send it to the talk list. |
| | 68 | |
| | 69 | [[Image(wiki:Styles:Mappaint_deprecated.png)]] warning icon |
| | 70 | The corresponding tag was once used but is no longer recommended to be used - or - it is not suitable for a node, e.g. highway=motorway just doesn't make sense on a node. Probably not all deprecated tags will show this icon. |
| | 71 | |
| | 72 | === Ways === |
| | 73 | |
| | 74 | Most ways that correspond to tags in the map features page will get special color, thickness and line style (e.g. dashed lines for railways). |
| | 75 | |
| | 76 | === Areas === |
| | 77 | |
| | 78 | Areas are ways that form a sort of ring. Most areas that corresponds to tags in the map features page will be filled with a special color (the filling will be transparent to some degree). |
| | 79 | |
| | 80 | === Direction arrows === |
| | 81 | Direction arrows in this mode are only drawn for selected items, this gives you a a significant speedup while moving the map. |
| | 82 | |
| | 83 | == Preferences == |
| | 84 | In 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 |
| | 85 | switching the "standard" default to this name creates a new display. Styles with equal names are additional. If you want to change the name of a style, you need to add the new name |
| | 86 | in front of the path using a "=" as separation. The same can be used for icon paths. |
| | 87 | |
| | 88 | You also can use the following hidden preferences: |
| | 89 | * mappaint.fillalpha |
| | 90 | * alpha "opacity level", that is used to fill areas. An integer value between 0 (transparent) and 255 (solid) with the default of 50. |
| | 91 | * mappaint.fillareas (show areas) |
| | 92 | * 10000000 (default) - areas will be filled with their corresponding colour and name will be rendered |
| | 93 | * 0 - areas will be surrounded by lines only and name will not be rendered |
| | 94 | * any other number - areas will be filled with their corresponding colour and name will be rendered at any zoom level below the given number in meters |
| | 95 | * mappaint.showicons |
| | 96 | * select whether icons are shown - same values as mappaint.fillareas |
| | 97 | * mappaint.shownames |
| | 98 | * select whether names are shown - same values as mappaint.fillareas |
| | 99 | * mappaint.strokes |
| | 100 | * select whether strokes or full lines are used - same values as mappaint.fillareas |
| | 101 | * mappaint.useRealWidth |
| | 102 | * true - ways will change width corresponding to the real width in meters set in the elemstyle.xml file |
| | 103 | * false (default) - ways will have the same width on every zoom level |
| | 104 | * mappaint.zoomLevelDisplay |
| | 105 | * true - elements visibility depends on zoom level |
| | 106 | * false (default) - all elements are displayed |
| | 107 | * mappaint.fontsize |
| | 108 | * 8 - size of mappaint texts |