NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the 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?

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

How?

asked 27 Jul '17, 12:01

Allroads's gravatar image

Allroads
222161725
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

Nakaner
610813
accept rate: 16%

permanent link

answered 27 Jul '17, 19:05

maxerickson's gravatar image

maxerickson
12.7k1083176
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

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
×10

question asked: 27 Jul '17, 12:01

question was seen: 2,008 times

last updated: 01 Aug '17, 10:07

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