我正在尝试通过 Android esri arcGIS MapView 获取点击的纬度和经度。
map.setOnSingleTapListener(new OnSingleTapListener() {
private static final long serialVersionUID = 1L;
public void onSingleTap(float x, float y) {
System.out.println("x:" + x);
System.out.println("y:" + y);
// How to get Latitude Longitude coordinates of the point (x,y)?
}
});
如何获取点(x,y)的经纬度坐标?
最佳答案
最简单的方法是:
Point p=map.toMapPoint(arg0, arg1);
System.out.println("X="+p.getX());
System.out.println("Y="+p.getY());
变量 p 将在 MapView 中映射坐标。
关于android - 如何将 Android esri arcGIS 点转换为经纬度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16083406/