Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是使用 Arcgis Runtime SDK for UWP 的新手。我想知道是否有人知道使用指针按下事件处理程序来获取地图上单击的纬度和经度坐标的方法。
是的,您可以使用 ScreenToLocation 方法:
private void mapView_PointerPressed(object sender, PointerRoutedEventArgs e) { MapPoint location = mapView.ScreenToLocation(e.GetCurrentPoint(mapView).Position); Debug.WriteLine($"You pressed at {location.X} , {location.Y}"); }