fix the debug tile-border rectangles in red

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I93b950a5f903ed5ed2713a518911f8e37eadddfc
This commit is contained in:
Dennis Francis 2021-01-13 15:18:01 +05:30 committed by Dennis Francis
parent 136f20b386
commit 34578ce3fd

View file

@ -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);
}
},