Skip to content

Commit

Permalink
fix missed parent tiles when TileLayer in terrain, close maptalks/iss…
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Feb 26, 2024
1 parent 57478bc commit 1dc4219
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/layer/tilelayer/TileLayerCanvasRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ class TileLayerCanvasRenderer extends CanvasRenderer {
const loadingLimit = this._getLoadLimit();

const l = tileGrids.length;
const isFirstRender = layer.options['currentTilesFirst'] && this._tileZoom === undefined;
// !this._terrainHelper can't be deleted as parent tiles are part of terrain skin, maptalks/issues#608
const isFirstRender = this._tileZoom === undefined && layer.options['currentTilesFirst'] && !this._terrainHelper;
// main tile grid is the last one (draws on top)
this._tileZoom = tileGrids[0]['zoom'];

Expand Down

0 comments on commit 1dc4219

Please sign in to comment.