cleanups + comments

This commit is contained in:
Hannes Janetzek
2013-10-09 01:55:52 +02:00
parent f2b7a9fdf8
commit fada95f380
11 changed files with 126 additions and 218 deletions
+4 -3
View File
@@ -43,7 +43,7 @@ import android.util.Log;
public class MapViewPosition {
private static final String TAG = MapViewPosition.class.getSimpleName();
private static final String TAG = MapViewPosition.class.getName();
public final static int MAX_ZOOMLEVEL = 17;
public final static int MIN_ZOOMLEVEL = 2;
@@ -315,7 +315,7 @@ public class MapViewPosition {
out.x = (int) (mPosX + mu[0] / mScale);
out.y = (int) (mPosY + mu[1] / mScale);
Log.d(">>>", "getScreenPointOnMap " + reuse);
//Log.d(TAG, "getScreenPointOnMap " + reuse);
return out;
}
@@ -340,7 +340,7 @@ public class MapViewPosition {
MercatorProjection.pixelYToLatitude(dy, mZoomLevel),
MercatorProjection.pixelXToLongitude(dx, mZoomLevel));
Log.d(">>>", "fromScreenPixels " + p);
//Log.d(TAG, "fromScreenPixels " + p);
return p;
}
@@ -550,6 +550,7 @@ public class MapViewPosition {
*/
public synchronized void rotateMap(float angle, float cx, float cy) {
moveMap(cx, cy);
mRotation += angle;
updateMatrix();