From 1fe3091f4345c6295f0263e5da5e9d7f8249416e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Fri, 12 Apr 2013 17:40:28 +0200 Subject: [PATCH] Fix bug in canvas.TileLayer comments --- src/ol/renderer/canvas/canvastilelayerrenderer.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ol/renderer/canvas/canvastilelayerrenderer.js b/src/ol/renderer/canvas/canvastilelayerrenderer.js index 522c4c1d07..a84f67ca10 100644 --- a/src/ol/renderer/canvas/canvastilelayerrenderer.js +++ b/src/ol/renderer/canvas/canvastilelayerrenderer.js @@ -156,9 +156,11 @@ ol.renderer.canvas.TileLayer.prototype.renderFrame = // coords, this is to be able to handler irregular tile grids. // // - We're now ready to render. We start by calling clearRect - // for the tiles that aren't loaded and that don't have a - // corresponding low-resolution tile. We then render "back to - // front", i.e. starting with the low-resolution tiles. + // for the tiles that aren't loaded yet and are not fully covered + // by a low-resolution tile (if they're loaded, we'll draw them; + // if they're fully covered by a low-resolution tile then there's + // no need to clear). We then render the tiles "back to front", + // i.e. starting with the low-resolution tiles. // // - After rendering some bookkeeping is performed (updateUsedTiles, // etc.). manageTilePyramid is what enqueue tiles in the tile