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

Add text-offset and shield-offset #151

Merged
merged 1 commit into from Aug 17, 2018
Merged

Conversation

talaj
Copy link
Member

@talaj talaj commented Aug 17, 2018

Introduced in mapnik/mapnik#3847, released in Mapnik 3.0.19.

@kocio-pl

Copy link
Member

@yohanboniface yohanboniface left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments :)

"expression": true,
"default-value": 0.0,
"default-meaning": "Will not be offset.",
"doc": "Offsets a line or a polygon a number of pixels parallel to its actual path. Positive values move the line left, negative values move it right (relative to the directionality of the line).",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Offsets a line or a polygon

Aren't we talking about a shield instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. It offsets underlaying geometry, which causes texts or shields to move by the offset in case of placement="line", but not in the case of placement="grid". In such case it reduces or expands underlaying polygon area where individual placements can go. I will try to describe it better.

"expression": true,
"default-value": 0.0,
"default-meaning": "Will not be offset.",
"doc": "Offsets a line or a polygon a number of pixels parallel to its actual path. Positive values move the line left, negative values move it right (relative to the directionality of the line).",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here :)

@talaj
Copy link
Member Author

talaj commented Aug 17, 2018

@yohanboniface I've tried to improve the description.

@talaj talaj merged commit 619f069 into mapnik:gh-pages Aug 17, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants