GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
s = mapnik.Stroke()
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)."
[mishok13] This patch implements get_dash method for Stroke objects, which is not exactly requested, but Dane didn't see any point in having read-only property.
[springmeyer] Awesome, thanks! I actually think a property would be good for this, but we can worry about adding that at a later stage. Various places in the python bindings will need a bit more wrapping to allow get/set with list attributes, so this approach is great for now.
applied with tests (and adding you to the AUTHORS list) in r1151
[springmeyer] changing milestone... going to be part of 0.6.1 release