style fixes
This commit is contained in:
parent
c436b1dcb8
commit
d1451e9889
1 changed files with 3 additions and 2 deletions
|
@ -104,6 +104,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
|
||||||
|
|
||||||
protected static final int emptyTileDivisor = 16;
|
protected static final int emptyTileDivisor = 16;
|
||||||
|
|
||||||
|
|
||||||
public interface OnTrackBallListener {
|
public interface OnTrackBallListener {
|
||||||
public boolean onTrackBallEvent(MotionEvent e);
|
public boolean onTrackBallEvent(MotionEvent e);
|
||||||
}
|
}
|
||||||
|
@ -516,8 +517,8 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
|
||||||
|
|
||||||
public void restoreMapRatio() {
|
public void restoreMapRatio() {
|
||||||
RotatedTileBox box = currentViewport.copy();
|
RotatedTileBox box = currentViewport.copy();
|
||||||
float rx = (float) box.getCenterPixelX() / box.getPixWidth();
|
float rx = (float)box.getCenterPixelX() / box.getPixWidth();
|
||||||
float ry = (float) box.getCenterPixelY() / box.getPixHeight();
|
float ry = (float)box.getCenterPixelY() / box.getPixHeight();
|
||||||
if (mapPosition == OsmandSettings.BOTTOM_CONSTANT) {
|
if (mapPosition == OsmandSettings.BOTTOM_CONSTANT) {
|
||||||
ry -= 0.35;
|
ry -= 0.35;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue