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

@ -518,6 +518,7 @@ public class FlatMap extends MapType {
s(o, "backgroundday", c.getString("backgroundday"));
s(o, "backgroundnight", c.getString("backgroundnight"));
s(o, "bigmap", this.isBigWorldMap(world));
s(o, "mapzoomin", c.getInteger("mapzoomin", 3));
s(o, "compassview", "S"); /* Always from south */
a(worldObject, "maps", o);
}

View file

@ -144,6 +144,7 @@ public class HDMap extends MapType {
s(o, "backgroundnight", c.getString("backgroundnight"));
s(o, "bigmap", true);
s(o, "mapzoomout", (world.getExtraZoomOutLevels()+mapzoomout));
s(o, "mapzoomin", c.getInteger("mapzoomin", 2));
perspective.addClientConfiguration(o);
shader.addClientConfiguration(o);
lighting.addClientConfiguration(o);

View file

@ -579,6 +579,7 @@ public class DefaultTileRenderer implements MapTileRenderer {
s(o, "backgroundday", c.getString("backgroundday"));
s(o, "backgroundnight", c.getString("backgroundnight"));
s(o, "bigmap", map.isBigWorldMap(world));
s(o, "mapzoomin", c.getInteger("mapzoomin", 3));
s(o, "compassview", "SE"); /* Always from southeast */
a(worldObject, "maps", o);
}