From e6ded009265489c5fd7455422ab3f1bd6b32c3c0 Mon Sep 17 00:00:00 2001 From: juliangiebel Date: Thu, 19 Sep 2024 16:24:02 +0200 Subject: [PATCH] a --- js/MapLoader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/MapLoader.js b/js/MapLoader.js index 7c5e150..d13f7b5 100644 --- a/js/MapLoader.js +++ b/js/MapLoader.js @@ -166,11 +166,11 @@ class MapLoader { if (gridLayer.tiled) { mapLayer = new TileLayer({ - //className: 'map', extent: [extent.a.x, extent.a.y, extent.b.x, extent.b.y], + updateWhileInteracting: true, + updateWhileAnimating: true, source: new XYZ({ attributions: data.attributions, - tileLoadFunction: TileImagePreloader.load, url: "https://" + gridLayer.url.replace(/https?:\/\//, "") + "/{x}/{y}/{z}", tileGrid: new TileGrid({ extent: [extent.a.x, extent.a.y, extent.b.x, extent.b.y],