TextSymbolizer: allow to set blank space after the text, when placement is "line" #848

Closed
artemp opened this Issue Oct 11, 2011 · 3 comments

Projects

None yet

2 participants

@artemp
Member
artemp commented Oct 11, 2011

When placement is "line" in TextSymbolizer and there are more texts on one line to be rendered, the texts can melt together and make the map confusing. It should be possible to set blank space at the end of the text, where no other text will be rendered.

See the image: text labels for cycleways "A2", "A1" and "2" are too close together, that it seems like cycleways "A22", "2A2", "2A1"...

[[Image(bedhgeha.png)]]

@artemp
Member
artemp commented Oct 11, 2011

[springmeyer] have you tried the 'spacing' parameter?

@artemp
Member
artemp commented Oct 11, 2011

[Petr Dlouhy] Yes, the symbolizer element looks like:

{{{

}}}

The problem is, that the text originates from two (or more) DB lines and the text is placed in non-overlaping position by Mapnik.

@springmeyer
Member

This is possible since Mapnik 2.2, just do [text]+' '

@springmeyer springmeyer closed this Sep 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment