BuildingLayer: add shadow parameter #575

This commit is contained in:
Emux
2019-02-21 20:12:20 +02:00
parent 7cfbe1c115
commit f348296a8c
5 changed files with 39 additions and 46 deletions

View File

@@ -68,8 +68,7 @@ public class MapsforgeTest extends GdxMapApp {
VectorTileLayer l = mMap.setBaseMap(tileSource);
loadTheme(null);
BuildingLayer.SHADOW = SHADOWS;
BuildingLayer buildingLayer = s3db ? new S3DBLayer(mMap, l) : new BuildingLayer(mMap, l);
BuildingLayer buildingLayer = s3db ? new S3DBLayer(mMap, l, SHADOWS) : new BuildingLayer(mMap, l, false, SHADOWS);
mMap.layers().add(buildingLayer);
if (poi3d)
@@ -117,9 +116,6 @@ public class MapsforgeTest extends GdxMapApp {
@Override
public void dispose() {
if (SHADOWS)
BuildingLayer.SHADOW = false;
MapPreferences.saveMapPosition(mMap.getMapPosition());
super.dispose();
}