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

fix tile debug rendering on satellite tiles #8380

Merged
merged 8 commits into from
Aug 15, 2019

Conversation

andrewharvey
Copy link
Collaborator

Launch Checklist

This change also increases the halo to 2px to improve readability, but I can change this back if you think it's now too bold.

Screenshot from 2019-06-22 14-02-04

  • write tests for all new functionality

I'll update the render test fixtures once we decide if the increase to 2px halo is okay or not.

  • manually test the debug page

@ryanhamley
Copy link
Contributor

ryanhamley commented Jun 24, 2019

The debug/tile-overscaled render test is failing now so you'll have to update that. If you want to finish this PR and then pick up #7314 that's fine with me. I won't get to it anytime soon so the help is appreciated.

@tristen
Copy link
Member

tristen commented Jun 28, 2019

@andrewharvey thanks for making this change!

This change also increases the halo to 2px to improve readability, but I can change this back if you think it's now too bold.

My 2c: It does feel a bit too bold.

@andrewharvey
Copy link
Collaborator Author

andrewharvey commented Jun 28, 2019

The debug/tile-overscaled render test is failing now so you'll have to update that.

I thought that was because I increased the halo to 2px, but it wasn't, the render test actually helped pickup an error in my code!

I've fixed that now but a new unit test I created for testing the debug tiles on satellite tiles, passes on my local machine but fails on circleci, it doesn't look like I can access circleci's artifacts from the job, so don't know what it's rendering on how it's different...

If you want to finish this PR and then pick up #7314 that's fine with me. I won't get to it anytime soon so the help is appreciated.

Yep I think I'll try to get this one merged first, then I'll try to work in your changes from #7314.

My 2c: It does feel a bit too bold.

That's okay, I've scaled it back to 1px.

@asheemmamoowala
Copy link
Contributor

I've fixed that now but a new unit test I created for testing the debug tiles on satellite tiles, passes on my local machine but fails on circleci, it doesn't look like I can access circleci's artifacts from the job, so don't know what it's rendering on how it's different...

Here's a link to the results: https://45149-8629417-gh.circle-artifacts.com/0/root/mapbox-gl-js/test/integration/render-tests/index.html

@andrewharvey
Copy link
Collaborator Author

Thanks for fixing that @asheemmamoowala, I could never work out why when I generated the fixture locally it looked fine and hence passed locally but for some reason that same test running on CI was different and hence failed. 🤔

@asheemmamoowala
Copy link
Contributor

I could never work out why when I generated the fixture locally it looked fine and hence passed locally

If I remember correctly you run a non-OSX setup. I believe the difference is subtle in the graphics driver and happens to change the output just enough to go past the tolerance for render tests.

Copy link
Contributor

@ryanhamley ryanhamley left a comment

Choose a reason for hiding this comment

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

This looks good to me. It even looks pretty good on a 4K screen.

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.

Tile number can't display on satellite style
4 participants