Why not ask your question on the new OpenStreetMap Community Forum?

When you have several mapcss files, you do not want to copy/paste it into one file. Can I make one file with all the url of the all these mapcss files in a particularly order.

Can this work?

url access.mapcss
url vehicle.mapcss
url foot.mapcss


asked 27 Jul '17, 12:01

Allroads's gravatar image

accept rate: 10%

edited 27 Jul '17, 12:02

As maxerickson already pointed out JOSM does not support @import. But you can use the awk command line tool to do that in a compilation-like step. (If your styles use icons, you might already distribute them as ZIP files).

See the makefile of OpenRailwayMap for further information. It executes an awk script which replaces the line

@import url('myFunnyFilename.mapcss');

by the content of myFunnyFilename.mapcss.

permanent link

answered 01 Aug '17, 10:07

Nakaner's gravatar image

accept rate: 16%

permanent link

answered 27 Jul '17, 19:05

maxerickson's gravatar image

accept rate: 32%

Thanks such short sentence and to understand what it means. •no @import

(27 Jul '17, 19:18) Allroads
Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 27 Jul '17, 12:01

question was seen: 1,912 times

last updated: 01 Aug '17, 10:07

powered by OSQA