Skip to content

Commit

Permalink
improved(display): Prevent transparency rendering issues when handlin…
Browse files Browse the repository at this point in the history
…g clipped data with offsets larger than remote source tile bounds.

Signed-off-by: Tim Deubler <[email protected]>
  • Loading branch information
TerminalTim committed Sep 30, 2024
1 parent 905cf22 commit f18c287
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/core/src/providers/FeatureProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1069,13 +1069,13 @@ export class FeatureProvider extends Provider {
let data;

prov.storage.forEach((tile) => {
if (tile.z != level || !tile.isLoaded()) {
if (tile.z != level || !tile.isLoaded() ||
// Verify that the tile is part of the specified tile pyramid,
// considering clipped data with offset and neighboring tiles.
tilePyramid?.indexOf(tile.quadkey) == -1
) {
return;
}
// if (tile.z == level && tile.isLoaded() && (
// // !tilePyramid || tilePyramid.startsWith(tile.quadkey)
// ) && tile.data.length) {

// var start = performance.now();
const tileData = tile.search(searchBBox);

Expand Down

0 comments on commit f18c287

Please sign in to comment.