Backward compatibility: marker line placement for polygons converges toward center ?! #1591

strk opened this Issue Nov 23, 2012 · 3 comments


None yet

2 participants

strk commented Nov 23, 2012

I'm not sure what's going on here:

On the left you have mapnik-2.0.x, on the right you have mapnik-2.1.x
Uncommenting the marker-clip:false line in CartoCSS turns the rendering on the right completely blank. The input is a regular hexagonal grid.


Two things are happening here:

  1. Clipping is causing the convergence issue. I'm not sure why (this deserves a separate bug report). This can be worked around by turning it off + clipping should be default off when we move on #1569.

  2. The reason you get nothing rendered when clipping is off is that the marker size does not fit within the length of the line it is being placed upon. This may seem like a regression but it is actually an intentional bugfix and landed in 5bc9f73#include/mapnik/markers_placement.hpp. Now that marker size can be manipulated on the fly, you can use that functionality to test that it is the size preventing rendering. Try setting transform="scale(.5,.5)" (or in css: marker-transform:scale(.5,.5)).

So, for complete backwards compatibility an option would need to be added to ask for rendering of markers even when they do not fit within a given line segment. I'm not sure that is worth it.

strk commented Nov 27, 2012

#1553 may have a role here too ?

strk commented Nov 27, 2012

@springmeyer I confirm that scaling the symbol by 50% gets the arrows back, I'm happy with only #1553 being acted upon (if possible).

@strk strk closed this Nov 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment