From 402021f113814074241695ebd415bb2595e37aa9 Mon Sep 17 00:00:00 2001 From: TheClashFruit Date: Sun, 3 Mar 2024 11:46:11 +0100 Subject: [PATCH] feat: new tile url --- js/map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/map.js b/js/map.js index 240b083..19b9769 100644 --- a/js/map.js +++ b/js/map.js @@ -5,7 +5,7 @@ L.TileLayer.CRSSLayer = L.TileLayer.extend({ const tileZ = coordinate.z; - const url = ('https://cdn.theclashfruit.me/crss/map/{z}/{xd}/{yd}/tile.{x}.{y}.png') + const url = ('https://cdn-new.theclashfruit.me/crss/tiles/zoom.{z}/{xd}/{yd}/tile.{x}.{y}.png') .replace('{yd}', Math.floor(tileY / 10)) .replace('{xd}', Math.floor(tileX / 10)) .replace('{y}', tileY) @@ -20,7 +20,7 @@ L.tileLayer.crssLayer = function(templateUrl, options) { return new L.TileLayer.CRSSLayer(templateUrl, options); } -let mapLayer = L.tileLayer.crssLayer('https://cdn.theclashfruit.me/crss/map_new/{xd}/{yd}/tile.{x}.{y}.png', { +let mapLayer = L.tileLayer.crssLayer('https://cdn-new.theclashfruit.me/crss/tiles/zoom.{z}/{xd}/{yd}/tile.{x}.{y}.png', { attribution: '© CRSS Players | Tiles With uNmINeD.', tileSize: 256,