Fix zoom on KzedMap when bigworld=false

This commit is contained in:
Mike Primm 2011-08-02 16:10:04 -05:00
parent 8cef3fb478
commit 257b1c37f1

View File

@ -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
};