Skip to content

fix(geo-layers): do not cull projected tile boxes against geographic bounds - #11329

Open
athomct wants to merge 1 commit into
masterfrom
fix/tile-2d-view-projected-bbox-picking
Open

athomct wants to merge 1 commit into
masterfrom
fix/tile-2d-view-projected-bbox-picking

Conversation

@athomct

@athomct athomct commented Nov 25, 2026 •

Copy link
Copy Markdown

This PR and #11286 (tile preload) both edit tileset-2d.ts and tile-2d-view.ts, in different code.


Note

Low Risk
Low-risk targeted bug fix that prevents false culling for custom projected tilesets in geospatial viewports.

Overview
Prevents tiles with non-geographic bounding boxes (such as projected coordinates in meters) from being erroneously culled when viewed in a geospatial viewport.

Adds a canCullTileBoundingBox helper and checks it in both Tile2DView and Tileset2D's isTileVisible methods, bypassing bounding box culling whenever tile box units and viewport cull bounds are incompatible.

Reviewed by Cursor Bugbot for commit 3d8f528. Bugbot is set up for automated code reviews on this repo. Configure here.

…bounds

In a geospatial viewport, getCullBounds returns longitude and latitude.
isTileVisible compared these with {left, top, right, bottom} tile boxes
from a custom tileset, which can be in projected meters. No tile
overlapped, so picking found no tiles. Skip the cull check for such a
tile. A non-geospatial viewport still culls these boxes.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 82.782% (+0.03%) from 82.755% — fix/tile-2d-view-projected-bbox-picking into master

This branch has not been deployed

No deployments
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