mirror of https://github.com/webbukkit/dynmap.git
Fix cache poisoning on initial tiles on view
This commit is contained in:
parent
3f2d9dd5df
commit
7bcce9c7e0
|
@ -194,7 +194,9 @@ var DynmapTileLayer = L.TileLayer.extend({
|
||||||
if (!url) {
|
if (!url) {
|
||||||
this._cachedTileUrls[tileName] = url = this.options.dynmap.getTileUrl(tileName);
|
this._cachedTileUrls[tileName] = url = this.options.dynmap.getTileUrl(tileName);
|
||||||
}
|
}
|
||||||
|
if (typeof timestamp === 'undefined') {
|
||||||
|
timestamp = this.options.dynmap.inittime
|
||||||
|
}
|
||||||
if(typeof timestamp !== 'undefined') {
|
if(typeof timestamp !== 'undefined') {
|
||||||
url += (url.indexOf('?') === -1 ? '?timestamp=' + timestamp : '×tamp=' + timestamp);
|
url += (url.indexOf('?') === -1 ? '?timestamp=' + timestamp : '×tamp=' + timestamp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue