mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 19:25:15 +01:00
Fix marker position logic and zoom range calculation on Kzed and Flat
This commit is contained in:
parent
4bf9f9a978
commit
ee790f86ed
@ -536,6 +536,7 @@ public class FlatMap extends MapType {
|
||||
s(o, "backgroundnight", c.getString("backgroundnight"));
|
||||
s(o, "bigmap", this.isBigWorldMap(world));
|
||||
s(o, "mapzoomin", c.getInteger("mapzoomin", 3));
|
||||
s(o, "mapzoomout", world.getExtraZoomOutLevels());
|
||||
s(o, "compassview", "S"); /* Always from south */
|
||||
a(worldObject, "maps", o);
|
||||
}
|
||||
|
@ -587,6 +587,7 @@ public class DefaultTileRenderer implements MapTileRenderer {
|
||||
s(o, "backgroundnight", c.getString("backgroundnight"));
|
||||
s(o, "bigmap", map.isBigWorldMap(world));
|
||||
s(o, "mapzoomin", c.getInteger("mapzoomin", 3));
|
||||
s(o, "mapzoomout", world.getExtraZoomOutLevels()+1);
|
||||
s(o, "compassview", "SE"); /* Always from southeast */
|
||||
a(worldObject, "maps", o);
|
||||
}
|
||||
|
@ -14,8 +14,7 @@ var FlatMapType = DynmapTileLayer.extend({
|
||||
errorTileUrl: 'images/blank.png'
|
||||
},
|
||||
initialize: function(options) {
|
||||
options.maxzoomout = options.mapzoomout || options.world.extrazoomout;
|
||||
options.maxZoom = options.mapzoomin + options.maxzoomout;
|
||||
options.maxZoom = options.mapzoomin + options.mapzoomout;
|
||||
L.Util.setOptions(this, options);
|
||||
this.projection = new FlatProjection({mapzoomout: options.mapzoomout});
|
||||
},
|
||||
|
@ -20,7 +20,6 @@ var KzedMapType = DynmapTileLayer.extend({
|
||||
errorTileUrl: 'images/blank.png'
|
||||
},
|
||||
initialize: function(options) {
|
||||
options.mapzoomout = options.mapzoomout || options.world.extrazoomout;
|
||||
options.maxZoom = options.mapzoomin + options.mapzoomout;
|
||||
L.Util.setOptions(this, options);
|
||||
this.projection = new KzedProjection({mapzoomout: this.options.mapzoomout});
|
||||
|
Loading…
Reference in New Issue
Block a user