cleanups
This commit is contained in:
parent
7145b067a0
commit
0043e8be78
@ -119,10 +119,7 @@ public class PathOverlay extends Overlay {
|
||||
int x, y, px = 0, py = 0;
|
||||
int i = 0;
|
||||
|
||||
//int mx = (int) mMapPosition.x;
|
||||
//int my = (int) mMapPosition.y;
|
||||
//int z = curPos.zoomLevel;
|
||||
int z = FastMath.log2((int) curPos.scale);
|
||||
int z = curPos.zoomLevel;
|
||||
int diff = MAX_ZOOM - z;
|
||||
int mx = (int) (curPos.x * (Tile.SIZE << z));
|
||||
int my = (int) (curPos.y * (Tile.SIZE << z));
|
||||
@ -132,9 +129,6 @@ public class PathOverlay extends Overlay {
|
||||
x = (mPreprojected[j + 0] >> diff) - mx;
|
||||
y = (mPreprojected[j + 1] >> diff) - my;
|
||||
|
||||
//x = (mPreprojected[j + 0]) - mx;
|
||||
//y = (mPreprojected[j + 1]) - my;
|
||||
|
||||
// TODO use line clipping, this doesnt work with 'GreatCircle'
|
||||
// TODO clip to view bounding box
|
||||
if (x > max || x < -max || y > max || y < -max) {
|
||||
@ -166,9 +160,7 @@ public class PathOverlay extends Overlay {
|
||||
mMapPosition.scale = 1 << z;
|
||||
|
||||
newData = true;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public PathOverlay(MapView mapView, final int color) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user