From caeb56e156f0b4de494571a46e041ff56db9400e Mon Sep 17 00:00:00 2001 From: Alexey Pelykh Date: Fri, 17 Oct 2014 17:57:20 +0300 Subject: [PATCH] Fix --- OsmAnd/src/net/osmand/core/android/GLActivity.java | 2 +- .../src/net/osmand/plus/views/corenative/NativeQtLibrary.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/core/android/GLActivity.java b/OsmAnd/src/net/osmand/core/android/GLActivity.java index 5547d98cae..028d216a8f 100644 --- a/OsmAnd/src/net/osmand/core/android/GLActivity.java +++ b/OsmAnd/src/net/osmand/core/android/GLActivity.java @@ -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); diff --git a/OsmAnd/src/net/osmand/plus/views/corenative/NativeQtLibrary.java b/OsmAnd/src/net/osmand/plus/views/corenative/NativeQtLibrary.java index f3a9f9eae4..af04dc32ad 100644 --- a/OsmAnd/src/net/osmand/plus/views/corenative/NativeQtLibrary.java +++ b/OsmAnd/src/net/osmand/plus/views/corenative/NativeQtLibrary.java @@ -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); } }