get sign right
This commit is contained in:
parent
6f4fd095b3
commit
af65de0297
1 changed files with 2 additions and 1 deletions
|
@ -1037,7 +1037,8 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
|
||||||
final QuadPoint cp = initialViewport.getCenterPixelPoint();
|
final QuadPoint cp = initialViewport.getCenterPixelPoint();
|
||||||
float dx = cp.x - initialMultiTouchCenterPoint.x;
|
float dx = cp.x - initialMultiTouchCenterPoint.x;
|
||||||
float dy = cp.y - initialMultiTouchCenterPoint.y;
|
float dy = cp.y - initialMultiTouchCenterPoint.y;
|
||||||
final LatLon r = calc.getLatLonFromPixel(cp.x + dx, cp.y + dy);
|
//final LatLon r = calc.getLatLonFromPixel(cp.x + dx, cp.y + dy);
|
||||||
|
final LatLon r = calc.getLatLonFromPixel(cp.x - dx, cp.y - dy);
|
||||||
setLatLon(r.getLatitude(), r.getLongitude());
|
setLatLon(r.getLatitude(), r.getLongitude());
|
||||||
|
|
||||||
int baseZoom = initialViewport.getZoom();
|
int baseZoom = initialViewport.getZoom();
|
||||||
|
|
Loading…
Reference in a new issue