From 93d66a29273b5ebcd113666dbcc56becb097b525 Mon Sep 17 00:00:00 2001 From: Hans5958 Date: Fri, 7 Apr 2023 23:44:53 +0700 Subject: [PATCH] Fix renderBackground not using atlas data --- web/_js/main/draw.js | 4 ++-- web/_js/main/view.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/_js/main/draw.js b/web/_js/main/draw.js index 1aef981c..af673ce7 100644 --- a/web/_js/main/draw.js +++ b/web/_js/main/draw.js @@ -111,7 +111,7 @@ function initDraw() { let highlightUncharted = true - renderBackground() + renderBackground(atlas) applyView() container.style.cursor = "crosshair" @@ -772,7 +772,7 @@ function initDraw() { setView(center[0], center[1]) document.addEventListener('timeupdate', () => { - renderBackground() + renderBackground(atlas) updatePeriodGroups() }) diff --git a/web/_js/main/view.js b/web/_js/main/view.js index 7f230d14..00a5b2b1 100644 --- a/web/_js/main/view.js +++ b/web/_js/main/view.js @@ -56,7 +56,7 @@ moreEntriesButton.className = "btn btn-primary d-block mb-2 mx-auto" moreEntriesButton.id = "moreEntriesButton" moreEntriesButton.onclick = function () { buildObjectsList(null, null) - renderBackground() + renderBackground(atlas) render() }