【发布时间】:2017-07-18 18:47:29
【问题描述】:
我想在此处地图上的触摸位置添加标记。另外,我想显示我触摸该位置的纬度和经度。 我成功显示了标记但我无法在 toast 消息中显示纬度和经度。
我已经实现了自己的手势监听器,如文档中所述:
public class MyOnGestureListener implements MapGesture.OnGestureListener
在这我使用了一个被覆盖的方法:
@Override
public boolean onTapEvent(PointF p) {
// Toast.makeText(context, " Show latitude and langitude on touched location: " , Toast.LENGTH_SHORT ).show();
return true;
}
在这里我想显示纬度和经度。
【问题讨论】:
标签: android geolocation here-api