android arcgis mapview 滚动后如何获得经纬度?
How to get lat long after arcgis mapview scroll in android?
我正在使用 Arcgis mapview Api android.There 是我们在屏幕中央添加的图钉。当我滚动 map.Please 帮助我时,我想获取该引脚下方的位置坐标。提前致谢。
在您的地图上设置 OnStatusChangeListener 并将点更新为中心。您可以查看下方 link 以获得更多帮助。
这是您正在寻找的解决方案,希望它能奏效。
https://developers.arcgis.com/android/beta/sample-code/feature-layer-selection.htm
//获取被点击的点并转换为地图坐标中的点
Point clickPoint = mMapView.screenToLocation(new android.graphics.Point(Math.round(e.getX()), Math.round(e.getY())));
int tolerance = 44;
double mapTolerance = tolerance * mMapView.getUnitsPerPixel();
我正在使用 Arcgis mapview Api android.There 是我们在屏幕中央添加的图钉。当我滚动 map.Please 帮助我时,我想获取该引脚下方的位置坐标。提前致谢。
在您的地图上设置 OnStatusChangeListener 并将点更新为中心。您可以查看下方 link 以获得更多帮助。
这是您正在寻找的解决方案,希望它能奏效。
https://developers.arcgis.com/android/beta/sample-code/feature-layer-selection.htm
//获取被点击的点并转换为地图坐标中的点
Point clickPoint = mMapView.screenToLocation(new android.graphics.Point(Math.round(e.getX()), Math.round(e.getY())));
int tolerance = 44;
double mapTolerance = tolerance * mMapView.getUnitsPerPixel();