From 7a92d94913d4685954a87719906a72dc812a28c3 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Fri, 19 May 2017 22:49:46 +0300 Subject: [PATCH] Fix hillshade layer --- OsmAnd/src/net/osmand/plus/mapillary/MapillaryPlugin.java | 4 ++-- OsmAnd/src/net/osmand/plus/resources/ResourceManager.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapillary/MapillaryPlugin.java b/OsmAnd/src/net/osmand/plus/mapillary/MapillaryPlugin.java index 3ae59ab7c4..151b397ad3 100644 --- a/OsmAnd/src/net/osmand/plus/mapillary/MapillaryPlugin.java +++ b/OsmAnd/src/net/osmand/plus/mapillary/MapillaryPlugin.java @@ -103,8 +103,8 @@ public class MapillaryPlugin extends OsmandPlugin { rasterSource = settings.getTileSourceByName(TileSourceManager.getMapillaryRasterSource().getName(), false); vectorSource = settings.getTileSourceByName(TileSourceManager.getMapillaryVectorSource().getName(), false); } - updateLayer(mapView, rasterSource, rasterLayer, 0.6f); - updateLayer(mapView, vectorSource, vectorLayer, 0.61f); + updateLayer(mapView, rasterSource, rasterLayer, 0.61f); + updateLayer(mapView, vectorSource, vectorLayer, 0.62f); } else { mapView.removeLayer(rasterLayer); rasterLayer.setMap(null); diff --git a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java index 1b4219ab0b..e3b79cf15b 100644 --- a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java +++ b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java @@ -305,8 +305,7 @@ public class ResourceManager { public synchronized boolean tileExistOnFileSystem(String file, ITileSource map, int x, int y, int zoom) { TilesCache cache = getTilesCache(map); - return cache != null && !cache.tilesOnFS.containsKey(file) - && cache.tileExistOnFileSystem(file, map, x, y, zoom); + return cache != null && cache.tileExistOnFileSystem(file, map, x, y, zoom); } public void clearTileForMap(String file, ITileSource map, int x, int y, int zoom){