Skip to content

Commit

Permalink
fix isParentTile when isFirstRender, close maptalks/issue#751
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Oct 9, 2024
1 parent 1bd48a1 commit 363e3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/layer/tilelayer/TileLayerCanvasRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class TileLayerCanvasRenderer extends CanvasRenderer {
for (let j = 0, l = allTiles.length; j < l; j++) {
const tile = allTiles[j];
const tileId = tile.id;
const isParentTile = j < parentCount;
const isParentTile = !isFirstRender && j < parentCount;
//load tile in cache at first if it has.
let tileLoading = false;
const tilesCount = tiles.length;
Expand Down

0 comments on commit 363e3df

Please sign in to comment.