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

Draw debug tiles for source with largest maxZoom #4990

Closed
wants to merge 0 commits into from

Conversation

asheemmamoowala
Copy link
Contributor

@asheemmamoowala asheemmamoowala commented Jul 17, 2017

Closes #4830
Closes #5535

@asheemmamoowala asheemmamoowala force-pushed the 4830-debug-tiles branch 2 times, most recently from 97eb1cb to 3c660d3 Compare July 18, 2017 00:32
@mourner
Copy link
Member

mourner commented Jul 19, 2017

I did the single source debug intentionally at some point, because it can get very confusing visually when you have multiple sources drawn at the same time (especially if they have different tile sizes etc.). Would it be better to keep the logic but just make sure we use a source that's visible on the current zoom (rather than just the first source)?

@asheemmamoowala
Copy link
Contributor Author

If we have multiple sources with difference tile sizes, this same problem would arise if we pick just one source, some sources might be using smaller tiles, and we may not be drawing those even if they are visible at the current zoom level.

@asheemmamoowala asheemmamoowala changed the title Draw debug tiles for all visible sources Draw debug tiles for source with largest maxZoom Nov 3, 2017
@asheemmamoowala
Copy link
Contributor Author

@mourner - I've changes this to draw tiles for just a single source -> the visible source with the largest maxZoom. This ensures that closest used tile boundary will be visible.

@elifitch elifitch requested review from lbud and removed request for lbud February 2, 2018 22:25
return `${this.z}/${this.x}/${this.y}`;
toString(sourceMaxZoom: number | void) {
if (sourceMaxZoom && sourceMaxZoom < this.z) {
return `${sourceMaxZoom}/${this.x}/${this.y} => ${this.z}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 is there any way I can talk you into writing a render test that shows this?

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.

4 participants