From ceee9cc8af2cac3e6aa934cede40acf7f91e12aa Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 30 Dec 2016 14:30:01 +0100 Subject: [PATCH] experiment with moveable zoom centerPoint (8) --- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index ddcf8be34a..8577543b00 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -1024,10 +1024,10 @@ public class OsmandMapTileView implements IMapDownloaderCallback { final RotatedTileBox calc = initialViewport.copy(); // Keep zoom center fixed or flexible - //calc.setLatLonCenter(initialCenterLatLon.getLatitude(), initialCenterLatLon.getLongitude()); - PointF updatedCenterPoint = multiTouchSupport.getCenterPoint(); - calc.setLatLonCenter(initialViewport.getLatLonFromPixel(updatedCenterPoint.x, updatedCenterPoint.y).getLatitude(), - initialViewport.getLatLonFromPixel(updatedCenterPoint.x, updatedCenterPoint.y).getLongitude()); + calc.setLatLonCenter(initialCenterLatLon.getLatitude(), initialCenterLatLon.getLongitude()); + //PointF updatedCenterPoint = multiTouchSupport.getCenterPoint(); + //calc.setLatLonCenter(initialViewport.getLatLonFromPixel(updatedCenterPoint.x, updatedCenterPoint.y).getLatitude(), + // initialViewport.getLatLonFromPixel(updatedCenterPoint.x, updatedCenterPoint.y).getLongitude()); float calcRotate = calc.getRotate() + angle; calc.setRotate(calcRotate);