Add mapzoomin attribute, to adjust zoom in levels beyond native tile resolution
This commit is contained in:
parent
8c134edce3
commit
559f251d50
7 changed files with 29 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue