poi3D enhancements for playground (#607)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright 2016-2018 devemux86
|
||||
* Copyright 2018 Gustl22
|
||||
*
|
||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||
*
|
||||
@@ -19,6 +20,7 @@ package org.oscim.test;
|
||||
import org.oscim.core.MapPosition;
|
||||
import org.oscim.core.Tile;
|
||||
import org.oscim.gdx.GdxMapApp;
|
||||
import org.oscim.gdx.poi3d.Poi3DLayer;
|
||||
import org.oscim.layers.tile.buildings.BuildingLayer;
|
||||
import org.oscim.layers.tile.buildings.S3DBLayer;
|
||||
import org.oscim.layers.tile.vector.VectorTileLayer;
|
||||
@@ -39,15 +41,17 @@ import java.io.File;
|
||||
public class MapsforgeTest extends GdxMapApp {
|
||||
|
||||
private File mapFile;
|
||||
private boolean poi3d;
|
||||
private boolean s3db;
|
||||
|
||||
MapsforgeTest(File mapFile) {
|
||||
this(mapFile, false);
|
||||
this(mapFile, false, false);
|
||||
}
|
||||
|
||||
MapsforgeTest(File mapFile, boolean s3db) {
|
||||
MapsforgeTest(File mapFile, boolean s3db, boolean poi3d) {
|
||||
this.mapFile = mapFile;
|
||||
this.s3db = s3db;
|
||||
this.poi3d = poi3d;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -63,6 +67,10 @@ public class MapsforgeTest extends GdxMapApp {
|
||||
mMap.layers().add(new S3DBLayer(mMap, l));
|
||||
else
|
||||
mMap.layers().add(new BuildingLayer(mMap, l));
|
||||
|
||||
if (poi3d)
|
||||
mMap.layers().add(new Poi3DLayer(mMap, l));
|
||||
|
||||
mMap.layers().add(new LabelLayer(mMap, l));
|
||||
|
||||
DefaultMapScaleBar mapScaleBar = new DefaultMapScaleBar(mMap);
|
||||
|
||||
Reference in New Issue
Block a user