Add mapzoomin attribute, to adjust zoom in levels beyond native tile resolution

This commit is contained in:
Mike Primm 2011-07-21 23:25:59 -05:00
parent 8c134edce3
commit 559f251d50
7 changed files with 29 additions and 3 deletions

View file

@ -72,8 +72,9 @@ FlatMapType.prototype = $.extend(new DynMapType(), {
updateTileSize: function(zoom) {
var size;
var extrazoom = this.dynmap.world.extrazoomout;
var mapzoomin = this.dynmap.world.mapzoomin;
this.projection.extrazoom = extrazoom;
this.maxZoom = 3 + extrazoom;
this.maxZoom = mapzoomin + extrazoom;
if (zoom <= extrazoom) {
size = 128;
}