shift with updatedCenterPoint

This commit is contained in:
sonora 2016-12-30 13:58:49 +01:00
parent 82800c564f
commit fc8a8c8c80

View file

@ -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();