Update TerrainLayer.java
This commit is contained in:
parent
259a6169f2
commit
aaea244279
1 changed files with 7 additions and 2 deletions
|
@ -61,10 +61,15 @@ public class TerrainLayer extends MapTileLayer {
|
||||||
int zoom = tileBox.getZoom();
|
int zoom = tileBox.getZoom();
|
||||||
if (zoom >= srtmPlugin.getTerrainMinZoom() && zoom <= srtmPlugin.getTerrainMaxZoom()) {
|
if (zoom >= srtmPlugin.getTerrainMinZoom() && zoom <= srtmPlugin.getTerrainMaxZoom()) {
|
||||||
setAlpha(srtmPlugin.getTerrainTransparency());
|
setAlpha(srtmPlugin.getTerrainTransparency());
|
||||||
|
super.onPrepareBufferImage(canvas, tileBox, drawSettings);
|
||||||
|
} else if(zoom > srtmPlugin.getTerrainMaxZoom()) {
|
||||||
|
// backward compatibility 100 -> 20 with overscale
|
||||||
|
setAlpha(srtmPlugin.getTerrainTransparency() / 5);
|
||||||
|
super.onPrepareBufferImage(canvas, tileBox, drawSettings);
|
||||||
} else {
|
} else {
|
||||||
setAlpha(0);
|
// ignore
|
||||||
}
|
}
|
||||||
super.onPrepareBufferImage(canvas, tileBox, drawSettings);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void indexTerrainFiles(final OsmandApplication app) {
|
private void indexTerrainFiles(final OsmandApplication app) {
|
||||||
|
|
Loading…
Reference in a new issue