mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +01:00
Merge pull request #363 from mikeprimm/master
And another KzedMap Zoom fix - for non-bigworld this time
This commit is contained in:
commit
4bf9f9a978
@ -28,7 +28,7 @@ var KzedMapType = DynmapTileLayer.extend({
|
||||
getTileName: function(tilePoint, zoom) {
|
||||
var info = this.getTileInfo(tilePoint, zoom);
|
||||
return namedReplace(this.options.bigmap
|
||||
? '{prefix}{nightday}/{scaledx}_{scaledy}/{zoomprefix}{x}_{y}.png'
|
||||
? '{zprefix}{nightday}/{scaledx}_{scaledy}/{zoomprefix}{x}_{y}.png'
|
||||
: '{zoom}{prefix}{nightday}_{x}_{y}.png'
|
||||
, this.getTileInfo(tilePoint, zoom));
|
||||
},
|
||||
@ -45,7 +45,8 @@ var KzedMapType = DynmapTileLayer.extend({
|
||||
scaledx: x >> 12,
|
||||
scaledy: y >> 12,
|
||||
zoom: this.zoomprefix(zoomoutlevel),
|
||||
zoomprefix: (zoomoutlevel==0)?"":(this.zoomprefix(zoomoutlevel)+"_"),
|
||||
zoomprefix: (zoomoutlevel<2)?"":(this.zoomprefix(zoomoutlevel-1)+"_"),
|
||||
zprefix: (zoomoutlevel==0)?this.options.prefix:("z"+this.options.prefix),
|
||||
x: x,
|
||||
y: y
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user