ArcGIS Pro 2.6 .NET SDK I need to record the map-coordinates with a mouse click event on the map to create features(point,polygon,polyline,multipoint)

518
2
02-21-2021 10:59 PM
LakshmiAlaparthi
New Contributor II

Hi,

I am developing an Add-in using ArcGIS Pro .NET SDK and need to record the map co-ordinates with a mouse click event in the button click event of C#.net code. can someone help me with this?

Thanks

 

Tags (1)
0 Kudos
2 Replies
UmaHarano
Esri Regular Contributor

ArcGIS Pro SDK wiki and the Samples repos provide some help with this:

1. Here is a code snippet that gets the clicked point in a map: Create a tool to the return coordinates of the point clicked in the map 

2. MapTool Overlay Control sampleThis sample provides a map tool that when you left click in the view will show the map coordinates of the click location in the top left corner of the view.

Thanks

Uma

0 Kudos
LakshmiAlaparthi
New Contributor II
Thank you Uma..I will try this solution and let you know.Thanks again for
responding!
0 Kudos