HiĀ
In a WPF application i need to add a panel inside the map with the current coordinate based on mouse position and is refreshing every time that the mouse is moved
something like this:
What can i do?
Thanks
thanks , im going to check it
Hi Alex,
The Format coordinates sample demonstrates how to show coordinates in Degrees/Minutes/Seconds format when clicking on the map.
If you replace
MyMapView.GeoViewTapped += (sender, args) => { UpdateUIFromMapPoint(args.Location); };
with MyMapView.MouseMove += (sender, args) => { UpdateUIFromMapPoint(MyMapView.ScreenToLocation(args.GetPosition(MyMapView)));};
You should get the behavior you want - coordinates refreshing whenever the mouse moves. Let me know if that works for you.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.