On 08/28/2012 07:51 PM, Thomas Davie wrote:
On 28 Aug 2012, at 18:34, Jan Tappenbeck <[email protected]> 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!
There is the pattern-image property [1] in JOSM which mimics Mapnik's
LinePatternSymbolizer.
I suppose your idea is similar, but with the image centered at the line
and not attached to it.
[1]
<http://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation#Linestyles>
Paul
_______________________________________________
Mapcss mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/mapcss