diff --git a/index.html b/index.html index f12272f..627823a 100644 --- a/index.html +++ b/index.html @@ -115,6 +115,9 @@ if (hash.length >= 2) { const y = parseFloat(hash[1]); const z = hash.length >= 3 ? parseInt(hash[2]) : 5; } +if (!isNaN(x) && !isNaN(y)) { + map.setView([y, x], isNaN(z) ? 5 : z); +} new CenteredTiles({ tileSize: TILE,