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?

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

How?

asked 27 Jul '17, 12:01

Allroads's gravatar image

Allroads
168121423
accept rate: 0%

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

Nakaner
510611
accept rate: 11%

permanent link

answered 27 Jul '17, 19:05

maxerickson's gravatar image

maxerickson
11.5k1077161
accept rate: 30%

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

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:

×544
×9

question asked: 27 Jul '17, 12:01

question was seen: 1,122 times

last updated: 01 Aug '17, 10:07

powered by OSQA