put Hillshade on 0.6 Layer

This commit is contained in:
sonora 2013-04-07 15:56:05 +02:00
parent fbc8ab95f0
commit 09b3722b05
2 changed files with 5 additions and 5 deletions

View file

@ -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);

View file

@ -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);
}
}