From b1f9ffcb8d77d15e501639e970c2377766e33ddd Mon Sep 17 00:00:00 2001 From: fuzhenn Date: Wed, 9 Oct 2024 15:53:45 +0800 Subject: [PATCH] fix isParentTile when isFirstRender, close maptalks/issues#751 --- src/renderer/layer/tilelayer/TileLayerCanvasRenderer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/layer/tilelayer/TileLayerCanvasRenderer.ts b/src/renderer/layer/tilelayer/TileLayerCanvasRenderer.ts index a2409bea43..9a9636d066 100644 --- a/src/renderer/layer/tilelayer/TileLayerCanvasRenderer.ts +++ b/src/renderer/layer/tilelayer/TileLayerCanvasRenderer.ts @@ -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;