Improve handling of tile URLs
This commit is contained in:
parent
367deec7d1
commit
c739a062a3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user