Fix
This commit is contained in:
parent
83892c8cbb
commit
caeb56e156
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue