[josm-dev] New Mapcss - where to develop it locally on windows?

Paul Hartmann phaaurlt at gmail.com
Mon May 19 13:10:05 UTC 2014


On 19.05.2014 12:51, Alex Rollin wrote:
> Can you give me any hints as to where my mapcss and subfolder with icons
> should be located, and then how to load them in the mappaint dialog (if
> there are special instructions).

You add your style file in the map settings [1], I understand this has 
worked. Now you can simply reference images by relative path:

/my/path/style.mapcss
/my/path/images/icon.png

in the style:

   node {
     icon-image: "images/icon.png";
   }

see [2] for other ways to include images.

[1] http://josm.openstreetmap.de/wiki/Help/Preferences/Map#MapPaintStyles
[2] http://josm.openstreetmap.de/wiki/Help/Styles/Images

Paul



More information about the josm-dev mailing list