This commit is contained in:
Alexey Pelykh 2014-10-17 17:57:20 +03:00
parent 83892c8cbb
commit caeb56e156
2 changed files with 3 additions and 3 deletions

View file

@ -229,7 +229,7 @@ public class GLActivity extends Activity {
if (mapnik == null) if (mapnik == null)
Log.e(TAG, "Failed to create mapnik"); Log.e(TAG, "Failed to create mapnik");
*/ */
_mapRenderer.setRasterLayerProvider(RasterMapLayerId.BaseLayer, _binaryMapRasterLayerProvider); _mapRenderer.setMapLayerProvider(0, _binaryMapRasterLayerProvider);
_glSurfaceView = (GLSurfaceView) findViewById(R.id.glSurfaceView); _glSurfaceView = (GLSurfaceView) findViewById(R.id.glSurfaceView);
//TODO:_glSurfaceView.setPreserveEGLContextOnPause(true); //TODO:_glSurfaceView.setPreserveEGLContextOnPause(true);

View file

@ -164,14 +164,14 @@ public class NativeQtLibrary {
notGc(new Primitiviser(presentation)), rasterTileSize)); notGc(new Primitiviser(presentation)), rasterTileSize));
BinaryMapRasterLayerProvider_Software binaryMapRasterLayerProvider = notGc(new BinaryMapRasterLayerProvider_Software( BinaryMapRasterLayerProvider_Software binaryMapRasterLayerProvider = notGc(new BinaryMapRasterLayerProvider_Software(
binaryMapPrimitivesProvider)); binaryMapPrimitivesProvider));
mapRenderer.setRasterLayerProvider(RasterMapLayerId.BaseLayer, binaryMapRasterLayerProvider); mapRenderer.setMapLayerProvider(0, binaryMapRasterLayerProvider);
// BinaryMapStaticSymbolsProvider binaryMapStaticSymbolsProvider = notGc(new BinaryMapStaticSymbolsProvider( // BinaryMapStaticSymbolsProvider binaryMapStaticSymbolsProvider = notGc(new BinaryMapStaticSymbolsProvider(
// binaryMapPrimitivesProvider, rasterTileSize)); // binaryMapPrimitivesProvider, rasterTileSize));
// mapRenderer.addSymbolProvider(binaryMapStaticSymbolsProvider); // mapRenderer.addSymbolProvider(binaryMapStaticSymbolsProvider);
} else { } else {
OnlineRasterMapLayerProvider onlineMapRasterLayerProvider = notGc(OnlineTileSources.getBuiltIn() OnlineRasterMapLayerProvider onlineMapRasterLayerProvider = notGc(OnlineTileSources.getBuiltIn()
.createProviderFor("Mapnik (OsmAnd)")); .createProviderFor("Mapnik (OsmAnd)"));
mapRenderer.setRasterLayerProvider(RasterMapLayerId.BaseLayer, onlineMapRasterLayerProvider); mapRenderer.setMapLayerProvider(0, onlineMapRasterLayerProvider);
} }
} }