Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete display of text annotations on map edges #4076

Open
gisgirlone opened this issue Aug 8, 2019 · 2 comments
Open

Incomplete display of text annotations on map edges #4076

gisgirlone opened this issue Aug 8, 2019 · 2 comments

Comments

@gisgirlone
Copy link

I use mapnik to generate slices. When using textsymbolizer style, some notes appear at the edge of the map, so the text annotation display is incomplete. I want to ask which attribute in textsymbolizer can avoid the annotation appearing at the edge of the map, and at the same time can display the annotation completely, that is to say, make the annotation automatically offset. Now I'm trying to avoid-edges attribute map edge annotations will automatically disappear, but I want the annotations to be presented in full.

@lightmare
Copy link
Contributor

You can make Mapnik try different positions for text via placement-type:
https://github.com/mapnik/mapnik/wiki/TextSymbolizer#placements

@hholzgra
Copy link

hholzgra commented Oct 8, 2020

minimum-padding seems to be what you are actually looking for?

Name: minimum-padding
Type: double
Description: if >0 helps prevents a label (or shield) from being placed too near the edge of the map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants