fix build
This commit is contained in:
parent
e6131db9ff
commit
86f40acbe8
1 changed files with 3 additions and 2 deletions
|
@ -1029,10 +1029,11 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
|
||||||
|
|
||||||
final QuadPoint cp = initialViewport.getCenterPixelPoint();
|
final QuadPoint cp = initialViewport.getCenterPixelPoint();
|
||||||
// Keep zoom center fixed or flexible
|
// Keep zoom center fixed or flexible
|
||||||
|
LatLon r;
|
||||||
if (multiTouchSupport.isInZoomMode()) {
|
if (multiTouchSupport.isInZoomMode()) {
|
||||||
LatLon r = calc.getLatLonFromPixel(cp.x + cp.x - multiTouchSupport.getCenterPoint().x, cp.y + cp.y - multiTouchSupport.getCenterPoint().y);
|
r = calc.getLatLonFromPixel(cp.x + cp.x - multiTouchSupport.getCenterPoint().x, cp.y + cp.y - multiTouchSupport.getCenterPoint().y);
|
||||||
} else {
|
} else {
|
||||||
LatLon r = calc.getLatLonFromPixel(cp.x + cp.x - initialMultiTouchCenterPoint.x, cp.y + cp.y - initialMultiTouchCenterPoint.y);
|
r = calc.getLatLonFromPixel(cp.x + cp.x - initialMultiTouchCenterPoint.x, cp.y + cp.y - initialMultiTouchCenterPoint.y);
|
||||||
}
|
}
|
||||||
setLatLon(r.getLatitude(), r.getLongitude());
|
setLatLon(r.getLatitude(), r.getLongitude());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue