-
Notifications
You must be signed in to change notification settings - Fork 37
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 getNeighbors() and tilesToFeatureCollection() #40
base: main
Are you sure you want to change the base?
Conversation
👍 |
const z = tile[2]; | ||
|
||
return [ | ||
[x - 1, y - 1, z], // NW |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesn't check for valid tiles.
what about [-1, -1, 3]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's been quite some time since I touched this and I've lost all familiarity. Do you already have a function that checks for valid tiles? If not, can you define what such a check might look like?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remember correctly many other functions don't perform these checks (I assume for performance reasons), Is there a reason this function is special in that regard?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, you should add a checks for valid tiles
@mrnix Update on this PR & review? |
@mrnix ? |
Apparently I have to submit a review completely to comment on a review on github? Hopefully my comments are visible now... |
Not sure how to do two different pull request for two different things, but this request is dependent on #39
Adds two new methods:
getNeighbors()
tilesToFeatureCollection()
Let me know if these are additions you are willing to accept, hopefully these are not gratuitous.