From 9a6e4392dc52d677087154453b5b57886f4f5eb9 Mon Sep 17 00:00:00 2001 From: Daniel Nagel Date: Tue, 2 Sep 2025 12:42:12 +0200 Subject: [PATCH] index.html aktualisiert --- index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 627823a..bbc9e47 100644 --- a/index.html +++ b/index.html @@ -107,18 +107,19 @@ } }); - // === check URL hash === +// === check URL hash === // Format: #X,Y,Z (z.B. #22884,8249,5) const hash = window.location.hash.slice(1).split(','); if (hash.length >= 2) { const x = parseFloat(hash[0]); const y = parseFloat(hash[1]); const z = hash.length >= 3 ? parseInt(hash[2]) : 5; -} -if (!isNaN(x) && !isNaN(y)) { + if (!isNaN(x) && !isNaN(y)) { map.setView([y, x], isNaN(z) ? 5 : z); + } } + new CenteredTiles({ tileSize: TILE, noWrap: true,