Fix hillshade layer
This commit is contained in:
parent
581f8d7ff5
commit
7a92d94913
2 changed files with 3 additions and 4 deletions
|
@ -103,8 +103,8 @@ public class MapillaryPlugin extends OsmandPlugin {
|
||||||
rasterSource = settings.getTileSourceByName(TileSourceManager.getMapillaryRasterSource().getName(), false);
|
rasterSource = settings.getTileSourceByName(TileSourceManager.getMapillaryRasterSource().getName(), false);
|
||||||
vectorSource = settings.getTileSourceByName(TileSourceManager.getMapillaryVectorSource().getName(), false);
|
vectorSource = settings.getTileSourceByName(TileSourceManager.getMapillaryVectorSource().getName(), false);
|
||||||
}
|
}
|
||||||
updateLayer(mapView, rasterSource, rasterLayer, 0.6f);
|
updateLayer(mapView, rasterSource, rasterLayer, 0.61f);
|
||||||
updateLayer(mapView, vectorSource, vectorLayer, 0.61f);
|
updateLayer(mapView, vectorSource, vectorLayer, 0.62f);
|
||||||
} else {
|
} else {
|
||||||
mapView.removeLayer(rasterLayer);
|
mapView.removeLayer(rasterLayer);
|
||||||
rasterLayer.setMap(null);
|
rasterLayer.setMap(null);
|
||||||
|
|
|
@ -305,8 +305,7 @@ public class ResourceManager {
|
||||||
|
|
||||||
public synchronized boolean tileExistOnFileSystem(String file, ITileSource map, int x, int y, int zoom) {
|
public synchronized boolean tileExistOnFileSystem(String file, ITileSource map, int x, int y, int zoom) {
|
||||||
TilesCache cache = getTilesCache(map);
|
TilesCache cache = getTilesCache(map);
|
||||||
return cache != null && !cache.tilesOnFS.containsKey(file)
|
return cache != null && cache.tileExistOnFileSystem(file, map, x, y, zoom);
|
||||||
&& cache.tileExistOnFileSystem(file, map, x, y, zoom);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void clearTileForMap(String file, ITileSource map, int x, int y, int zoom){
|
public void clearTileForMap(String file, ITileSource map, int x, int y, int zoom){
|
||||||
|
|
Loading…
Reference in a new issue