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)
Log.e(TAG, "Failed to create mapnik");
*/
_mapRenderer.setRasterLayerProvider(RasterMapLayerId.BaseLayer, _binaryMapRasterLayerProvider);
_mapRenderer.setMapLayerProvider(0, _binaryMapRasterLayerProvider);
_glSurfaceView = (GLSurfaceView) findViewById(R.id.glSurfaceView);
//TODO:_glSurfaceView.setPreserveEGLContextOnPause(true);

View file

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