Update position
This commit is contained in:
parent
6de7f8244a
commit
f0be199d5b
2 changed files with 2 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,5 @@
|
||||||
*.render.xml
|
*.render.xml
|
||||||
*.map_style_presets.xml
|
*.map_styles_presets.xml
|
||||||
routing*.xml
|
routing*.xml
|
||||||
rendering_types.xml
|
rendering_types.xml
|
||||||
countries.reginfo
|
countries.reginfo
|
||||||
|
|
|
@ -454,7 +454,7 @@ public class OsmandMapTileView extends SurfaceView implements IMapDownloaderCall
|
||||||
Canvas canvas = holder.lockCanvas();
|
Canvas canvas = holder.lockCanvas();
|
||||||
if (canvas != null) {
|
if (canvas != null) {
|
||||||
try {
|
try {
|
||||||
final float ratioy = mapPosition == OsmandSettings.BOTTOM_CONSTANT ? 0.8f : 0.5f;
|
final float ratioy = mapPosition == OsmandSettings.BOTTOM_CONSTANT ? 0.85f : 0.5f;
|
||||||
final int cy = (int) (ratioy * getHeight());
|
final int cy = (int) (ratioy * getHeight());
|
||||||
if(currentViewport.getPixWidth() != getWidth() || currentViewport.getPixHeight() != getHeight() ||
|
if(currentViewport.getPixWidth() != getWidth() || currentViewport.getPixHeight() != getHeight() ||
|
||||||
currentViewport.getCenterPixelY() != cy) {
|
currentViewport.getCenterPixelY() != cy) {
|
||||||
|
|
Loading…
Reference in a new issue