| Version 76 (modified by , 13 years ago) ( diff ) |
|---|
Languages:
JOSM Map Styles
The JOSM map display can be customized with different styles.
Choose Styles
JOSM offers a preselection of styles, that can be turned on or off in the map style dialog. There are base styles (e.g. JOSM standard or Potlatch 2) that cover a wide range of features each. They can be combined with add-on styles that cover more special topics:
[[Styles(en|styles|short description|author|description|version|More details)]]
To add more styles to your list, open the map style preferences by clicking the
Settings button in the map style dialog.
(Alternatively you can navigate directly to the Map Paint Styles Preferences: Edit -> Preferences ->
Map Settings (3rd button on the left) -> Map Paint Styles (2nd tab))
Example:
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
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 (see below)? Just click the
plus sign on the right and enter either path and filename or URL of your style file.
Create your own style
You don't like the standard style? Change it to your own liking:
- In the map style dialog, right click one of the styles and select
"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.
- Or create a style from scratch and add it in the JOSM mappaint preferences.
JOSM supports two formats to define a style:
- JOSM XML
- The traditional style format in JOSM. The standard style contains some documentation.
- MapCSS
-
Style language similar to CSS originally developed for Potlatch 2, but aims to be a standard for map styles. (since r3902)
- General information can be found in the osm wiki.
- A Short tutorial should get you started.
- The JOSM implementation reference lists the supported features in more detail.
Style files with different formats are compatible, they can be loaded at the same time.
Make your style available to other users
- Either edit this wiki page and add URLs for new style files to the list at the top.
- Or create a wiki page similar to Styles/Maxspeed (XML) or Styles/Modified (MapCSS).
- Note: Spam filter prohibits adding many external (icon) links. Please, if possible, attach icons to the wiki page (see below).
In both cases, the new style will be automatically listed in the table above after a few minutes. Then it will also be available in the JOSM mappaint preferences (after clicking the reload button).
Icon handling
There are different forms to handle icons:
- Icons distributed with JOSM can be entered directly with the path (relative to JOSM's internal image directory).
- Use a path relative to your local style file.
- New icons can be directly referenced using a http-link. These are downloaded and cached internally.
- Since JOSM revision 2289 zip files are supported.
- The zip file must contain at least one file with extension xml.
- Icon names and path are relative to the topmost zip directory.
- If there are multiple XML files, a file with "style" in the name is preferred (to allow packaging styles and presets in one archive).
- When the JOSM wiki is used for designing of new styles you have some additional options:
- Each file attached to the wiki page is automatically included in the zip file downloaded by JOSM.
- If you don't want a file in the zip file, add the text (NOZIP) in the description of the attachment.
- If you add a zip file and want its contents included, you may add (EXTRACT) in the description of the attachment.
- The server automatically switches from download of single file to zip download when files are attached.
Styles managed in JOSM wiki
- Styles/AddressValidator
- Styles/Admin_Boundaries
- Styles/AdvertisingStyle
- Styles/BAR-damage-assessment
- Styles/Bench
- Styles/BesideTheRoad_Speed
- Styles/BuildingColors
- Styles/Building_Levels_Labels
- Styles/ColorWays
- Styles/ColourGPSData
- Styles/ColourTag
- Styles/Coloured_Kerbs
- Styles/Coloured_Postcode
- Styles/Coloured_Streets
- Styles/Coloured_Suburb
- Styles/Coloured_buildings
- Styles/Coloured_buildings_en
- Styles/Coloured_buildings_sv
- Styles/Coloured_buildings_uk
- Styles/ConscriptionStreetnumber
- Styles/Cycleways
- Styles/CyclewaysStylingBNA
- Styles/DestinationSignRelation
- Styles/DigiRoadBusStops
- Styles/Direction
- Styles/DisasterDamageAssessment
- Styles/DisasterDamageAssessmentForColorBlind
- Styles/DiscGolfCourse
- Styles/Enhanced_Lane_and_Road_Attributes
- Styles/FireFightersPoland
- Styles/Fixme
- Styles/FixmeAndNote
- Styles/FrenchEPCI
- Styles/Greenery
- Styles/Guidepost
- Styles/HU-HighlightHikingTrailSigns
- Styles/HealthBoundary
- Styles/HiDPISupport
- Styles/HighwayAreas
- Styles/Highway_Nodes
- Styles/Historic_Stones
- Styles/IconTester
- Styles/Incline
- Styles/JP-Desaster
- Styles/JP-Tsunami
- Styles/Kapor2Parcels
- Styles/Landcover
- Styles/Lane_and_Road_Attributes
- Styles/Lane_features
- Styles/Lane_features_ryg
- Styles/LastUpdated
- Styles/LayerChecker
- Styles/LegacyStandard
- Styles/LessObtrusiveNodes
- Styles/LexxPlussStyle
- Styles/Lit
- Styles/LitObjects
- Styles/MTB
- Styles/MapWithAI
- Styles/MapillaryDetections
- Styles/MappingAccessibility
- Styles/Maxspeed
- Styles/MaxspeedIcons
- Styles/Modified
- Styles/ModifiedHighways
- Styles/MorrosAguas
- Styles/Mountains
- Styles/NewHighwayColors
- Styles/NewModifiedBuildings
- Styles/NewParkingFeatures
- Styles/NoFeature
- Styles/NodeBuildings
- Styles/Noname
- Styles/NumberedCycleNodeNetworks
- Styles/NumberedWalkingNodeNetworks
- Styles/Osmc
- Styles/OsmcSKCZPL
- Styles/PTStops
- Styles/ParcelLocker
- Styles/ParkingLanes
- Styles/Ph_Typhoon
- Styles/PhilippinesTrafficSigns
- Styles/Places_ES_styles
- Styles/Potlach2_access
- Styles/Potlatch2
- Styles/Power
- Styles/PowerMapping
- Styles/PriorityRoad
- Styles/PublicTransport
- Styles/PublicTransportV2
- Styles/RU-SubwayEntranceLabeling
- Styles/RecyclingMaterials
- Styles/Schools
- Styles/SerbianStreetNamesAndRefsColouring
- Styles/ShowID
- Styles/Sidewalks
- Styles/SidewalksAndFootways
- Styles/SidewalksPlus
- Styles/SimpleBuildingTags
- Styles/SimpleRoofTags
- Styles/SlovakiaBicycleRoutes
- Styles/Surface
- Styles/Surface-DataEntry
- Styles/TigerReviewedNo
- Styles/TreeCrownDiameter
- Styles/UkraineRoadNetwork
- Styles/Waterways
- Styles/Whitewater
- Styles/hazmat
- Styles/iD
- Styles/light_source
- Styles/plan.at
- Styles/sac_scale
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 correspond to tags in the Map Features page will show an appropriate icon, e.g. a white "P" on blue ground for amenity=parking.
There are some special icons for missing/incomplete things:
missing icon
We don't have the right icon for every node tag in map features yet, e.g. icons for most natural=* 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. To submit your work, open a new ticket and add your image or zip archive as attachment.
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).
Advanced Preferences
You 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
- select whether icons are shown - same values as
mappaint.shownames- select whether names are shown - same values as
mappaint.fillareas
- select whether names are shown - same values as
mappaint.strokes- select whether strokes or full lines are used - same values as
mappaint.fillareas
- select whether strokes or full lines are used - same values as
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- size of mappaint texts (default=8)
Attachments (3)
-
Mappaint_deprecated.png
(650 bytes
) - added by 16 years ago.
deprecated icon
-
Mappaint_no_icon.png
(335 bytes
) - added by 16 years ago.
no icon
-
addstyle.gif
(1.8 MB
) - added by 11 years ago.
How to add a map paint style
Download all attachments as: .zip




