From 3019e35d041cfc7bbc10b70a11d563901d416a13 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 31 Aug 2020 15:45:53 +0300 Subject: [PATCH] changing resourceManager --- .../src/net/osmand/plus/server/map/MapVectorMiniLayer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/server/map/MapVectorMiniLayer.java b/OsmAnd/src/net/osmand/plus/server/map/MapVectorMiniLayer.java index 35bb264bff..dc7d58de7a 100644 --- a/OsmAnd/src/net/osmand/plus/server/map/MapVectorMiniLayer.java +++ b/OsmAnd/src/net/osmand/plus/server/map/MapVectorMiniLayer.java @@ -78,7 +78,8 @@ public class MapVectorMiniLayer extends OsmandMapMiniLayer { @Override public void initLayer(OsmandMapTileMiniView view) { this.view = view; - resourceManager = view.getApplication().getResourceManager(); + //resourceManager = view.getApplication().getResourceManager(); + resourceManager = new ResourceManager(view.getApplication()); paintImg = new Paint(); paintImg.setFilterBitmap(true); paintImg.setAlpha(getAlpha()); @@ -183,6 +184,10 @@ public class MapVectorMiniLayer extends OsmandMapMiniLayer { MapRenderRepositories renderer = resourceManager.getRenderer(); RotatedTileBox currentTileBlock = tilesRect; +// RotatedTileBox currentTileBlock = new RotatedTileBox.RotatedTileBoxBuilder() +// .setLocation(50.901430, 34.801775) +// .setZoom(15) +// .setPixelDimensions(canvas.getWidth(), canvas.getHeight(), 0.5f, 0.5f).build(); resourceManager.getRenderer().loadMap(currentTileBlock, resourceManager.getMapTileDownloader()); drawRenderedMap(canvas, renderer.getBitmap(), renderer.getBitmapLocation(), tilesRect); drawRenderedMap(canvas, renderer.getPrevBitmap(), renderer.getPrevBmpLocation(), tilesRect);