Closed brentlemons closed 4 years ago
This would be upstream in Mapnik - @springmeyer @jakepruitt any idea about support/potential of support for dasharray?
Checked in Mapnik and yes, support for drawing dashed lines is missing from the structure used to pass around drawing commands and from the SVG rasterization code. Adding this should be feasible, probably a day or two of work. Proposed next actions:
@artemp please provide some context on why you are asking?
Should we change to ? /cc @springmeyer @jakepruitt
diff --git a/include/mapnik/marker.hpp b/include/mapnik/marker.hpp
index 3aaa1cd..d8e1b12 100644
--- a/include/mapnik/marker.hpp
+++ b/include/mapnik/marker.hpp
@@ -115,11 +115,11 @@ public:
inline double width() const
{
- return vector_data_->bounding_box().width();
+ return vector_data_->width();
}
inline double height() const
{
- return vector_data_->bounding_box().height();
+ return vector_data_->height();
}
mapnik::svg_path_ptr get_data() const
^ wrong repo, moved to https://github.com/mapnik/mapnik/issues/3224
spritezero has supported stroke-dasharray
for some time now after upgrading to mapnik after this fix: https://github.com/mapnik/mapnik/issues/3223
Stroke-dasharray is ignored. Renders as solid line. Tried with both and .