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
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue