-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Clarification on tile size displayed in showTileBoundaries option #8376
Comments
The size is the Uncompressed raw bytes
It represents the size of just one source's tileset. If that is a composited tileset, then it will include the size of the entire composite. mapbox-gl-js/src/render/painter.js Lines 430 to 435 in 5d72c36
|
👍 thanks @asheemmamoowala! can we document this under its entry in the API docs?
For un-composited styles, how does it decide which source to use? Would it be worth including the name of the tileset in the debug display as well? |
My original intent in #7963 was for it to include the size all sources together. This gets complicated when you mix tileSize's eg. 256 satellite tiles with 512 vector tiles, but if someone want's to add support for that then I'm okay, but I don't see it as super important. From my testing it seems to take the first source, but I don't know if that's guaranteed. I'm okay with documenting it, but so long as that doesn't stop us from changing it in the future to include all sources. |
I attempted to include the tile size for all sources in https://github.com/mapbox/mapbox-gl-js/tree/show-debug-tile-size-sum. It might need to be cleaned up and I'll need to test it more for a wider variety of cases, but do you think we should aim to get this changed rather than documenting the current situation? I think we can still document that it's uncompressed tile size. |
I just discovered #7314, at some point we'll need to merge these. |
I'm not sure the tile debug mode should be overloaded with all this hard to read information. Tile size can be easily inspected in the browser network tools. Only vector tiles have the Given these complexities, either tile size should be listed per source or left as-is. |
The original issue was resolved by updating the docs in #8379, so I'll close this now. Can follow up on how we should treat multiple source sizes in another issue or PR. |
mapbox-gl-js version:
v1.0.0
Question
It's not clear to me what the tile size represents. For instance:
It also looks like its missing an explanation where its documented:
Links to related documentation
https://jsfiddle.net/6ga8ofpd/embedded/result/?username=tristen
The text was updated successfully, but these errors were encountered: