start actual BuildingOverlay

This commit is contained in:
Hannes Janetzek 2013-01-05 08:01:13 +01:00
parent 7cc32f1572
commit 28278ba102
2 changed files with 30 additions and 3 deletions

View File

@ -0,0 +1,28 @@
/*
* Copyright 2013 OpenScienceMap
*
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.oscim.overlay;
import org.oscim.renderer.overlays.ExtrusionOverlay;
import org.oscim.view.MapView;
/**
* @author Hannes Janetzek
*/
public class BuildingOverlay extends Overlay {
public BuildingOverlay(MapView mapView) {
super();
mLayer = new ExtrusionOverlay(mapView);
}
}

View File

@ -38,14 +38,13 @@ import org.oscim.generator.JobQueue;
import org.oscim.generator.JobTile; import org.oscim.generator.JobTile;
import org.oscim.generator.MapWorker; import org.oscim.generator.MapWorker;
import org.oscim.generator.TileGenerator; import org.oscim.generator.TileGenerator;
import org.oscim.overlay.GenericOverlay; import org.oscim.overlay.BuildingOverlay;
import org.oscim.overlay.LabelingOverlay; import org.oscim.overlay.LabelingOverlay;
import org.oscim.overlay.Overlay; import org.oscim.overlay.Overlay;
import org.oscim.overlay.OverlayManager; import org.oscim.overlay.OverlayManager;
import org.oscim.renderer.GLRenderer; import org.oscim.renderer.GLRenderer;
import org.oscim.renderer.GLView; import org.oscim.renderer.GLView;
import org.oscim.renderer.TileManager; import org.oscim.renderer.TileManager;
import org.oscim.renderer.overlays.ExtrusionOverlay;
import org.oscim.theme.ExternalRenderTheme; import org.oscim.theme.ExternalRenderTheme;
import org.oscim.theme.InternalRenderTheme; import org.oscim.theme.InternalRenderTheme;
import org.oscim.theme.RenderTheme; import org.oscim.theme.RenderTheme;
@ -185,7 +184,7 @@ public class MapView extends RelativeLayout {
enableRotation = true; enableRotation = true;
//mOverlayManager.add(new GenericOverlay(this, new GridOverlay(this))); //mOverlayManager.add(new GenericOverlay(this, new GridOverlay(this)));
mOverlayManager.add(new GenericOverlay(this, new ExtrusionOverlay(this))); mOverlayManager.add(new BuildingOverlay(this));
mOverlayManager.add(new LabelingOverlay(this)); mOverlayManager.add(new LabelingOverlay(this));
// mOverlayManager.add(new GenericOverlay(this, new TestOverlay(this))); // mOverlayManager.add(new GenericOverlay(this, new TestOverlay(this)));