mapnik / mapnik-support

Use the issues queue here to ask questions and offer help on using Mapnik (maybe if this works well we can retire the mailing list at http://mapnik.org/contact/?)
6 stars 6 forks source link

Line Pattern Symbolizer Spacing #111

Closed kevinzg closed 5 years ago

kevinzg commented 5 years ago

How can I add spacing between the repeated symbols of the Line Pattern Symbolizer?

I've looked at this reference and the wiki but that option seems to be missing. Is there any other way?

talaj commented 5 years ago

If you want to repeat a symbol along a line, I would recommend MarkersSymbolizer or ShieldSymbolizer. In addition to documentation you referenced, a good source of information can be visual tests. Take a look on marker-direction.xml tests:

marker-direction.xml

LinePatternSymbolizer is meant primarily for continuous pattern, but support for dashed lines was added recently in https://github.com/mapnik/mapnik/pull/3980: line-pattern-repeat-on-line-dasharray.xml

kevinzg commented 5 years ago

That's exactly what I need, thank you.