From 074609e6d5be9b681071b2868b3cb0aaca7e048a Mon Sep 17 00:00:00 2001 From: Alexey Pelykh Date: Tue, 3 Mar 2015 12:48:09 +0200 Subject: [PATCH] Fix --- .../src/net/osmand/core/android/MapRendererContext.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/OsmAnd/src/net/osmand/core/android/MapRendererContext.java b/OsmAnd/src/net/osmand/core/android/MapRendererContext.java index d097a152a4..f855db8069 100644 --- a/OsmAnd/src/net/osmand/core/android/MapRendererContext.java +++ b/OsmAnd/src/net/osmand/core/android/MapRendererContext.java @@ -17,6 +17,7 @@ import net.osmand.core.jni.MapPresentationEnvironment.LanguagePreference; import net.osmand.core.jni.MapPrimitivesProvider; import net.osmand.core.jni.MapPrimitiviser; import net.osmand.core.jni.MapRasterLayerProvider_Software; +import net.osmand.core.jni.MapRendererSetupOptions; import net.osmand.core.jni.MapStylesCollection; import net.osmand.core.jni.ObfMapObjectsProvider; import net.osmand.core.jni.QStringStringHash; @@ -231,6 +232,14 @@ public class MapRendererContext implements RendererRegistry.IRendererLoadedEvent } private void applyCurrentContextToView() { + mapRendererView.setMapRendererSetupOptionsConfigurator( + new MapRendererView.IMapRendererSetupOptionsConfigurator() { + @Override + public void configureMapRendererSetupOptions( + MapRendererSetupOptions mapRendererSetupOptions) { + mapRendererSetupOptions.setMaxNumberOfRasterMapLayersInBatch(1); + } + }); if (mapRendererView instanceof AtlasMapRendererView) { cachedReferenceTileSize = getReferenceTileSize(); ((AtlasMapRendererView)mapRendererView).setReferenceTileSizeOnScreenInPixels(cachedReferenceTileSize);