Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[core] improve text-max-angle check #3640

Merged
merged 1 commit into from
Jan 21, 2016
Merged

[core] improve text-max-angle check #3640

merged 1 commit into from
Jan 21, 2016

Conversation

ansis
Copy link
Contributor

@ansis ansis commented Jan 21, 2016

Instead of using the absolute value of the sum of angles, use the sum of the absolute values of angles.

This helps avoid labels on lines with sharp zig zags.

for example, the "Central Campus Mall" label in issue #2998

-js pr: mapbox/mapbox-gl-js#1959
test-suite update: test-suite update: https://github.com/mapbox/mapbox-gl-test-suite/tree/max-angle-fix

Instead of using the absolute value of the sum of angles, use the sum of
the absolute values of angles.

This helps avoid labels on lines with sharp zig zags.

for example, the "Central Campus Mall" label in issue #2998
@ansis ansis merged commit ed0488d into master Jan 21, 2016
@ansis ansis removed the in progress label Jan 21, 2016
@ansis ansis deleted the max-angle branch January 21, 2016 01:23
@ansis ansis mentioned this pull request Jan 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant