parent
ba94b09bec
commit
2d50c6bd55
1 changed files with 2 additions and 3 deletions
|
@ -59,13 +59,12 @@ public class TerrainLayer extends MapTileLayer {
|
|||
@Override
|
||||
public void onPrepareBufferImage(Canvas canvas, RotatedTileBox tileBox, DrawSettings drawSettings) {
|
||||
int zoom = tileBox.getZoom();
|
||||
int transparency = 255 - (int) (2.55 * srtmPlugin.getTerrainTransparency());
|
||||
if (zoom >= srtmPlugin.getTerrainMinZoom() && zoom <= srtmPlugin.getTerrainMaxZoom()) {
|
||||
setAlpha(transparency);
|
||||
setAlpha(srtmPlugin.getTerrainTransparency());
|
||||
super.onPrepareBufferImage(canvas, tileBox, drawSettings);
|
||||
} else if(zoom > srtmPlugin.getTerrainMaxZoom()) {
|
||||
// backward compatibility 100 -> 20 with overscale
|
||||
setAlpha(transparency / 5);
|
||||
setAlpha(srtmPlugin.getTerrainTransparency() / 5);
|
||||
super.onPrepareBufferImage(canvas, tileBox, drawSettings);
|
||||
} else {
|
||||
// ignore
|
||||
|
|
Loading…
Reference in a new issue