Group layer implementation, closes #99
This commit is contained in:
@@ -1,6 +1,23 @@
|
||||
/*
|
||||
* Copyright 2016 devemux86
|
||||
*
|
||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||
*
|
||||
* 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.test;
|
||||
|
||||
import org.oscim.gdx.GdxMapApp;
|
||||
import org.oscim.layers.GroupLayer;
|
||||
import org.oscim.layers.tile.buildings.BuildingLayer;
|
||||
import org.oscim.layers.tile.vector.VectorTileLayer;
|
||||
import org.oscim.layers.tile.vector.labeling.LabelLayer;
|
||||
@@ -16,8 +33,10 @@ public class MapTest extends GdxMapApp {
|
||||
|
||||
VectorTileLayer l = map.setBaseMap(new OSciMap4TileSource());
|
||||
|
||||
map.layers().add(new BuildingLayer(map, l));
|
||||
map.layers().add(new LabelLayer(map, l));
|
||||
GroupLayer groupLayer = new GroupLayer(mMap);
|
||||
groupLayer.layers.add(new BuildingLayer(map, l));
|
||||
groupLayer.layers.add(new LabelLayer(map, l));
|
||||
map.layers().add(groupLayer);
|
||||
|
||||
map.setTheme(VtmThemes.DEFAULT);
|
||||
map.setMapPosition(53.075, 8.808, 1 << 17);
|
||||
|
||||
Reference in New Issue
Block a user