Okay, I've figured out that it's an issue with the coordinates. I'm
using the coordinate for a location in South Attleboro
(41.89785302497962, -71.3547956943512) and when I convert it to
microdegrees to use it in a geopoint (41.897853, -71354795) it moves
to columnbia... any ideas?

On Feb 8, 8:56 pm, aspekt9 <[email protected]> wrote:
> 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