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

feat(geo): Add an optional bias when rounding bounds #1033

Merged
merged 1 commit into from
Aug 10, 2020

Conversation

jacott
Copy link
Contributor

@jacott jacott commented Aug 10, 2020

The bias used by tiler.ts is 0.2 so that it will round down at < 0.7 and round up at >= 0.3 instead of down at < 0.5
and up at >= 0.5. This leads to tiles favouring covering a pixel larger area than before.

packages/geo/src/bounds.ts Outdated Show resolved Hide resolved
A bias of 0.2 round down at < 0.7 and round up at >= 0.3 instead of down at < 0.5
and up at >= 0.5. This leads to tiles favouring covering a pixel larger area than before.
@jacott jacott changed the title feat(geo): Add a bias when rounding bounds feat(geo): Add an optional bias when rounding bounds Aug 10, 2020
@kodiakhq kodiakhq bot merged commit c381733 into master Aug 10, 2020
@kodiakhq kodiakhq bot deleted the feat/geo/bounds-round-bias branch August 10, 2020 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants