From 09b3722b05de3a120167a6018e4ba2e3ed38fc7a Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 7 Apr 2013 15:56:05 +0200 Subject: [PATCH] put Hillshade on 0.6 Layer --- .../src/net/osmand/plus/activities/MapActivityLayers.java | 8 ++++---- OsmAnd/src/net/osmand/plus/srtmplugin/SRTMPlugin.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java index 15a0e18b66..4b7f4e7aa4 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java @@ -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); diff --git a/OsmAnd/src/net/osmand/plus/srtmplugin/SRTMPlugin.java b/OsmAnd/src/net/osmand/plus/srtmplugin/SRTMPlugin.java index 39588db11e..80b0ceb546 100644 --- a/OsmAnd/src/net/osmand/plus/srtmplugin/SRTMPlugin.java +++ b/OsmAnd/src/net/osmand/plus/srtmplugin/SRTMPlugin.java @@ -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); } }