NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I would like to be able to vary line thickness for different layers so that ways show up better for editing in JOSM. Can anyone tell me how this is done? More generally, what resources are out there to help get more control over styles in JOSM?

Thanks!

asked 26 Feb '11, 02:55

betsy's gravatar image

betsy
31114
accept rate: 0%

edited 22 Mar '11, 15:26

Richard's gravatar image

Richard ♦
30.9k44279412


Information about this is on the JOSM wiki. Note that JOSM has just introduced the new "MapCSS" styles in addition to the old schema called "MapPaint". MapCSS is probably easier for you to work with.

permanent link

answered 26 Feb '11, 07:51

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

I was able to modify line width by creating a map paint style involving an invented tag to be used only for display purposes when editing. Lacking xml skills, I did this:

download existing map paint style modify <rules> so that my invented tag paints a thick line for invented key/value condition modify name, author, etc. save xml file locally load local file as an active map paint style add invented tag to apply map style to objects. edit delete invented tag before upload - important

Comments? I played around with the Halcyon demo at geowiki.com. Where do I load a MapCSS file in JOSM?

(26 Feb '11, 19:11) betsy
1

The problem I was having related to the fact that all inactive layers have identical style in JOSM. What style sheet can fix that? We found the most effective method for visibility was to create a copy of the file and convert to GPX, where you have more control over color and line thickness through preferences.

(15 Mar '11, 21:59) betsy
  • Hit F12 in JOSM > choose third tab (map projection & styles) > choose MapPaint-Styles
  • On the right side of the Dialog you will find a "+" that you can use to add URLs as well as files..

  • to activate the style use the checkbox on the left of loaded styles in the same dialog

  • or use MapPaint dock window in JOSM

Greetings, cmuelle8

permanent link

answered 15 Mar '11, 08:22

cmuelle8's gravatar image

cmuelle8
1
accept rate: 0%

Right, this process was used in creating the style I described above.

(15 Mar '11, 21:56) betsy

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×622
×6

question asked: 26 Feb '11, 02:55

question was seen: 6,913 times

last updated: 22 Mar '11, 15:26

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum