example: cleanup
This commit is contained in:
parent
5131d2efd7
commit
01f248632f
@ -3,6 +3,7 @@ package org.oscim.android.test;
|
|||||||
import org.oscim.android.cache.TileCache;
|
import org.oscim.android.cache.TileCache;
|
||||||
import org.oscim.layers.tile.TileLayer;
|
import org.oscim.layers.tile.TileLayer;
|
||||||
import org.oscim.layers.tile.s3db.S3DBLayer;
|
import org.oscim.layers.tile.s3db.S3DBLayer;
|
||||||
|
import org.oscim.layers.tile.vector.labeling.LabelLayer;
|
||||||
import org.oscim.theme.VtmThemes;
|
import org.oscim.theme.VtmThemes;
|
||||||
import org.oscim.tiling.TileSource;
|
import org.oscim.tiling.TileSource;
|
||||||
import org.oscim.tiling.source.oscimap4.OSciMap4TileSource;
|
import org.oscim.tiling.source.oscimap4.OSciMap4TileSource;
|
||||||
@ -19,9 +20,6 @@ public class S3DBMapActivity extends BaseMapActivity {
|
|||||||
|
|
||||||
mMap.setTheme(VtmThemes.DEFAULT);
|
mMap.setTheme(VtmThemes.DEFAULT);
|
||||||
|
|
||||||
//mMap.setTheme(VtmThemes.TRONRENDER);
|
|
||||||
//mMap.setTheme(VtmThemes.OSMARENDER);
|
|
||||||
|
|
||||||
TileSource ts = new OSciMap4TileSource("http://opensciencemap.org/tiles/s3db");
|
TileSource ts = new OSciMap4TileSource("http://opensciencemap.org/tiles/s3db");
|
||||||
|
|
||||||
if (USE_CACHE) {
|
if (USE_CACHE) {
|
||||||
@ -30,14 +28,10 @@ public class S3DBMapActivity extends BaseMapActivity {
|
|||||||
ts.setCache(mS3dbCache);
|
ts.setCache(mS3dbCache);
|
||||||
}
|
}
|
||||||
TileLayer tl = new S3DBLayer(mMap, ts);
|
TileLayer tl = new S3DBLayer(mMap, ts);
|
||||||
//OffscreenRenderer or = new OffscreenRenderer(mMap.getWidth(),
|
|
||||||
// mMap.getHeight());
|
|
||||||
//or.setRenderer(tl.getRenderer());
|
|
||||||
mMap.layers().add(tl);
|
mMap.layers().add(tl);
|
||||||
|
|
||||||
//mMap.layers().add(new GenericLayer(mMap, or));
|
mMap.layers().add(new LabelLayer(mMap, mBaseLayer));
|
||||||
|
|
||||||
//mMap.layers().add(new LabelLayer(mMap, mBaseLayer));
|
|
||||||
mMap.setMapPosition(53.08, 8.83, Math.pow(2, 17));
|
mMap.setMapPosition(53.08, 8.83, Math.pow(2, 17));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user