Tile grid layer scaling, closes #238

This commit is contained in:
Emux
2016-11-13 11:40:15 +02:00
parent 001dbe8447
commit 3584c4be1e
10 changed files with 50 additions and 11 deletions

View File

@@ -47,6 +47,11 @@ public abstract class GdxMap implements ApplicationListener {
protected void initDefaultLayers(TileSource tileSource, boolean tileGrid, boolean labels,
boolean buildings) {
initDefaultLayers(tileSource, tileGrid, labels, buildings, 1);
}
protected void initDefaultLayers(TileSource tileSource, boolean tileGrid, boolean labels,
boolean buildings, float scale) {
Layers layers = mMap.layers();
if (tileSource != null) {
@@ -61,7 +66,7 @@ public abstract class GdxMap implements ApplicationListener {
}
if (tileGrid)
layers.add(new TileGridLayer(mMap));
layers.add(new TileGridLayer(mMap, scale));
}
@Override