From 34578ce3fd857f131515d3d0ac91c6b5a7a91813 Mon Sep 17 00:00:00 2001 From: Dennis Francis Date: Wed, 13 Jan 2021 15:18:01 +0530 Subject: [PATCH] fix the debug tile-border rectangles in red Signed-off-by: Dennis Francis Change-Id: I93b950a5f903ed5ed2713a518911f8e37eadddfc --- loleaflet/src/layer/tile/CanvasTileLayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loleaflet/src/layer/tile/CanvasTileLayer.js b/loleaflet/src/layer/tile/CanvasTileLayer.js index 1265407c0..cede91837 100644 --- a/loleaflet/src/layer/tile/CanvasTileLayer.js +++ b/loleaflet/src/layer/tile/CanvasTileLayer.js @@ -185,7 +185,7 @@ L.TileSectionManager = L.Class.extend({ if (this._layer._debug) { canvasCtx.strokeStyle = 'rgba(255, 0, 0, 0.5)'; - canvasCtx.strokeRect(tile.coords.x, tile.coords.y, 256, 256); + canvasCtx.strokeRect(tile.coords.x - paneBounds.min.x, tile.coords.y - paneBounds.min.y, 256, 256); } },