artemp/trac2github — Issue #318: Python bindings for Stroke don't have access to dash array
Author: artemp
Created: 2011-10-09 20:26:53+00:00
State: open
Labels: Boost_Python_Binding

{{{
#!python
import mapnik

s = mapnik.Stroke()
s.add_dash(0.5, 0.5)
}}}

I propose a 'dashes' property for the Stroke object so that the user can see dashes that have been added (or remove them).

From the LineSymbolizer page:

"A pair of length values [a,b], where (a) is the dash length and (b) is the gap length respectively. More than two values are supported as well (e.g. to start the line not with a stroke, but with a gap)."