public void recieveLongClick(MotionEvent ev)
{
Projection p = mapView.getProjection();
GeoPoint geoPoint = p.fromPixels((int) ev.getX(), (int) ev.getY());
// You can now pull lat/lng from geoPoint
}
ที่มา http://stackoverflow.com/questions/4446811/how-to-get-the-latitude-and-longitude-on-map-in-android
ไม่มีความคิดเห็น:
แสดงความคิดเห็น