[Mapcss] how to create a style for cutting / embankment
Thomas Davie
tom.davie at gmail.com
Tue Aug 28 18:51:42 BST 2012
On 28 Aug 2012, at 18:34, Jan Tappenbeck <osm at tappenbeck.net> wrote:
> hi !
>
> i want to create a mapcss-style to show cutting [1] or embankment [2] to show in JSOM.
>
> in the web i did not found any basic-example-style.
>
> can anyone help me ?
>
> regards Jan :-)
Unfortunately, MapCSS does not currently support any way of showing a repeating symbol along a way, this is especially unfortunate for one way streets. I might start experimenting with an extension to support this in OpenStreetPad. I think what I'd go for as a first try would be something along the lines of these properties:
--osp-repeated-image: url();
--osp-repeat-image-spacing: gaps between images go here;
--osp-repeat-image-width: width;
--osp-repeat-image-height: height;
--osp-repeat-image-offset: offset from way;
The expectation would be that the image's top would point from start to end of the way.
If anyone sees anything obviously wrong with that before I try it, please point it out!
More information about the Mapcss
mailing list