Search:
Login
Preferences
Help/Guide
About Trac
Register
Forgot your password?
Wiki
Timeline
Changelog
Browse Source
View Tickets
New Ticket
Roadmap
Builds
Sonar
Search
Context Navigation
+0
Start Page
Index
History
Editing De:Styles
Adjust edit area height:
8
12
16
20
24
28
32
36
40
Edit side-by-side
[[TranslatedPages(revision=-36,outdated=Übersetzung unvollständig)]] = JOSM-Stile = Die JOSM-Kartenanzeige (MapPaint) nutzt XML-Stildateien, um die vom Nutzer bereitgestellten Merkmale in eine kartenähnliche Anzeige, mit z.B. Farbe, Linienstärke und Symbolen,umzusetzen. == Alternative Stile == Durch Ändern der XML-Stildatei kann die JOSM-Kartenanzeige den eigenen Vorlieben angepasst werden. Es ist sogar möglich zusätzliche Elemente (wie z.B. Geschwindigkeiten) anzuzeigen, indem eine spezielle Stildatei hinzugefügt wird. URLS für eigene Anzeigestile können auf der [wiki:Styles englischen Seite] ergänzt werden und sind nach wenigen Minuten automatisch in den JSOM-Karteneinstellungen verfügbar. [[Styles(de|styles|Kurzbeschreibung|Autor|Beschreibung|Version|Mehr Details)]] Notiz: Der interne Stil kann in den Einstellungen durch "resource://data/elemstyles.xml" erreicht werden. == Einen eigenen Stil erstellen == Der Standardstil gefällt nicht? Passen Sie ihn Ihren Vorstellungen an: * 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 * Jetzt können Sie die Datei bearbeiten (der [http://josm.openstreetmap.de/svn/trunk/styles/standard/elemstyles.xml Standardstil] enthält eine Formatbeschreibung) * Falls Sie Symbole erstellt haben, schauen Sie im nächsten Abschnitt, wie diese zu handhaben sind. * Ergänzen Sie Ihren Stil in den JOSM-Karteneinstellungen. * ... Starten Sie JOSM neu und Ihr Stil wird benutzt! * 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]. === Symboleinbindung === Es gibt 3 verschiedene Wege Sysmbole zu nutzen: * Symbole, welche mit JOSM vertrieben werden können direkt mit dem Pfad angegeben werden (relativ zu JOSMs internem Bildverzeichnis) * Neue Symbole können direkt mittels eines HTTP-Links referenziert werden. Diese werden dann heruntergeladen und intern zwischengespeichert. * Seit JOSM-Version 2289 werden Zip-Dateien unterstützt. * Die Zip-Datei muss mindestens eine Datei mit der Endung xml enthalten. * Symbolnamen und -pfade sind relativ zum Hauptverzeichnis der Zip-Datei. * Falls mehrere XML-Dateien existieren, wird eine Datei mit "style" im Namen bevorzugt (dies erlaubt das Vereinen von Stilen und Objektvorlagen in einem Archiv). == JOSM-Stile für Anfänger (Eine Anleitung) == 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. There you can find three text boxes: "Map Paint Styles", "Defaults" and "Icon paths". 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 :-) 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. To delete a special style you don't use anymore, just select it in the upper box and hit the "Delete" button. 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. == Rendering == Mappaint renders the map data so it looks much more like a map (colors, icons, annotations, ...) - compared to the JOSM wireframe mode. === Nodes === 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. There are some special icons for missing/incomplete things: [[Image(wiki:Styles:Mappaint_no_icon.png)]] missing icon 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. [[Image(wiki:Styles:Mappaint_deprecated.png)]] warning icon 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. === Ways === 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). === Areas === 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). === Direction arrows === Direction arrows in this mode are only drawn for selected items, this gives you a a significant speedup while moving the map. == Preferences == 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 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 in front of the path using a "=" as separation. The same can be used for icon paths. You also can use the following hidden preferences: * mappaint.fillalpha * alpha "opacity level", that is used to fill areas. An integer value between 0 (transparent) and 255 (solid) with the default of 50. * mappaint.fillareas (show areas) * 10000000 (default) - areas will be filled with their corresponding colour and name will be rendered * 0 - areas will be surrounded by lines only and name will not be rendered * 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 * mappaint.showicons * select whether icons are shown - same values as mappaint.fillareas * mappaint.shownames * select whether names are shown - same values as mappaint.fillareas * mappaint.strokes * select whether strokes or full lines are used - same values as mappaint.fillareas * mappaint.useRealWidth * true - ways will change width corresponding to the real width in meters set in the elemstyle.xml file * false (default) - ways will have the same width on every zoom level * mappaint.zoomLevelDisplay * true - elements visibility depends on zoom level * false (default) - all elements are displayed * mappaint.fontsize * 8 - size of mappaint texts
Note:
See
WikiFormatting
and
TracWiki
for help on editing wiki content.
Change information
Your email or username:
E-mail address and name can be saved in the
Preferences
Comment about this change (optional):
Note:
See
TracWiki
for help on using the wiki.