shift with updatedCenterPoint
This commit is contained in:
parent
82800c564f
commit
fc8a8c8c80
1 changed files with 1 additions and 1 deletions
|
@ -1036,7 +1036,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
|
|||
// Pins map to initial zoom center, but inhibits 2 finger drag
|
||||
//final QuadPoint cp = initialViewport.getCenterPixelPoint();
|
||||
//final LatLon r = calc.getLatLonFromPixel(cp.x + cp.x - initialMultiTouchCenterPoint.x, cp.y + cp.y - initialMultiTouchCenterPoint.y);
|
||||
final LatLon r = calc.getLatLonFromPixel(updatedCenterPoint.x, updatedCenterPoint.y);
|
||||
final LatLon r = calc.getLatLonFromPixel(cp.x + cp.x - updatedCenterPoint.x, cp.y + cp.y - updatedCenterPoint.y);
|
||||
setLatLon(r.getLatitude(), r.getLongitude());
|
||||
|
||||
int baseZoom = initialViewport.getZoom();
|
||||
|
|
Loading…
Reference in a new issue