Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
7e410748d8
1 changed files with 7 additions and 1 deletions
|
@ -72,6 +72,7 @@ public class MapRenderRepositories {
|
||||||
private final static Log log = PlatformUtil.getLog(MapRenderRepositories.class);
|
private final static Log log = PlatformUtil.getLog(MapRenderRepositories.class);
|
||||||
private final OsmandApplication context;
|
private final OsmandApplication context;
|
||||||
private final static int zoomOnlyForBasemaps = 11;
|
private final static int zoomOnlyForBasemaps = 11;
|
||||||
|
|
||||||
static int zoomForBaseRouteRendering = 14;
|
static int zoomForBaseRouteRendering = 14;
|
||||||
private Handler handler;
|
private Handler handler;
|
||||||
private Map<String, BinaryMapIndexReader> files = new LinkedHashMap<String, BinaryMapIndexReader>();
|
private Map<String, BinaryMapIndexReader> files = new LinkedHashMap<String, BinaryMapIndexReader>();
|
||||||
|
@ -710,7 +711,12 @@ public class MapRenderRepositories {
|
||||||
currentRenderingContext.width = requestedBox.getPixWidth();
|
currentRenderingContext.width = requestedBox.getPixWidth();
|
||||||
currentRenderingContext.height = requestedBox.getPixHeight();
|
currentRenderingContext.height = requestedBox.getPixHeight();
|
||||||
currentRenderingContext.nightMode = nightMode;
|
currentRenderingContext.nightMode = nightMode;
|
||||||
currentRenderingContext.preferredLocale = prefs.MAP_PREFERRED_LOCALE.get();
|
if(requestedBox.getZoom() <= zoomOnlyForBasemaps &&
|
||||||
|
"".equals(prefs.MAP_PREFERRED_LOCALE.get())) {
|
||||||
|
currentRenderingContext.preferredLocale = app.getLanguage();
|
||||||
|
} else {
|
||||||
|
currentRenderingContext.preferredLocale = prefs.MAP_PREFERRED_LOCALE.get();
|
||||||
|
}
|
||||||
final float mapDensity = (float) requestedBox.getMapDensity();
|
final float mapDensity = (float) requestedBox.getMapDensity();
|
||||||
currentRenderingContext.setDensityValue(mapDensity);
|
currentRenderingContext.setDensityValue(mapDensity);
|
||||||
//Text/icon scales according to mapDensity (so text is size of road)
|
//Text/icon scales according to mapDensity (so text is size of road)
|
||||||
|
|
Loading…
Reference in a new issue