You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
#1 2014-08-13 12:45:16
- bgirardot
- Member
- From: Zurich
- Registered: 2014-08-13
- Posts: 16
- Website
JOSM: How can I edit the file elementstyles.mapcss ?
Where is the file elementstyles.mapcss located in windows?
Map Paint Styles preferences indicates the file is located here:
resource://styles/standard/elemstyles.mapcss
But I do not see it anywhere in my \Program Files\JOSM\ folder
I want to duplicate it and adjust the css to make my own custom version.
Cheers
Blake Girardot
Offline
#2 2014-08-13 14:50:37
- rayquaza
- Member

- From: DE-BW
- Registered: 2012-11-18
- Posts: 2,007
Re: JOSM: How can I edit the file elementstyles.mapcss ?
It's in the JAR file. But I recommend to not copy it but instead use an additional mapCSS file with the modifications you want. Otherwise it gets hard to apply updates.
Offline
#3 2014-08-13 15:08:42
- bgirardot
- Member
- From: Zurich
- Registered: 2014-08-13
- Posts: 16
- Website
Re: JOSM: How can I edit the file elementstyles.mapcss ?
It's in the JAR file. But I recommend to not copy it but instead use an additional mapCSS file with the modifications you want. Otherwise it gets hard to apply updates.
Oh thank you very much, I am not versed in Java at all, but I think I can open the jar file and get the file out.
If I understand you correctly, I should get the file out, make a copy, rename it to something of my own and then put it someplace for user based files, leaving the .jar file totally alone?
Where would I put my own .mapCSS file so I could use it in JOSM?
Offline
#4 2014-08-13 15:32:46
- rayquaza
- Member

- From: DE-BW
- Registered: 2012-11-18
- Posts: 2,007
Re: JOSM: How can I edit the file elementstyles.mapcss ?
If I understand you correctly, I should get the file out, make a copy, rename it to something of my own and then put it someplace for user based files, leaving the .jar file totally alone?
I'm suggesting to create a totally new mapCSS file and having both active. So the new file contains only the things you want to be different. If you want to change a specific object and you don't know how you would copy only these few lines into your file. So if there's an enhancement to the original style you'll still profit from it simply by updating JOSM.
Where would I put my own .mapCSS file so I could use it in JOSM?
Anywhere you like.
Offline
#5 2014-08-13 17:03:48
- escada
- Moderator

- Registered: 2011-08-13
- Posts: 1,754
Re: JOSM: How can I edit the file elementstyles.mapcss ?
here is some information on style files http://josm.openstreetmap.de/wiki/Styles
Offline
#6 2014-08-13 18:14:23
- bgirardot
- Member
- From: Zurich
- Registered: 2014-08-13
- Posts: 16
- Website
Re: JOSM: How can I edit the file elementstyles.mapcss ?
Ah, I see what you are saying.
Thank you both very much.
Offline