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

Adjusts tile xy value when coordinates are out of bounds #84

Merged
merged 8 commits into from
Jan 13, 2015
Merged

Conversation

fdansv
Copy link
Contributor

@fdansv fdansv commented Jan 12, 2015

Ref #82

Same problem, I was using the wrong branch in the previous PR.

@javisantana

@fdansv
Copy link
Contributor Author

fdansv commented Jan 13, 2015

@javisantana review!

@javisantana
Copy link
Contributor

is there a reason why here (https://github.com/CartoDB/torque/blob/coord-wrap/lib/torque/provider/windshaft.js#L296) corrected is not used?

@fdansv
Copy link
Contributor Author

fdansv commented Jan 13, 2015

Yep: we need to callback the tile rendering function with the original tile numbers, not the corrected ones, otherwise they will only render in the "corrected" tile positions (i.e. the ones within the normal coordinate ranges).

We only need corrected values to ask the server for the right tiles.

@javisantana
Copy link
Contributor

nice, thanks

🇪🇸

@fdansv
Copy link
Contributor Author

fdansv commented Jan 13, 2015

:shipit:
(cc @saleiva)

fdansv added a commit that referenced this pull request Jan 13, 2015
Adjusts tile xy value when coordinates are out of bounds
@fdansv fdansv merged commit 93e0b81 into master Jan 13, 2015
@fdansv fdansv deleted the coord-wrap branch January 13, 2015 14:32
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.

None yet

2 participants