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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,9 +73,10 @@ HDMapType.prototype = $.extend(new DynMapType(), {
|
|||
updateTileSize: function(zoom) {
|
||||
var size;
|
||||
var extrazoom = this.mapzoomout;
|
||||
var mapzoomin = this.mapzoomin;
|
||||
this.projection.extrazoom = extrazoom;
|
||||
this.projection.worldtomap = this.worldtomap;
|
||||
this.maxZoom = 2 + extrazoom;
|
||||
this.maxZoom = mapzoomin + extrazoom;
|
||||
if (zoom <= extrazoom) {
|
||||
size = 128;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -115,8 +115,9 @@ KzedMapType.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;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue