Skip to content

chore(coordinates): replace magic numbers with TILE_SIZE #12

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

k-yle
Copy link

@k-yle k-yle commented Apr 14, 2025

What's changing

If you want to use a different tileserver, simply changing TILE_SIZE is not sufficient. There are some other hardcoded constants that need to be changed.

This PR replaces those other magic numbers with the TILE_SIZE constant.

How to test it

Steps to test the changes:

  1. change TILE_SIZE to a custom value & use a different tileserver
  2. notice how the maths still works

Additional notes for reviewers

I already...

  • Tested the changes in a working environment to ensure they work as expected
  • Added some tests for any new functionality
  • Updated the documentation (both comments in code and under /docs)

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.

1 participant