[josm-dev] icons for MapCSS for RoadSigns

Gertrud Simson simson.gertrud at gmail.com
Wed Feb 18 23:01:32 UTC 2015

2015-02-18 23:23 GMT+01:00 Jo <winfixit at gmail.com>:

> /* Now render the traffic sign */
> node|z16-[!(prop(traffic_sign_svg)="")]::traffic_signs
> {
>     icon-image: eval(concat("data:image/svg+xml,<svg width='100px'
> height='",prop(traffic_sign_top),"'>",prop(traffic_sign_svg),"</svg>"));
>     icon-width: eval(max(12,prop(pixel_per_metre)));
> }
> prop() depends on the layer. If no layer is given, the default layer is
used. A solution would be to remove "::traffic_signs" to use the default
layer. Another solution: if you use the layer "::traffic_signs", the props
of this layer are used (However you set them in the default layer before).
So you need to use prop(traffic_sign_top,default),
and prop(pixel_per_metre,default).

However this seems not to fix the style completely. I only see white
squares and the sign for BE:C3. Don't know if this is the expected result.


More information about the josm-dev mailing list