I have a path connecting 11 GeoPoints with a line, I use path.moveTo()
and path.lineTo() to draw the line and it seems that as soon as I hate
10 Points in the path, it draws the line to Columnbia in South
America.. And yes, my GeoPoint locations are correct, I don't
understand why this is happening?

        Point p1 = new Point();
        Point p2 = new Point();
        Point p3 = new Point();
        Point p4 = new Point();
        Point p5 = new Point();
        Point p6 = new Point();
        Point p7 = new Point();
        Point p8 = new Point();
        Point p9 = new Point();
        Point p10 = new Point();
        Point p11 = new Point();

        path = new Path();

        projection.toPixels(gP1, p1);
        projection.toPixels(gP2, p2);
        projection.toPixels(gP3, p3);
        projection.toPixels(gP4, p4);
        projection.toPixels(gP5, p5);
        projection.toPixels(gP6, p6);
        projection.toPixels(gP7, p7);
        projection.toPixels(gP8, p8);
        projection.toPixels(gP9, p9);
        projection.toPixels(gP10, p10);
        projection.toPixels(gP11, p11);

        path.moveTo(p1.x, p1.y);
        path.lineTo(p2.x, p2.y);
        path.moveTo(p2.x, p2.y);
        path.lineTo(p3.x, p3.y);
        path.moveTo(p3.x, p3.y);
        path.lineTo(p4.x, p4.y);
        path.moveTo(p4.x, p4.y);
        path.lineTo(p5.x, p5.y);
        path.moveTo(p5.x, p5.y);
        path.lineTo(p6.x, p6.y);
        path.moveTo(p6.x, p6.y);
        path.lineTo(p7.x, p7.y);
        path.moveTo(p7.x, p7.y);
        path.lineTo(p8.x, p8.y);
        path.moveTo(p8.x, p8.y);
        path.lineTo(p9.x, p9.y);
        path.moveTo(p9.x, p9.y);
        path.lineTo(p10.x, p10.y);
        path.moveTo(p10.x, p10.y);
        path.lineTo(p11.x, p11.y);

        canvas.drawPath(path, mPaint);

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to