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

include tile weight in tile debug #7963

Merged
merged 7 commits into from
Mar 1, 2019
Merged

include tile weight in tile debug #7963

merged 7 commits into from
Mar 1, 2019

Conversation

andrewharvey
Copy link
Collaborator

Launch Checklist

  • briefly describe the changes in this PR

screenshot from 2019-02-28 13-19-06

Include file size of tiles in tile debug.

It's okay if this isn't merged, but I found it useful...

If it's acceptable to include, I'll try to fix up the failing checks.

  • write tests for all new functionality
  • document any changes to public APIs
  • post benchmark scores
  • manually test the debug page

Copy link
Member

@mourner mourner left a comment

Choose a reason for hiding this comment

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

👍 to the idea. Let's update the debug tile render test, and fix any flow/lint errors.

@andrewharvey andrewharvey requested a review from mourner February 28, 2019 11:33
@mourner
Copy link
Member

mourner commented Feb 28, 2019

Nit: can you also shift the center of the render test so that it includes the new info?

@andrewharvey
Copy link
Collaborator Author

Nit: can you also shift the center of the render test so that it includes the new info?

Sure. The new tile size info is still showing up in the bottom left of the existing render test, so the test works, nonetheless I've repositioned it to the center so it's more obvious.

@mourner
Copy link
Member

mourner commented Mar 1, 2019

Oops, the render test failed :(

@andrewharvey
Copy link
Collaborator Author

Yikes, it passes for me locally, and all files are committed and pushed. 😕

> yarn run test-render debug/tile
yarn run v1.13.0
warning ../../package.json: No license field
$ node --max-old-space-size=2048 test/render.test.js debug/tile
This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.
* passed debug/tile-overscaled
* passed debug/tile
2 passed (100.0%)
Results at: mapbox-gl-js/test/integration/render-tests/index.html
Done in 3.28s.

@mourner
Copy link
Member

mourner commented Mar 1, 2019

@andrewharvey it's because of some antialiasing differences: https://38787-8629417-gh.circle-artifacts.com/0/root/mapbox-gl-js/test/integration/render-tests/index.html — not sure how to go about this one... Maybe experiment more with the coordinates, or up the tolerance diff (which is fine for a debug test).

@andrewharvey andrewharvey merged commit 434d03d into master Mar 1, 2019
@andrewharvey andrewharvey deleted the debug-tile-size branch March 1, 2019 12:48
@andrewharvey
Copy link
Collaborator Author

@andrewharvey it's because of some antialiasing differences: https://38787-8629417-gh.circle-artifacts.com/0/root/mapbox-gl-js/test/integration/render-tests/index.html — not sure how to go about this one... Maybe experiment more with the coordinates, or up the tolerance diff (which is fine for a debug test).

Thanks! Tweaking the coordinates did the trick.

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.

2 participants