From 363e3df47f93ffb17f6afc4e78407a24c0a7044a Mon Sep 17 00:00:00 2001 From: fuzhenn Date: Wed, 9 Oct 2024 15:52:36 +0800 Subject: [PATCH] fix isParentTile when isFirstRender, close maptalks/issue#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;