Samples for Shadow and Overpass (#670)

This commit is contained in:
Gustl22
2019-02-21 00:41:35 +01:00
committed by Emux
parent 8e685b7ebb
commit 31077cb637
9 changed files with 222 additions and 2 deletions

View File

@@ -68,6 +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);
mMap.layers().add(buildingLayer);
@@ -116,6 +117,9 @@ public class MapsforgeTest extends GdxMapApp {
@Override
public void dispose() {
if (SHADOWS)
BuildingLayer.SHADOW = false;
MapPreferences.saveMapPosition(mMap.getMapPosition());
super.dispose();
}