From c739a062a38a9670d845432a97a539301fc94cbb Mon Sep 17 00:00:00 2001 From: James Lyne Date: Tue, 22 Dec 2020 18:51:40 +0000 Subject: [PATCH] Improve handling of tile URLs --- src/leaflet/tileLayer/DynmapTileLayer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/leaflet/tileLayer/DynmapTileLayer.ts b/src/leaflet/tileLayer/DynmapTileLayer.ts index 6477e44..cca54b5 100644 --- a/src/leaflet/tileLayer/DynmapTileLayer.ts +++ b/src/leaflet/tileLayer/DynmapTileLayer.ts @@ -113,7 +113,7 @@ export class DynmapTileLayer extends TileLayer { url = `${window.config.url.tiles}${path}`; if(typeof timestamp !== 'undefined') { - url += `×tamp=${timestamp}`; + url += (url.indexOf('?') === -1 ? `?timestamp=${timestamp}` : `×tamp=${timestamp}`); } this._cachedTileUrls.set(name, url);