diff --git a/src/org/oscim/overlay/BuildingOverlay.java b/src/org/oscim/overlay/BuildingOverlay.java new file mode 100644 index 00000000..bc59ff49 --- /dev/null +++ b/src/org/oscim/overlay/BuildingOverlay.java @@ -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 . + */ +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); + } +} diff --git a/src/org/oscim/view/MapView.java b/src/org/oscim/view/MapView.java index 31cac267..ef3f2176 100644 --- a/src/org/oscim/view/MapView.java +++ b/src/org/oscim/view/MapView.java @@ -38,14 +38,13 @@ import org.oscim.generator.JobQueue; import org.oscim.generator.JobTile; import org.oscim.generator.MapWorker; import org.oscim.generator.TileGenerator; -import org.oscim.overlay.GenericOverlay; +import org.oscim.overlay.BuildingOverlay; import org.oscim.overlay.LabelingOverlay; import org.oscim.overlay.Overlay; import org.oscim.overlay.OverlayManager; import org.oscim.renderer.GLRenderer; import org.oscim.renderer.GLView; import org.oscim.renderer.TileManager; -import org.oscim.renderer.overlays.ExtrusionOverlay; import org.oscim.theme.ExternalRenderTheme; import org.oscim.theme.InternalRenderTheme; import org.oscim.theme.RenderTheme; @@ -185,7 +184,7 @@ public class MapView extends RelativeLayout { enableRotation = true; //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 GenericOverlay(this, new TestOverlay(this)));