Merge changes.

This commit is contained in:
Sandor Dornbush
2010-09-23 14:30:44 -07:00
parent 21b0a517a9
commit 35182a1483
2 changed files with 4 additions and 18 deletions
@@ -231,23 +231,7 @@ public class MyTracksOverlay extends Overlay {
int cx = mapView.getMapCenter().getLongitudeE6();
int cy = mapView.getMapCenter().getLatitudeE6();
Rect rect = new Rect(cx - w, cy - h, cx + w, cy + h);
Log.i(MyTracksConstants.TAG,
"Found bounding box: " + rect);
Point pt = new Point();
GeoPoint upperLeft = new GeoPoint(rect.top, rect.left);
Point pUpperLeft = new Point();
mapView.getProjection().toPixels(upperLeft, pUpperLeft);
GeoPoint bottomRight = new GeoPoint(rect.bottom, rect.right);
Point pBottomRight = new Point();
mapView.getProjection().toPixels(upperLeft, pBottomRight);
Rect dispRect = new Rect(pUpperLeft.x, pUpperLeft.y,
pBottomRight.x, pBottomRight.y);
Log.i(MyTracksConstants.TAG,
"Found display box: " + rect);
canvas.drawRect(dispRect, selectedTrackPaint);
Rect displayRect;
GeoPoint geoPoint;