put Hillshade on 0.6 Layer
This commit is contained in:
parent
fbc8ab95f0
commit
09b3722b05
2 changed files with 5 additions and 5 deletions
|
@ -199,10 +199,10 @@ public class MapActivityLayers {
|
|||
|
||||
// update transparency
|
||||
int mapTransparency = settings.MAP_UNDERLAY.get() == null ? 255 : settings.MAP_TRANSPARENCY.get();
|
||||
if (OsmandPlugin.getEnabledPlugin(SRTMPlugin.class) != null
|
||||
&& OsmandPlugin.getEnabledPlugin(SRTMPlugin.class).isHillShadeLayerEnabled()) {
|
||||
mapTransparency = Math.min(mapTransparency, 170);
|
||||
}
|
||||
//if (OsmandPlugin.getEnabledPlugin(SRTMPlugin.class) != null
|
||||
// && OsmandPlugin.getEnabledPlugin(SRTMPlugin.class).isHillShadeLayerEnabled()) {
|
||||
// mapTransparency = Math.min(mapTransparency, 170);
|
||||
//}
|
||||
mapTileLayer.setAlpha(mapTransparency);
|
||||
mapVectorLayer.setAlpha(mapTransparency);
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ public class SRTMPlugin extends OsmandPlugin {
|
|||
}
|
||||
hillshadeLayer = new HillshadeLayer(activity, this);
|
||||
if (HILLSHADE.get()) {
|
||||
activity.getMapView().addLayer(hillshadeLayer, 0.3f);
|
||||
activity.getMapView().addLayer(hillshadeLayer, 0.6f);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue