Skip to content

feat(BitmapLayer): add tile loading placeholders - #10359

Closed
charlieforward9 wants to merge 2 commits into
masterfrom
codex/tile-placeholder-globe-stack-demo
Closed

charlieforward9 wants to merge 2 commits into
masterfrom
codex/tile-placeholder-globe-stack-demo

Conversation

@charlieforward9

@charlieforward9 charlieforward9 commented Jun 9, 2026 •

Copy link
Copy Markdown
Member

Background

Tiles show nothing while they load. This adds opt-in placeholders, closer to Google Maps' loading behavior.

Screen.Recording.2026-06-09.at.7.17.07.PM.mov

Change List

  • Opt-in TileLayer.renderPlaceholder for selected tiles with no loaded content
  • refinementStrategy: 'no-overlap' prefers placeholders over cached ancestors or children. Default refinement is unchanged
  • Forward renderPlaceholder through tiled TerrainLayer
  • Placeholder demos in the map-tile and image-tile examples
  • Unit tests and documentation

Follow-up: remove the intermediate frame between the placeholder and the final bitmap. Verified with lint and the TileLayer/TerrainLayer node tests.

@charlieforward9
charlieforward9 force-pushed the codex/tile-placeholder-globe-stack-demo branch from 41a8aff to f145fe8 Compare June 9, 2026 23:43
@charlieforward9 charlieforward9 changed the title Add tile loading placeholders feat(BitmapLayer): add tile loading placeholders Jun 9, 2026
@chrisgervang

Copy link
Copy Markdown
Collaborator

Why are the paths not always visible on the globe? Is it a gap of tiles where no tiles are being requested, or are they there but covered by something?

In other words, is the grey we're seeing on the globe the back side or the front side?

Another approach to consider: Could this effect be implemented with an always-present grid layer that's just rendered underneath a tile layer? It's less clever, but also easier to reason about

@felixpalmer

Copy link
Copy Markdown
Collaborator

an always-present grid layer

I'm with @chrisgervang on this, it seems like an simpler way to achieve the same thing. The fact that there is a "caveat" which that adds a random blank grey frame doesn't smell good to me. I would say try to implement the result you want without modifying TileLayer first - the tile loading mechanics are complex enough already, I don't think we should be changing them unless necessary

@charlieforward9

Copy link
Copy Markdown
Member Author

Closing in favor of the direction @chrisgervang and @felixpalmer suggested (an always-present grid/background layer under the tiles) and #10306, which keeps coverage on screen during loads by ordering placeholder and prefetch requests. If loading placeholders are still needed after #10306 lands, I'll open a smaller PR along those lines.

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.

3 participants