-
Notifications
You must be signed in to change notification settings - Fork 15
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
Should we enforce a single "z"? #12
Comments
👍 I think that all the tiles passed to As context, I think the logic to figure out which tiles to pass should live outside vtquery's async c++ function. That logic could potentially work like:
|
Okay great! I agree @springmeyer that separating "which" buffers you query should be something implemented downstream. I like the idea of keeping z/x/y in the tiles array still and just verifying they are all equal. |
We are enforcing a single z level in the library now 👍 thanks @springmeyer! |
Once we go into the worker, we have the following information:
If we are looping through each buffer, we'll have to calculate the tile coordinates of the query lng/lat based on each buffer's
z
level. If we made the assumption that every buffer was at the same zoom level (defined outside of the tiles array) we could calculate the query tile coordinates once and essentially update their origin point according to each buffer's x/y values in the loop.So the API would change to:
cc @springmeyer
The text was updated successfully, but these errors were encountered: