Hey Guys,
I've got the following code which plots a marker at the specified x/y screen co-ordinates. like so...
public boolean draw(Canvas canvas, MapView mapView,
boolean shadow, long when)
{
super.draw(canvas, mapView, shadow);
//---translate the GeoPoint to screen pixels---
Point screenPts = new Point();
mapView.getProjection().toPixels(p, screenPts);
//---add the marker---
Bitmap bmp = BitmapFactory.decodeResource(
getResources(), R.drawable.marker);
canvas.drawBitmap(bmp, screenPts.x, screenPts.y-50, null);
System.out.println("X: " + screenPts.x + "Y: " + screenPts.y);
return true;
}
But is there anything in the API or known methods for plotting points based on a lat/lng?